	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_handle_ssl_error
_php_openssl_handle_ssl_error:          ## @php_openssl_handle_ssl_error
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movl	(%r13), %edi
	callq	_SSL_get_error
	movl	%eax, %r15d
	movq	$0, -568(%rbp)
	leal	-130(%r15), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.1:
	cmpl	$129, %r15d
	je	LBB0_22
## %bb.2:
	cmpl	$132, %r15d
	jne	LBB0_12
## %bb.3:
	xorl	%eax, %eax
	callq	_ERR_peek_error
	testl	%eax, %eax
	je	LBB0_4
LBB0_12:
	xorl	%eax, %eax
	callq	_ERR_get_error
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ERR_GET_REASON
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.25:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
	jmp	LBB0_21
LBB0_9:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %ebx
	testl	%r12d, %r12d
	jne	LBB0_23
## %bb.10:
	movl	4(%r13), %ebx
	jmp	LBB0_23
LBB0_13:
	leaq	-560(%rbp), %r12
	leaq	-568(%rbp), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_smart_str_appends
	xorl	%eax, %eax
	callq	_ERR_get_error
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$512, %edx                      ## imm = 0x200
	callq	_ERR_error_string_n
	cmpl	$0, -568(%rbp)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_smart_str_appendc
	jmp	LBB0_16
LBB0_17:
	leaq	-568(%rbp), %rdi
	callq	_smart_str_0
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-568(%rbp), %edi
	leaq	L_.str.5(%rip), %r9
	leaq	L_.str.4(%rip), %rbx
	testl	%edi, %edi
	cmoveq	%r9, %rbx
	je	LBB0_19
## %bb.18:
	callq	_ZSTR_VAL
	movq	%rax, %r9
LBB0_19:
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_php_error_docref
	cmpl	$0, -568(%rbp)
	je	LBB0_21
## %bb.20:
	leaq	-568(%rbp), %rdi
	callq	_smart_str_free
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.24:
	movl	%ebx, %eax
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_php_socket_errno
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_php_socket_strerror
	movq	%rax, %r14
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_php_error_docref
	movq	%r14, %rdi
	callq	_efree
	jmp	LBB0_23
LBB0_5:
	movq	%r14, %rdi
	callq	_php_openssl_is_http_stream_talking_to_iis
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	callq	_ERR_get_error
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
LBB0_8:
	movl	(%r13), %edi
	movq	_SSL_SENT_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	_SSL_RECEIVED_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_SSL_set_shutdown
	movl	$1, (%r14)
	jmp	LBB0_22
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_errno,4,2                      ## @errno
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSL: fatal protocol error"

	.comm	_SSL_SENT_SHUTDOWN,4,2          ## @SSL_SENT_SHUTDOWN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ## @SSL_RECEIVED_SHUTDOWN
L_.str.1:                               ## @.str.1
	.asciz	"SSL: %s"

L_.str.2:                               ## @.str.2
	.asciz	"SSL_R_NO_SHARED_CIPHER: no suitable shared cipher could be used.  This could be because the server is missing an SSL certificate (local_cert context option)"

L_.str.3:                               ## @.str.3
	.asciz	"SSL operation failed with code %d. %s%s"

L_.str.4:                               ## @.str.4
	.asciz	"OpenSSL Error messages:\n"

L_.str.5:                               ## @.str.5
	.space	1

	.no_dead_strip	_php_openssl_handle_ssl_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_handle_ssl_error
_php_openssl_handle_ssl_error:          ; @php_openssl_handle_ssl_error
	.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
	sub	sp, sp, #560
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x23, [x0, #8]
	ldr	w0, [x23]
	bl	_SSL_get_error
	str	xzr, [sp, #32]
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.1:
	mov	x19, x0
	cmp	w0, #129
	b.eq	LBB0_11
; %bb.2:
	cmp	w19, #132
	b.ne	LBB0_4
; %bb.3:
	bl	_ERR_peek_error
	cbz	w0, LBB0_18
LBB0_4:
	bl	_ERR_get_error
	mov	x20, x0
	bl	_ERR_GET_REASON
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	b	LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #32
	add	x1, sp, #40
	bl	_smart_str_appends
	bl	_ERR_get_error
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #512
	bl	_ERR_error_string_n
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #32
	mov	w1, #10
	bl	_smart_str_appendc
	b	LBB0_6
LBB0_9:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	cbz	w22, LBB0_17
; %bb.10:
	mov	w0, #1
	b	LBB0_24
LBB0_11:
	mov	w0, #0
	b	LBB0_24
LBB0_12:
	add	x0, sp, #32
	bl	_smart_str_0
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	ldr	w8, [sp, #32]
Lloh17:
	adrp	x9, l_.str.4@PAGE
Lloh18:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x21, x0, x9, eq
	cbz	w8, LBB0_14
; %bb.13:
	mov	x0, x8
	bl	_ZSTR_VAL
LBB0_14:
	stp	x21, x0, [sp, #8]
	str	x19, [sp]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_php_error_docref
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_16
; %bb.15:
	add	x0, sp, #32
	bl	_smart_str_free
LBB0_16:
	mov	w0, #0
Lloh23:
	adrp	x8, _errno@GOTPAGE
Lloh24:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh25:
	str	wzr, [x8]
	b	LBB0_24
LBB0_17:
	ldr	w0, [x23, #4]
	b	LBB0_24
LBB0_18:
	cbz	w21, LBB0_20
; %bb.19:
	bl	_php_socket_errno
	mov	x1, #0
	mov	w2, #0
	bl	_php_socket_strerror
	mov	x19, x0
Lloh26:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh27:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	mov	x0, x19
	bl	_efree
	mov	w0, #0
	b	LBB0_24
LBB0_20:
	mov	x0, x20
	bl	_php_openssl_is_http_stream_talking_to_iis
	cbnz	w0, LBB0_23
; %bb.21:
	bl	_ERR_get_error
	cbz	x0, LBB0_23
; %bb.22:
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
LBB0_23:
Lloh36:
	adrp	x8, _SSL_SENT_SHUTDOWN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SSL_SENT_SHUTDOWN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _SSL_RECEIVED_SHUTDOWN@GOTPAGE
Lloh40:
	ldr	x9, [x9, _SSL_RECEIVED_SHUTDOWN@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_SSL_set_shutdown
	mov	w0, #0
	mov	w8, #1
	str	w8, [x20]
LBB0_24:
	ldur	x8, [x29, #-56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	add	sp, sp, #560
	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_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_errno,4,2                      ; @errno
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSL: fatal protocol error"

	.comm	_SSL_SENT_SHUTDOWN,4,2          ; @SSL_SENT_SHUTDOWN
	.comm	_SSL_RECEIVED_SHUTDOWN,4,2      ; @SSL_RECEIVED_SHUTDOWN
l_.str.1:                               ; @.str.1
	.asciz	"SSL: %s"

l_.str.2:                               ; @.str.2
	.asciz	"SSL_R_NO_SHARED_CIPHER: no suitable shared cipher could be used.  This could be because the server is missing an SSL certificate (local_cert context option)"

l_.str.3:                               ; @.str.3
	.asciz	"SSL operation failed with code %d. %s%s"

l_.str.4:                               ; @.str.4
	.asciz	"OpenSSL Error messages:\n"

l_.str.5:                               ; @.str.5
	.space	1

	.no_dead_strip	_php_openssl_handle_ssl_error
.subsections_via_symbols
