	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_vfprintf                   ## -- Begin function sec_vfprintf
	.p2align	4, 0x90
_sec_vfprintf:                          ## @sec_vfprintf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_sec_complete@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.1:
	leaq	-48(%rbp), %rdi
	callq	_vasprintf
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.4:
	movq	_mech@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movq	_app_data@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	_command_prot@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	-56(%rbp), %r8
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	*%r13
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_free
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %esi
	callq	_base64_encode
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	js	LBB0_7
## %bb.8:
	movq	(%r12), %rax
	movq	_prot_safe@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vfprintf                       ## TAILCALL
LBB0_2:
	leaq	L_str.7(%rip), %rdi
	jmp	LBB0_3
LBB0_5:
	leaq	L_str.6(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	leaq	L_str(%rip), %rdi
LBB0_3:
	callq	_puts
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_10:
	movq	_prot_private@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	movq	_prot_confidential@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	callq	_fprintf
LBB0_15:
	movq	-48(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_complete,4,2               ## @sec_complete
	.comm	_mech,8,3                       ## @mech
	.comm	_app_data,4,2                   ## @app_data
	.comm	_command_prot,8,3               ## @command_prot
	.comm	_prot_safe,8,3                  ## @prot_safe
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"MIC %s"

	.comm	_prot_private,8,3               ## @prot_private
L_.str.4:                               ## @.str.4
	.asciz	"ENC %s"

	.comm	_prot_confidential,8,3          ## @prot_confidential
L_.str.5:                               ## @.str.5
	.asciz	"CONF %s"

L_str:                                  ## @str
	.asciz	"Out of memory base64-encoding."

L_str.6:                                ## @str.6
	.asciz	"Failed to encode command."

L_str.7:                                ## @str.7
	.asciz	"Failed to allocate command."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_vfprintf                   ; -- Begin function sec_vfprintf
	.p2align	2
_sec_vfprintf:                          ; @sec_vfprintf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _sec_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sec_complete@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	add	x0, sp, #8
	bl	_vasprintf
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _mech@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mech@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x23, [x8]
Lloh6:
	adrp	x8, _app_data@GOTPAGE
Lloh7:
	ldr	x8, [x8, _app_data@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	x21, [sp, #8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
Lloh9:
	adrp	x22, _command_prot@GOTPAGE
Lloh10:
	ldr	x22, [x22, _command_prot@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x4, sp
	mov	x0, x20
	mov	x1, x21
	blr	x23
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	tbnz	w20, #31, LBB0_8
; %bb.3:
	ldr	x0, [sp]
	add	x2, sp, #8
	mov	x1, x20
	bl	_base64_encode
	mov	x20, x0
	ldr	x0, [sp]
	bl	_free
	tbnz	x20, #63, LBB0_9
; %bb.4:
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _prot_safe@GOTPAGE
Lloh12:
	ldr	x9, [x9, _prot_safe@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.5:
	ldr	x2, [sp, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_vfprintf
LBB0_7:
Lloh16:
	adrp	x0, l_str.7@PAGE
Lloh17:
	add	x0, x0, l_str.7@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh18:
	adrp	x0, l_str.6@PAGE
Lloh19:
	add	x0, x0, l_str.6@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x0, l_str@PAGE
Lloh21:
	add	x0, x0, l_str@PAGEOFF
LBB0_10:
	bl	_puts
	mov	w0, #-1
	b	LBB0_17
LBB0_11:
Lloh22:
	adrp	x9, _prot_private@GOTPAGE
Lloh23:
	ldr	x9, [x9, _prot_private@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x2, [sp, #8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh27:
	adrp	x9, _prot_confidential@GOTPAGE
Lloh28:
	ldr	x9, [x9, _prot_confidential@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	x2, [sp, #8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_fprintf
LBB0_16:
	ldr	x0, [sp, #8]
	bl	_free
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_complete,4,2               ; @sec_complete
	.comm	_mech,8,3                       ; @mech
	.comm	_app_data,4,2                   ; @app_data
	.comm	_command_prot,8,3               ; @command_prot
	.comm	_prot_safe,8,3                  ; @prot_safe
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"MIC %s"

	.comm	_prot_private,8,3               ; @prot_private
l_.str.4:                               ; @.str.4
	.asciz	"ENC %s"

	.comm	_prot_confidential,8,3          ; @prot_confidential
l_.str.5:                               ; @.str.5
	.asciz	"CONF %s"

l_str:                                  ; @str
	.asciz	"Out of memory base64-encoding."

l_str.6:                                ; @str.6
	.asciz	"Failed to encode command."

l_str.7:                                ; @str.7
	.asciz	"Failed to allocate command."

.subsections_via_symbols
