	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_cert
_load_cert:                             ## @load_cert
	.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, %rbx
	movq	(%rdi), %r12
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	8(%r12), %esi
	leaq	-48(%rbp), %rdx
	callq	_import_pem
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	4(%r12), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_import_pem
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_kCFAllocatorDefault@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_CFArrayGetValueAtIndex
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_CFArrayGetValueAtIndex
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_SecIdentityCreate
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movl	(%r13), %edi
	movq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_CFArrayCreateMutableCopy
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_CFArraySetValueAtIndex
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_SSLSetCertificate
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_CFRelease
LBB0_11:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_CFRelease
LBB0_13:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_CFRelease
LBB0_15:
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_CFRelease
LBB0_17:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_kCFAllocatorDefault,4,2        ## @kCFAllocatorDefault
	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_load_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_cert
_load_cert:                             ; @load_cert
	.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	x20, x0
	ldr	x22, [x0]
	stp	xzr, xzr, [sp]
	ldr	w1, [x22, #8]
	add	x2, sp, #8
	bl	_import_pem
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w1, [x22, #4]
	mov	x2, sp
	mov	x0, x20
	bl	_import_pem
	mov	x19, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh0:
	adrp	x23, _kCFAllocatorDefault@GOTPAGE
Lloh1:
	ldr	x23, [x23, _kCFAllocatorDefault@GOTPAGEOFF]
	ldr	w20, [x23]
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_CFArrayGetValueAtIndex
	mov	x21, x0
	ldr	x0, [sp]
	mov	w1, #0
	bl	_CFArrayGetValueAtIndex
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_SecIdentityCreate
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.3:
	ldr	w0, [x23]
	ldr	x2, [sp, #8]
	mov	w1, #0
	bl	_CFArrayCreateMutableCopy
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_CFArraySetValueAtIndex
	ldr	w0, [x22]
	mov	x1, x21
	bl	_SSLSetCertificate
	b	LBB0_7
LBB0_5:
	mov	x19, x0
LBB0_6:
	mov	x20, #0
	mov	x21, #0
LBB0_7:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_CFRelease
LBB0_9:
	ldr	x0, [sp]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_CFRelease
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_CFRelease
LBB0_13:
	cbz	x20, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_CFRelease
LBB0_15:
	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
	ret
LBB0_16:
	mov	x21, #0
Lloh2:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_17:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_kCFAllocatorDefault,4,2        ; @kCFAllocatorDefault
	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_load_cert
.subsections_via_symbols
