	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_load_stream_cafile
_php_openssl_load_stream_cafile:        ## @php_openssl_load_stream_cafile
	.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	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_php_stream_open_wrapper
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.23:
	movq	%rbx, %rdi
	callq	_php_stream_close
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_php_error
	jmp	LBB0_22
LBB0_1:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_21:
	xorl	%r12d, %r12d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_php_error
	jmp	LBB0_22
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_php_stream_get_line
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %r13
	leaq	-64(%rbp), %r15
	xorl	%r12d, %r12d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_efree
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_php_stream_get_line
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %r14
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BIO_puts
	movq	%r13, %rdi
	callq	_efree
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_php_stream_get_line
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_BIO_puts
	movq	%r13, %rdi
	callq	_efree
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_X509
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_BIO_free
	testq	%r13, %r13
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_X509_STORE_add_cert
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movq	%r13, %rdi
	callq	_X509_free
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_17:
	movq	%rbx, %rdi
	callq	_php_stream_close
	testq	%r12, %r12
	je	LBB0_20
LBB0_22:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	callq	_php_stream_close
	movq	%r14, %rdi
	callq	_BIO_free
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r12, %r12
	jne	LBB0_22
LBB0_20:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed loading cafile stream: `%s'"

L_.str.2:                               ## @.str.2
	.asciz	"remote cafile streams are disabled for security purposes"

L_.str.3:                               ## @.str.3
	.asciz	"-----BEGIN CERTIFICATE-----\n"

L_.str.4:                               ## @.str.4
	.asciz	"-----BEGIN CERTIFICATE-----\r\n"

L_.str.5:                               ## @.str.5
	.asciz	"-----END CERTIFICATE-----"

L_.str.6:                               ## @.str.6
	.asciz	"-----END CERTIFICATE-----\n"

L_.str.7:                               ## @.str.7
	.asciz	"-----END CERTIFICATE-----\r\n"

L_.str.8:                               ## @.str.8
	.asciz	"no valid certs found cafile stream: `%s'"

	.no_dead_strip	_php_openssl_load_stream_cafile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_load_stream_cafile
_php_openssl_load_stream_cafile:        ; @php_openssl_load_stream_cafile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_php_stream_open_wrapper
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_php_stream_close
Lloh2:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_php_error
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_php_stream_get_line
	cbz	x0, LBB0_20
; %bb.7:
	mov	x28, x0
	mov	x21, #0
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh14:
	adrp	x24, l_.str.5@PAGE
Lloh15:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh16:
	adrp	x25, l_.str.6@PAGE
Lloh17:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh18:
	adrp	x27, l_.str.4@PAGE
Lloh19:
	add	x27, x27, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x0, x28
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	mov	x1, x27
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x28
	bl	_efree
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_php_stream_get_line
	mov	x28, x0
	cbnz	x0, LBB0_8
	b	LBB0_21
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x26, x0
LBB0_13:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x26
	mov	x1, x28
	bl	_BIO_puts
	mov	x0, x28
	bl	_efree
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_php_stream_get_line
	cbz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x28, x0
	mov	x1, x24
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x28
	mov	x1, x25
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x0, x28
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	mov	x1, x28
	bl	_BIO_puts
	mov	x0, x28
	bl	_efree
	mov	x0, x26
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_PEM_read_bio_X509
	mov	x28, x0
	mov	x0, x26
	bl	_BIO_free
	cbz	x28, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x28
	bl	_X509_STORE_add_cert
	cbz	x0, LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	mov	x0, x28
	bl	_X509_free
	b	LBB0_11
LBB0_20:
	mov	x21, #0
LBB0_21:
	mov	x0, x20
	bl	_php_stream_close
	cbnz	x21, LBB0_5
	b	LBB0_23
LBB0_22:
	mov	x0, x20
	bl	_php_stream_close
	mov	x0, x26
	bl	_BIO_free
	cbnz	x21, LBB0_5
LBB0_23:
Lloh22:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_php_error
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed loading cafile stream: `%s'"

l_.str.2:                               ; @.str.2
	.asciz	"remote cafile streams are disabled for security purposes"

l_.str.3:                               ; @.str.3
	.asciz	"-----BEGIN CERTIFICATE-----\n"

l_.str.4:                               ; @.str.4
	.asciz	"-----BEGIN CERTIFICATE-----\r\n"

l_.str.5:                               ; @.str.5
	.asciz	"-----END CERTIFICATE-----"

l_.str.6:                               ; @.str.6
	.asciz	"-----END CERTIFICATE-----\n"

l_.str.7:                               ; @.str.7
	.asciz	"-----END CERTIFICATE-----\r\n"

l_.str.8:                               ; @.str.8
	.asciz	"no valid certs found cafile stream: `%s'"

	.no_dead_strip	_php_openssl_load_stream_cafile
.subsections_via_symbols
