	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CmdLoadCertAndKey              ## -- Begin function CmdLoadCertAndKey
	.p2align	4, 0x90
_CmdLoadCertAndKey:                     ## @CmdLoadCertAndKey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r12
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.3:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.4:
	movq	%r8, %rbx
	testq	%r8, %r8
	je	LBB0_13
## %bb.5:
	movq	%rdx, %r14
	movq	%rcx, %rdi
	callq	_FileToXW
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_CmdLoadKey
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_CheckXandK
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	%r15, (%r13)
	movq	%rbx, (%r14)
	movl	$1, %eax
	jmp	LBB0_13
LBB0_9:
	movq	(%r12), %rbx
	leaq	L_.str(%rip), %rdi
	callq	__UU
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	jmp	LBB0_12
LBB0_10:
	movq	(%r12), %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	__UU
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%rbx
	movq	%r15, %rdi
	callq	_FreeX
	jmp	LBB0_12
LBB0_11:
	movq	(%r12), %r14
	leaq	L_.str.2(%rip), %rdi
	callq	__UU
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	*%r14
	movq	%r15, %rdi
	callq	_FreeX
	movq	%rbx, %rdi
	callq	_FreeK
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMD_LOADCERT_FAILED"

L_.str.1:                               ## @.str.1
	.asciz	"CMD_LOADKEY_FAILED"

L_.str.2:                               ## @.str.2
	.asciz	"CMD_KEYPAIR_FAILED"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CmdLoadCertAndKey              ; -- Begin function CmdLoadCertAndKey
	.p2align	2
_CmdLoadCertAndKey:                     ; @CmdLoadCertAndKey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w0, #0
	cbz	x2, LBB0_13
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_13
; %bb.2:
	cbz	x19, LBB0_13
; %bb.3:
	cbz	x3, LBB0_13
; %bb.4:
	mov	x23, x4
	cbz	x4, LBB0_13
; %bb.5:
	mov	x21, x2
	mov	x0, x3
	bl	_FileToXW
	cbz	x0, LBB0_9
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x23
	bl	_CmdLoadKey
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_CheckXandK
	cbz	w0, LBB0_11
; %bb.8:
	str	x20, [x22]
	str	x23, [x21]
	mov	w0, #1
	b	LBB0_13
LBB0_9:
	ldr	x20, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x19
	blr	x20
	b	LBB0_12
LBB0_10:
	ldr	x21, [x19]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x19
	blr	x21
	mov	x0, x20
	bl	_FreeX
	b	LBB0_12
LBB0_11:
	ldr	x21, [x19]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__UU
	mov	x1, x0
	mov	x0, x19
	blr	x21
	mov	x0, x20
	bl	_FreeX
	mov	x0, x23
	bl	_FreeK
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMD_LOADCERT_FAILED"

l_.str.1:                               ; @.str.1
	.asciz	"CMD_LOADKEY_FAILED"

l_.str.2:                               ; @.str.2
	.asciz	"CMD_KEYPAIR_FAILED"

.subsections_via_symbols
