pub unsafe extern "C" fn mtmd_gen_state_set_ref( ctx: *mut mtmd_context, state: *mut mtmd_gen_state, ) -> i32