	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_load_cert_file            ## -- Begin function X509_load_cert_file
	.p2align	4, 0x90
_X509_load_cert_file:                   ## @X509_load_cert_file
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_BIO_s_file
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_BIO_read_filename
	testq	%rax, %rax
	jle	LBB0_10
## %bb.2:
	movq	_X509_FILETYPE_PEM@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_13
## %bb.3:
	leaq	L_.str(%rip), %rcx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PEM_read_bio_X509_AUX
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_X509_STORE_add_cert
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movq	%rbx, %rdi
	callq	_X509_free
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_PEM_read_bio_X509_AUX
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ERR_peek_last_error
	movl	%eax, %edi
	callq	_ERR_GET_REASON
	movq	_PEM_R_NO_START_LINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.8:
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ERR_clear_error
	jmp	LBB0_16
LBB0_10:
	movq	_X509_F_X509_LOAD_CERT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SYS_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	xorl	%ebx, %ebx
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%rbx, %rdi
	callq	_X509_free
	movq	%r12, %rdi
	callq	_BIO_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_X509_FILETYPE_ASN1@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_17
## %bb.14:
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_d2i_X509_bio
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_X509_STORE_add_cert
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_12
LBB0_16:
	movl	%r13d, %r14d
	jmp	LBB0_12
LBB0_17:
	movq	_X509_F_X509_LOAD_CERT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_X509_R_BAD_X509_FILETYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_18:
	movq	_X509_F_X509_LOAD_CERT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PEM_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509err
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_20:
	movq	_X509_F_X509_LOAD_CERT_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %esi
	callq	_X509err
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_F_X509_LOAD_CERT_FILE,4,2 ## @X509_F_X509_LOAD_CERT_FILE
	.comm	_ERR_R_SYS_LIB,4,2              ## @ERR_R_SYS_LIB
	.comm	_X509_FILETYPE_PEM,4,2          ## @X509_FILETYPE_PEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_PEM_R_NO_START_LINE,8,3        ## @PEM_R_NO_START_LINE
	.comm	_ERR_R_PEM_LIB,4,2              ## @ERR_R_PEM_LIB
	.comm	_X509_FILETYPE_ASN1,4,2         ## @X509_FILETYPE_ASN1
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
	.comm	_X509_R_BAD_X509_FILETYPE,4,2   ## @X509_R_BAD_X509_FILETYPE
	.comm	_X509_R_NO_CERTIFICATE_FOUND,4,2 ## @X509_R_NO_CERTIFICATE_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_X509_load_cert_file            ; -- Begin function X509_load_cert_file
	.p2align	2
_X509_load_cert_file:                   ; @X509_load_cert_file
	.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	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_BIO_s_file
	bl	_BIO_new
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_BIO_read_filename
	cmp	x0, #0
	b.le	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _X509_FILETYPE_PEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_FILETYPE_PEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.3:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_PEM_read_bio_X509_AUX
	cbz	x0, LBB0_15
; %bb.4:
	mov	x22, x0
	mov	w20, #0
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	x1, x22
	bl	_X509_STORE_add_cert
	cbz	w0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	mov	x0, x22
	bl	_X509_free
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, x23
	bl	_PEM_read_bio_X509_AUX
	mov	x22, x0
	cbnz	x0, LBB0_5
	b	LBB0_16
LBB0_7:
Lloh7:
	adrp	x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _ERR_R_SYS_LIB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_R_SYS_LIB@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	bl	_X509err
	mov	w20, #0
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x22
	bl	_X509_free
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x20
	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
LBB0_11:
Lloh12:
	adrp	x8, _X509_FILETYPE_ASN1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X509_FILETYPE_ASN1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	bl	_d2i_X509_bio
	mov	x22, x0
	cbz	x0, LBB0_20
; %bb.13:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_X509_STORE_add_cert
	mov	x20, x0
	b	LBB0_10
LBB0_14:
Lloh15:
	adrp	x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _X509_R_BAD_X509_FILETYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _X509_R_BAD_X509_FILETYPE@GOTPAGEOFF]
	b	LBB0_8
LBB0_15:
	mov	w20, #0
LBB0_16:
	bl	_ERR_peek_last_error
	bl	_ERR_GET_REASON
Lloh20:
	adrp	x8, _PEM_R_NO_START_LINE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PEM_R_NO_START_LINE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	ccmp	w20, #0, #4, eq
	b.ne	LBB0_18
; %bb.17:
Lloh23:
	adrp	x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _ERR_R_PEM_LIB@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_R_PEM_LIB@GOTPAGEOFF]
	b	LBB0_8
LBB0_18:
	bl	_ERR_clear_error
	b	LBB0_9
LBB0_19:
	mov	w20, #0
	b	LBB0_10
LBB0_20:
Lloh28:
	adrp	x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _X509_F_X509_LOAD_CERT_FILE@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_X509err
	mov	w20, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_F_X509_LOAD_CERT_FILE,4,2 ; @X509_F_X509_LOAD_CERT_FILE
	.comm	_ERR_R_SYS_LIB,4,2              ; @ERR_R_SYS_LIB
	.comm	_X509_FILETYPE_PEM,4,2          ; @X509_FILETYPE_PEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_PEM_R_NO_START_LINE,8,3        ; @PEM_R_NO_START_LINE
	.comm	_ERR_R_PEM_LIB,4,2              ; @ERR_R_PEM_LIB
	.comm	_X509_FILETYPE_ASN1,4,2         ; @X509_FILETYPE_ASN1
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
	.comm	_X509_R_BAD_X509_FILETYPE,4,2   ; @X509_R_BAD_X509_FILETYPE
	.comm	_X509_R_NO_CERTIFICATE_FOUND,4,2 ; @X509_R_NO_CERTIFICATE_FOUND
.subsections_via_symbols
