	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_prot_command               ## -- Begin function sec_prot_command
	.p2align	4, 0x90
_sec_prot_command:                      ## @sec_prot_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$2, %edi
	jle	LBB0_1
LBB0_10:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_11
LBB0_1:
	movq	_sec_complete@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.3:
	cmpl	$1, %edi
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_sec_status
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_11
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_name_to_level
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r14d
	movq	_mech@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_app_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r14d, %esi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_level_to_name
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	movq	_code@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	%r14d, %edi
	callq	_set_command_prot
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_complete,4,2               ## @sec_complete
	.comm	_code,4,2                       ## @code
	.comm	_mech,8,3                       ## @mech
	.comm	_app_data,4,2                   ## @app_data
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s does not implement %s protection.\n"

L_.str.2:                               ## @.str.2
	.asciz	"usage: %s [clear|safe|confidential|private]\n"

L_str:                                  ## @str
	.asciz	"No security data exchange has taken place."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_prot_command               ; -- Begin function sec_prot_command
	.p2align	2
_sec_prot_command:                      ; @sec_prot_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	cmp	w0, #2
	b.le	LBB0_3
LBB0_1:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_2:
	bl	_printf
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _sec_complete@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sec_complete@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.4:
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.5:
	bl	_sec_status
	mov	w8, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_7:
	mov	w8, #-1
LBB0_8:
Lloh7:
	adrp	x9, _code@GOTPAGE
Lloh8:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	ldr	x0, [x20, #8]
	bl	_name_to_level
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.10:
	mov	x19, x0
Lloh10:
	adrp	x20, _mech@GOTPAGE
Lloh11:
	ldr	x20, [x20, _mech@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh12:
	adrp	x9, _app_data@GOTPAGE
Lloh13:
	ldr	x9, [x9, _app_data@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_level_to_name
	stp	x20, x0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_set_command_prot
	tbnz	x0, #63, LBB0_7
; %bb.13:
	mov	w8, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_complete,4,2               ; @sec_complete
	.comm	_code,4,2                       ; @code
	.comm	_mech,8,3                       ; @mech
	.comm	_app_data,4,2                   ; @app_data
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s does not implement %s protection.\n"

l_.str.2:                               ; @.str.2
	.asciz	"usage: %s [clear|safe|confidential|private]\n"

l_str:                                  ; @str
	.asciz	"No security data exchange has taken place."

.subsections_via_symbols
