	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_teimanager
_ctrl_teimanager:                       ## @ctrl_teimanager
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movl	(%rsi), %ecx
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_7
## %bb.2:
	cmpl	$0, 4(%rsi)
	movq	_OPTION_L2_CLEANUP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	cmpl	$0, 4(%rsi)
	movq	_OPTION_L1_HOLD@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %edi
	movq	%rax, %rsi
	je	LBB0_8
## %bb.5:
	callq	_test_and_set_bit
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	callq	_test_and_clear_bit
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPTION_L2_CLEANUP,4,2          ## @OPTION_L2_CLEANUP
	.comm	_OPTION_L1_HOLD,4,2             ## @OPTION_L1_HOLD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ctrl_teimanager
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_teimanager
_ctrl_teimanager:                       ; @ctrl_teimanager
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldr	w9, [x1]
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.2:
	ldr	w9, [x1, #4]
Lloh0:
	adrp	x10, _OPTION_L2_CLEANUP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OPTION_L2_CLEANUP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w9, [x1, #4]
Lloh2:
	adrp	x10, _OPTION_L1_HOLD@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OPTION_L1_HOLD@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x10]
	mov	x1, x8
	cbz	w9, LBB0_7
; %bb.5:
	bl	_test_and_set_bit
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_test_and_clear_bit
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OPTION_L2_CLEANUP,4,2          ; @OPTION_L2_CLEANUP
	.comm	_OPTION_L1_HOLD,4,2             ; @OPTION_L1_HOLD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ctrl_teimanager
.subsections_via_symbols
