	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function use_certificate_chain_file
_use_certificate_chain_file:            ## @use_certificate_chain_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ERR_clear_error
	leaq	8(%rbx), %rax
	leaq	8(%r12), %rcx
	testq	%rbx, %rbx
	cmoveq	%rcx, %rax
	movq	%rbx, %rcx
	cmoveq	%r12, %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	xorl	%eax, %eax
	callq	_BIO_s_file
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_BIO_read_filename
	testq	%rax, %rax
	jle	LBB0_6
## %bb.2:
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_PEM_read_bio_X509_AUX
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	testq	%rbx, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_SSL_CTX_use_certificate
	jmp	LBB0_10
LBB0_5:
	movq	_SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BUF_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_SYS_LIB@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_8:
	movq	_SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PEM_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%edi, %edi
	jmp	LBB0_25
LBB0_9:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_SSL_use_certificate
LBB0_10:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_ERR_peek_error
	testq	%rax, %rax
	movl	$0, %eax
	cmovnel	%eax, %r15d
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_SSL_CTX_clear_chain_certs
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_23
LBB0_13:
	movq	%r12, %rdi
	callq	_SSL_clear_chain_certs
	testl	%eax, %eax
	je	LBB0_23
LBB0_14:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_SSL_add0_chain_cert
	testl	%eax, %eax
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_PEM_read_bio_X509
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SSL_CTX_add0_chain_cert
	testl	%eax, %eax
	jne	LBB0_16
LBB0_19:
	movq	%r15, %rdi
	callq	_X509_free
	jmp	LBB0_23
LBB0_20:
	xorl	%eax, %eax
	callq	_ERR_peek_last_error
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ERR_GET_LIB
	movq	_ERR_LIB_PEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	callq	_ERR_GET_REASON
	movq	_PEM_R_NO_START_LINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_23:
	xorl	%r15d, %r15d
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_25:
	callq	_X509_free
	movq	%r13, %rdi
	callq	_BIO_free
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_USE_CERTIFICATE_CHAIN_FILE,4,2 ## @SSL_F_USE_CERTIFICATE_CHAIN_FILE
	.comm	_ERR_R_BUF_LIB,4,2              ## @ERR_R_BUF_LIB
	.comm	_ERR_R_SYS_LIB,4,2              ## @ERR_R_SYS_LIB
	.comm	_ERR_R_PEM_LIB,4,2              ## @ERR_R_PEM_LIB
	.comm	_ERR_LIB_PEM,8,3                ## @ERR_LIB_PEM
	.comm	_PEM_R_NO_START_LINE,8,3        ## @PEM_R_NO_START_LINE
	.no_dead_strip	_use_certificate_chain_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function use_certificate_chain_file
_use_certificate_chain_file:            ; @use_certificate_chain_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ERR_clear_error
	add	x8, x22, #8
	add	x9, x21, #8
	cmp	x22, #0
	csel	x8, x9, x8, eq
	csel	x9, x21, x22, eq
	ldr	x23, [x9]
	ldr	x24, [x8]
	bl	_BIO_s_file
	bl	_BIO_new
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_read_filename
	cmp	x0, #0
	b.le	LBB0_6
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	mov	x2, x24
	mov	x3, x23
	bl	_PEM_read_bio_X509_AUX
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.3:
	cbz	x22, LBB0_11
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_SSL_CTX_use_certificate
	b	LBB0_12
LBB0_5:
Lloh0:
	adrp	x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_BUF_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_BUF_LIB@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_SYS_LIB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_SYS_LIB@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	x20, #0
LBB0_8:
	mov	w25, #0
LBB0_9:
	mov	x0, x20
	bl	_X509_free
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x25
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh10:
	adrp	x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_USE_CERTIFICATE_CHAIN_FILE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ERR_R_PEM_LIB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERR_R_PEM_LIB@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_SSLerr
	b	LBB0_8
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	bl	_SSL_use_certificate
LBB0_12:
	mov	x25, x0
	bl	_ERR_peek_error
	cmp	x0, #0
	csel	w25, w25, wzr, eq
	cbz	w25, LBB0_9
; %bb.13:
	cbz	x22, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_SSL_CTX_clear_chain_certs
	cbnz	w0, LBB0_17
	b	LBB0_8
LBB0_15:
	mov	x0, x21
	bl	_SSL_clear_chain_certs
	cbnz	w0, LBB0_17
	b	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_SSL_add0_chain_cert
	cbz	w0, LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, #0
	mov	x2, x24
	mov	x3, x23
	bl	_PEM_read_bio_X509
	cbz	x0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, x0
	cbz	x22, LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_SSL_CTX_add0_chain_cert
	cbnz	w0, LBB0_17
LBB0_20:
	mov	x0, x26
	bl	_X509_free
	b	LBB0_8
LBB0_21:
	bl	_ERR_peek_last_error
	mov	x21, x0
	bl	_ERR_GET_LIB
Lloh16:
	adrp	x8, _ERR_LIB_PEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_LIB_PEM@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.22:
	mov	x0, x21
	bl	_ERR_GET_REASON
Lloh19:
	adrp	x8, _PEM_R_NO_START_LINE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PEM_R_NO_START_LINE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.23:
	bl	_ERR_clear_error
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_USE_CERTIFICATE_CHAIN_FILE,4,2 ; @SSL_F_USE_CERTIFICATE_CHAIN_FILE
	.comm	_ERR_R_BUF_LIB,4,2              ; @ERR_R_BUF_LIB
	.comm	_ERR_R_SYS_LIB,4,2              ; @ERR_R_SYS_LIB
	.comm	_ERR_R_PEM_LIB,4,2              ; @ERR_R_PEM_LIB
	.comm	_ERR_LIB_PEM,8,3                ; @ERR_LIB_PEM
	.comm	_PEM_R_NO_START_LINE,8,3        ; @PEM_R_NO_START_LINE
	.no_dead_strip	_use_certificate_chain_file
.subsections_via_symbols
