	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_cert                      ## -- Begin function load_cert
	.p2align	4, 0x90
_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	movq	_FORMAT_HTTP@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	_load_cert_crl_http
	jmp	LBB0_16
LBB0_2:
	movq	%rdx, %r14
	movl	%esi, %ebx
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	$114, %esi
	movl	%ebx, %edx
	callq	_bio_open_default
	jmp	LBB0_5
LBB0_4:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_unbuffer
	movl	%ebx, %edi
	callq	_dup_bio_in
LBB0_5:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_FORMAT_ASN1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_d2i_X509_bio
	jmp	LBB0_8
LBB0_9:
	movq	_FORMAT_PEM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_password_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509_AUX
LBB0_8:
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_11:
	movq	_FORMAT_PKCS12@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	$0, (%rsp)
	leaq	-32(%rbp), %r9
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_load_pkcs12
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_13:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_BIO_printf
LBB0_14:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
LBB0_15:
	movq	%r15, %rdi
	callq	_BIO_free
LBB0_16:
	movq	-32(%rbp), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORMAT_HTTP,4,2                ## @FORMAT_HTTP
	.comm	_stdin,4,2                      ## @stdin
	.comm	_FORMAT_ASN1,4,2                ## @FORMAT_ASN1
	.comm	_FORMAT_PEM,4,2                 ## @FORMAT_PEM
	.comm	_password_callback,8,3          ## @password_callback
	.comm	_FORMAT_PKCS12,4,2              ## @FORMAT_PKCS12
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad input format specified for %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to load certificate\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_cert                      ; -- Begin function load_cert
	.p2align	2
_load_cert:                             ; @load_cert
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _FORMAT_HTTP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORMAT_HTTP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x2, #0
	bl	_load_cert_crl_http
	b	LBB0_14
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	cbz	x0, LBB0_4
; %bb.3:
	mov	w1, #114
	mov	x2, x21
	bl	_bio_open_default
	mov	x19, x0
	cbnz	x0, LBB0_5
	b	LBB0_12
LBB0_4:
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_unbuffer
	mov	x0, x21
	bl	_dup_bio_in
	mov	x19, x0
	cbz	x0, LBB0_12
LBB0_5:
Lloh6:
	adrp	x8, _FORMAT_ASN1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FORMAT_ASN1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, #0
	bl	_d2i_X509_bio
	str	x0, [sp, #8]
	cbnz	x0, LBB0_13
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _FORMAT_PEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FORMAT_PEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _password_callback@GOTPAGE
Lloh13:
	ldr	x8, [x8, _password_callback@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509_AUX
	str	x0, [sp, #8]
	cbnz	x0, LBB0_13
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x8, _FORMAT_PKCS12@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FORMAT_PKCS12@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_11
; %bb.10:
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x6, #0
	bl	_load_pkcs12
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_13
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _bio_err@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BIO_printf
LBB0_12:
Lloh23:
	adrp	x20, _bio_err@GOTPAGE
Lloh24:
	ldr	x20, [x20, _bio_err@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x20]
	bl	_ERR_print_errors
LBB0_13:
	mov	x0, x19
	bl	_BIO_free
LBB0_14:
	ldr	x0, [sp, #8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FORMAT_HTTP,4,2                ; @FORMAT_HTTP
	.comm	_stdin,4,2                      ; @stdin
	.comm	_FORMAT_ASN1,4,2                ; @FORMAT_ASN1
	.comm	_FORMAT_PEM,4,2                 ; @FORMAT_PEM
	.comm	_password_callback,8,3          ; @password_callback
	.comm	_FORMAT_PKCS12,4,2              ; @FORMAT_PKCS12
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad input format specified for %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to load certificate\n"

.subsections_via_symbols
