	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_prot                       ## -- Begin function sec_prot
	.p2align	4, 0x90
_sec_prot:                              ## @sec_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$3, %edi
	jle	LBB0_1
LBB0_14:
	movq	(%r15), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %ebx
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.17:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sec_status                     ## TAILCALL
LBB0_2:
	movq	_sec_complete@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movslq	%ebx, %rax
	movq	-8(%r15,%rax,8), %rdi
	callq	_name_to_level
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.5:
	movl	%eax, %r14d
	movq	_mech@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_app_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%r14d, %esi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %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
	jmp	LBB0_15
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_15
LBB0_7:
	cmpl	$2, %ebx
	je	LBB0_9
## %bb.8:
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movl	%r14d, %edi
	callq	_set_command_prot
	jmp	LBB0_12
LBB0_9:
	movl	%r14d, %edi
	callq	_sec_prot_internal
LBB0_12:
	testq	%rax, %rax
	js	LBB0_15
## %bb.13:
	movq	_code@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_16
	.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	"data"

L_.str.3:                               ## @.str.3
	.asciz	"command"

L_.str.4:                               ## @.str.4
	.asciz	"usage: %s [command|data] [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                       ; -- Begin function sec_prot
	.p2align	2
_sec_prot:                              ; @sec_prot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	cmp	w0, #3
	b.le	LBB0_5
LBB0_1:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_2:
	bl	_printf
LBB0_3:
Lloh2:
	adrp	x8, _code@GOTPAGE
Lloh3:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh4:
	str	w9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	mov	x21, x0
	subs	w8, w0, #1
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_sec_status
LBB0_7:
Lloh5:
	adrp	x9, _sec_complete@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sec_complete@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w9, LBB0_11
; %bb.8:
	ldr	x0, [x19, w8, sxtw #3]
	bl	_name_to_level
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.9:
	mov	x20, x0
Lloh8:
	adrp	x22, _mech@GOTPAGE
Lloh9:
	ldr	x22, [x22, _mech@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _app_data@GOTPAGE
Lloh11:
	ldr	x9, [x9, _app_data@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x22]
	ldr	x19, [x8]
	mov	x0, x20
	bl	_level_to_name
	stp	x19, x0, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_3
LBB0_12:
	cmp	w21, #2
	b.eq	LBB0_16
; %bb.13:
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strncasecmp
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x21, [x19, #8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strncasecmp
	cbnz	x0, LBB0_1
; %bb.15:
	mov	x0, x20
	bl	_set_command_prot
	tbz	x0, #63, LBB0_17
	b	LBB0_3
LBB0_16:
	mov	x0, x20
	bl	_sec_prot_internal
	tbnz	x0, #63, LBB0_3
LBB0_17:
Lloh21:
	adrp	x8, _code@GOTPAGE
Lloh22:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh23:
	str	wzr, [x8]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.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	"data"

l_.str.3:                               ; @.str.3
	.asciz	"command"

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

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

.subsections_via_symbols
