	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_command_prot               ## -- Begin function set_command_prot
	.p2align	4, 0x90
_set_command_prot:                      ## @set_command_prot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_command_prot@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	cmpl	%edi, %r14d
	je	LBB0_4
## %bb.1:
	movq	_prot_clear@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_command
	movq	_COMPLETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_4:
	movl	%ebx, (%r15)
	jmp	LBB0_5
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_prot_invalid@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_command_prot,4,2               ## @command_prot
	.comm	_prot_clear,4,2                 ## @prot_clear
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CCC"

	.comm	_COMPLETE,4,2                   ## @COMPLETE
	.comm	_prot_invalid,4,2               ## @prot_invalid
L_str:                                  ## @str
	.asciz	"Failed to clear command channel."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_command_prot               ; -- Begin function set_command_prot
	.p2align	2
_set_command_prot:                      ; @set_command_prot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x21, _command_prot@GOTPAGE
Lloh1:
	ldr	x21, [x21, _command_prot@GOTPAGEOFF]
	ldr	w19, [x21]
Lloh2:
	adrp	x8, _prot_clear@GOTPAGE
Lloh3:
	ldr	x8, [x8, _prot_clear@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w19, w0
	ccmp	w8, w0, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_command
Lloh7:
	adrp	x8, _COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _COMPLETE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_2:
	str	w20, [x21]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh12:
	adrp	x8, _prot_invalid@GOTPAGE
Lloh13:
	ldr	x8, [x8, _prot_invalid@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_command_prot,4,2               ; @command_prot
	.comm	_prot_clear,4,2                 ; @prot_clear
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CCC"

	.comm	_COMPLETE,4,2                   ; @COMPLETE
	.comm	_prot_invalid,4,2               ; @prot_invalid
l_str:                                  ; @str
	.asciz	"Failed to clear command channel."

.subsections_via_symbols
