	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_permit
_monitor_permit:                        ## @monitor_permit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, -4(%rdi)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 20(%rdi)
	leaq	16(%rdi), %rdi
	jne	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	movq	_MON_PERMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	(%rdi), %ecx
	testl	%edx, %edx
	cmovel	%edx, %eax
	orl	%ecx, %eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MON_PERMIT,4,2                 ## @MON_PERMIT
	.no_dead_strip	_monitor_permit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_permit
_monitor_permit:                        ; @monitor_permit
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	add	x8, x0, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x8, #-4]
	cmp	w9, w1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	x9, [x8, #20]
	add	x8, x8, #16
	cbnz	x9, LBB0_2
LBB0_4:
	ret
LBB0_5:
Lloh0:
	adrp	x9, _MON_PERMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MON_PERMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w10, w10, w9
	cmp	w2, #0
	csel	w9, wzr, w9, eq
	orr	w9, w10, w9
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MON_PERMIT,4,2                 ; @MON_PERMIT
	.no_dead_strip	_monitor_permit
.subsections_via_symbols
