	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_enable_crypto
_php_openssl_enable_crypto:             ## @php_openssl_enable_crypto
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpq	$0, (%rdx)
	movl	(%rsi), %eax
	movl	$-1, %r12d
	je	LBB0_5
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_57
## %bb.2:
	movq	%rdi, %rbx
	movl	16(%r15), %r14d
	cmpl	$0, 4(%r15)
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 40(%r15)
	movl	8(%r15), %edi
	je	LBB0_7
## %bb.4:
	callq	_SSL_set_connect_state
	jmp	LBB0_8
LBB0_5:
	testl	%eax, %eax
	je	LBB0_57
## %bb.6:
	movl	8(%r15), %edi
	callq	_SSL_shutdown
	movl	$0, (%r15)
	jmp	LBB0_57
LBB0_7:
	callq	_SSL_set_accept_state
LBB0_8:
	movl	$1, 4(%r15)
LBB0_9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	20(%r15), %edi
	xorl	%esi, %esi
	callq	_php_set_sock_blocking
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.10:
	movl	$0, 16(%r15)
	movl	8(%r15), %ebx
	movl	%ebx, %edi
	callq	_SSL_get_mode
	movq	_SSL_MODE_ENABLE_PARTIAL_WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SSL_set_mode
LBB0_11:
	leaq	48(%r15), %rcx
	leaq	24(%r15), %rax
	cmpq	$0, 40(%r15)
	cmoveq	%rax, %rcx
	cmpl	$0, 16(%r15)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_13
LBB0_12:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	jmp	LBB0_16
LBB0_13:
	cmpq	$0, 8(%rcx)
	jne	LBB0_15
## %bb.14:
	cmpq	$0, (%rcx)
	je	LBB0_12
LBB0_15:
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-128(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-120(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
                                        ## implicit-def: $r12
                                        ## implicit-def: $r13
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_php_pollfd_for
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_ERR_clear_error
	cmpq	$0, 40(%r15)
	movl	8(%r15), %edi
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	callq	_SSL_connect
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	callq	_SSL_accept
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %r14d
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	-96(%rbp), %rdi
	movq	-88(%rbp), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_php_openssl_subtract_timeval
	movq	%rax, %r13
	movq	%rdx, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_php_openssl_compare_timeval
	testq	%rax, %rax
	jg	LBB0_44
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	testl	%r14d, %r14d
	jg	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_php_openssl_handle_ssl_error
	testl	%eax, %eax
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	8(%r15), %edi
	movl	%r14d, %esi
	callq	_SSL_get_error
	movl	%eax, %ebx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_php_openssl_subtract_timeval
	movq	%rax, -112(%rbp)
	movq	%rdx, -104(%rbp)
	leaq	-112(%rbp), %rdx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_19 Depth=1
	xorl	%edx, %edx
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	20(%r15), %edi
	movq	_SSL_ERROR_WANT_READ@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_17
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_POLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_POLLIN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_18
LBB0_31:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, 16(%r15)
	je	LBB0_34
## %bb.32:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	20(%r15), %edi
	movl	%r12d, %esi
	callq	_php_set_sock_blocking
	cmpq	%rax, %rbx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_34
## %bb.33:
	movl	%r12d, 16(%r15)
LBB0_34:
	cmpl	$1, %r14d
	jne	LBB0_40
## %bb.35:
	movl	8(%r15), %edi
	callq	_SSL_get_peer_certificate
	movq	%rax, %r13
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_38
## %bb.36:
	movq	%rbx, %rdi
	callq	_PHP_STREAM_CONTEXT
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_php_openssl_capture_peer_certs
	movl	%eax, %r14d
LBB0_38:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	8(%r15), %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_php_openssl_apply_peer_verification_policy
	cmpq	%rax, %r14
	jne	LBB0_45
## %bb.39:
	movl	8(%r15), %edi
	callq	_SSL_shutdown
	movl	$-1, %r12d
	jmp	LBB0_53
LBB0_40:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_57
## %bb.41:
	movl	8(%r15), %edi
	callq	_SSL_get_peer_certificate
	testq	%rax, %rax
	je	LBB0_49
## %bb.42:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_PHP_STREAM_CONTEXT
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_51
## %bb.43:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_php_openssl_capture_peer_certs
	testq	%r13, %r13
	jne	LBB0_55
	jmp	LBB0_57
LBB0_44:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movl	$-1, %r12d
	jmp	LBB0_57
LBB0_45:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_PHP_STREAM_CONTEXT
	movl	$1, %r12d
	testq	%rax, %rax
	je	LBB0_53
## %bb.46:
	movq	%rbx, %rdi
	callq	_PHP_STREAM_CONTEXT
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rdi
	callq	_php_stream_context_get_option
	testq	%rax, %rax
	je	LBB0_53
## %bb.47:
	movq	%rax, %r14
	movq	_E_DEPRECATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_php_error
	movq	%r14, %rdi
	callq	_zend_is_true
	testq	%rax, %rax
	je	LBB0_53
## %bb.48:
	movl	8(%r15), %edi
	callq	_php_openssl_capture_session_meta
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ZVAL_ARR
	movq	%rbx, %rdi
	callq	_PHP_STREAM_CONTEXT
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%rax, %rdi
	movq	%r14, %rcx
	callq	_php_stream_context_set_option
	movq	%r14, %rdi
	callq	_zval_ptr_dtor
LBB0_53:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testq	%r13, %r13
	je	LBB0_57
LBB0_55:
	testl	%eax, %eax
	jne	LBB0_57
## %bb.56:
	movq	%r13, %rdi
	callq	_X509_free
	jmp	LBB0_57
LBB0_49:
	movl	$-1, %r12d
LBB0_57:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	xorl	%eax, %eax
	testq	%r13, %r13
	jne	LBB0_55
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,8,3                    ## @SUCCESS
	.comm	_SSL_MODE_ENABLE_PARTIAL_WRITE,4,2 ## @SSL_MODE_ENABLE_PARTIAL_WRITE
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ## @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: Handshake timed out"

	.comm	_SSL_ERROR_WANT_READ,4,2        ## @SSL_ERROR_WANT_READ
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_FAILURE,8,3                    ## @FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"ssl"

L_.str.2:                               ## @.str.2
	.asciz	"capture_session_meta"

	.comm	_E_DEPRECATED,4,2               ## @E_DEPRECATED
L_.str.3:                               ## @.str.3
	.asciz	"capture_session_meta is deprecated; its information is now available via stream_get_meta_data()"

L_.str.4:                               ## @.str.4
	.asciz	"session_meta"

	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.no_dead_strip	_php_openssl_enable_crypto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_enable_crypto
_php_openssl_enable_crypto:             ; @php_openssl_enable_crypto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	ldr	x9, [x2]
	ldr	w8, [x1]
	cbz	x9, LBB0_5
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	w21, [x20, #16]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_11
; %bb.3:
	ldr	x8, [x20, #40]
	ldr	w0, [x20, #8]
	cbz	x8, LBB0_9
; %bb.4:
	bl	_SSL_set_connect_state
	b	LBB0_10
LBB0_5:
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w0, [x20, #8]
	bl	_SSL_shutdown
	str	wzr, [x20]
LBB0_7:
	mov	w23, #-1
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	bl	_SSL_set_accept_state
LBB0_10:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_11:
Lloh0:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x20, #20]
	mov	w1, #0
	bl	_php_set_sock_blocking
	cmp	x22, x0
	b.ne	LBB0_13
; %bb.12:
	str	wzr, [x20, #16]
	ldr	w22, [x20, #8]
	mov	x0, x22
	bl	_SSL_get_mode
Lloh3:
	adrp	x8, _SSL_MODE_ENABLE_PARTIAL_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_MODE_ENABLE_PARTIAL_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_SSL_set_mode
LBB0_13:
	ldr	x8, [x20, #40]
	add	x9, x20, #48
	add	x10, x20, #24
	cmp	x8, #0
	csel	x28, x10, x9, eq
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_15
LBB0_14:
	mov	w27, #0
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
                                        ; implicit-def: $x8
                                        ; kill: killed $x8
	b	LBB0_18
LBB0_15:
	ldr	x8, [x28, #8]
	cbnz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x28]
	cbz	x8, LBB0_14
LBB0_17:
	add	x0, sp, #48
	mov	x1, #0
	bl	_gettimeofday
	mov	w27, #1
	ldr	x9, [sp, #48]
	ldr	x8, [sp, #56]
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
LBB0_18:
Lloh9:
	adrp	x22, _POLLPRI@GOTPAGE
Lloh10:
	ldr	x22, [x22, _POLLPRI@GOTPAGEOFF]
                                        ; implicit-def: $x24
                                        ; implicit-def: $x25
Lloh11:
	adrp	x23, _POLLOUT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _POLLOUT@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldp	x0, x1, [x28]
	mov	x2, x25
	mov	x3, x24
	bl	_php_openssl_subtract_timeval
	stp	x0, x1, [sp, #16]
	add	x2, sp, #16
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	w0, [x20, #20]
Lloh13:
	adrp	x8, _SSL_ERROR_WANT_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_ERROR_WANT_READ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _POLLIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x22]
	orr	w9, w10, w9
	ldr	w10, [x23]
	cmp	w26, w8
	csel	w1, w9, w10, eq
	bl	_php_pollfd_for
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	bl	_ERR_clear_error
	ldr	x8, [x20, #40]
	ldr	w0, [x20, #8]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	bl	_SSL_connect
	mov	x26, x0
	cbnz	w27, LBB0_24
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_21 Depth=1
	bl	_SSL_accept
	mov	x26, x0
	cbz	w27, LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	ldp	x0, x1, [sp, #32]
	ldp	x2, x3, [sp]                    ; 16-byte Folded Reload
	bl	_php_openssl_subtract_timeval
	mov	x25, x0
	mov	x24, x1
	ldp	x2, x3, [x28]
	bl	_php_openssl_compare_timeval
	cmp	x0, #0
	b.gt	LBB0_41
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	w26, #0
	b.gt	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x21
	bl	_php_openssl_handle_ssl_error
	cbz	w0, LBB0_29
; %bb.27:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w0, [x20, #8]
	mov	x1, x26
	bl	_SSL_get_error
	mov	x26, x0
	cbnz	w27, LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x2, #0
	b	LBB0_20
LBB0_29:
	ldr	w8, [x20, #16]
	cmp	w8, w21
	b.eq	LBB0_32
; %bb.30:
Lloh19:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
	ldr	w0, [x20, #20]
	mov	x1, x21
	bl	_php_set_sock_blocking
	cmp	x22, x0
	b.ne	LBB0_32
; %bb.31:
	str	w21, [x20, #16]
LBB0_32:
	cmp	w26, #1
	b.ne	LBB0_36
; %bb.33:
	ldr	w0, [x20, #8]
	bl	_SSL_get_peer_certificate
	mov	x21, x0
	cbz	x0, LBB0_38
; %bb.34:
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
	cbz	x0, LBB0_38
; %bb.35:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_php_openssl_capture_peer_certs
	mov	x22, x0
	b	LBB0_39
LBB0_36:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.37:
	mov	w23, #0
	b	LBB0_8
LBB0_38:
	mov	w22, #0
LBB0_39:
Lloh28:
	adrp	x8, _FAILURE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh30:
	ldr	x23, [x8]
	ldr	w0, [x20, #8]
	mov	x1, x21
	mov	x2, x19
	bl	_php_openssl_apply_peer_verification_policy
	cmp	x23, x0
	b.ne	LBB0_45
; %bb.40:
	ldr	w0, [x20, #8]
	bl	_SSL_shutdown
	b	LBB0_51
LBB0_41:
Lloh31:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str@PAGE
Lloh35:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_7
LBB0_42:
	ldr	w0, [x20, #8]
	bl	_SSL_get_peer_certificate
	cbz	x0, LBB0_7
; %bb.43:
	mov	x21, x0
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
	cbz	x0, LBB0_50
; %bb.44:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_php_openssl_capture_peer_certs
	mov	x22, x0
	b	LBB0_51
LBB0_45:
	mov	w23, #1
	str	w23, [x20]
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
	cbz	x0, LBB0_52
; %bb.46:
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh38:
	adrp	x2, l_.str.2@PAGE
Lloh39:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_php_stream_context_get_option
	cbz	x0, LBB0_49
; %bb.47:
	mov	x23, x0
Lloh40:
	adrp	x8, _E_DEPRECATED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _E_DEPRECATED@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x1, l_.str.3@PAGE
Lloh44:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_php_error
	mov	x0, x23
	bl	_zend_is_true
	cbz	x0, LBB0_49
; %bb.48:
	ldr	w0, [x20, #8]
	bl	_php_openssl_capture_session_meta
	mov	x1, x0
	add	x0, sp, #32
	bl	_ZVAL_ARR
	mov	x0, x19
	bl	_PHP_STREAM_CONTEXT
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh47:
	adrp	x2, l_.str.4@PAGE
Lloh48:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #32
	bl	_php_stream_context_set_option
	add	x0, sp, #32
	bl	_zval_ptr_dtor
	mov	w23, #1
	b	LBB0_52
LBB0_49:
	mov	w23, #1
	b	LBB0_52
LBB0_50:
	mov	w22, #0
LBB0_51:
	mov	w23, #-1
LBB0_52:
	cbz	x21, LBB0_8
; %bb.53:
	cbnz	w22, LBB0_8
; %bb.54:
	mov	x0, x21
	bl	_X509_free
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,8,3                    ; @SUCCESS
	.comm	_SSL_MODE_ENABLE_PARTIAL_WRITE,4,2 ; @SSL_MODE_ENABLE_PARTIAL_WRITE
	.comm	_SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER,4,2 ; @SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: Handshake timed out"

	.comm	_SSL_ERROR_WANT_READ,4,2        ; @SSL_ERROR_WANT_READ
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_FAILURE,8,3                    ; @FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"ssl"

l_.str.2:                               ; @.str.2
	.asciz	"capture_session_meta"

	.comm	_E_DEPRECATED,4,2               ; @E_DEPRECATED
l_.str.3:                               ; @.str.3
	.asciz	"capture_session_meta is deprecated; its information is now available via stream_get_meta_data()"

l_.str.4:                               ; @.str.4
	.asciz	"session_meta"

	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.no_dead_strip	_php_openssl_enable_crypto
.subsections_via_symbols
