	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_apply_peer_verification_policy
_php_openssl_apply_peer_verification_policy: ## @php_openssl_apply_peer_verification_policy
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdx), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_GET_VER_OPT
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_zend_is_true
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_2:
	movl	(%rbx), %r14d
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_GET_VER_OPT
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_zend_is_true
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	(%rbx), %r12d
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_GET_VER_OPT
	movl	%eax, %r13d
	movl	%r14d, %eax
	orl	%r12d, %eax
	orl	%r13d, %eax
	setne	%al
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.7:
	testb	%al, %al
	je	LBB0_10
## %bb.8:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_9:
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_php_error_docref
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.11:
	movq	%r15, %rdi
	callq	_SSL_get_verify_result
	cmpl	$128, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %ebx
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	callq	_GET_VER_OPT
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	callq	_zend_is_true
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:
	testl	%r13d, %r13d
	je	LBB0_23
## %bb.18:
	xorl	%edi, %edi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	xorl	%edi, %edi
	callq	_Z_TYPE_P
	movq	_IS_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_php_openssl_x509_fingerprint_match
	testl	%eax, %eax
	je	LBB0_21
LBB0_23:
	movq	_SUCCESS@GOTPCREL(%rip), %r15
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.25:
	leaq	L_.str.8(%rip), %rdi
	xorl	%esi, %esi
	callq	_GET_VER_OPT_STRING
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_30
## %bb.26:
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.27:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_php_openssl_matches_san_list
	movq	%r15, %rcx
	testq	%rax, %rax
	jne	LBB0_30
## %bb.28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_php_openssl_matches_common_name
	testq	%rax, %rax
	je	LBB0_16
## %bb.29:
	movq	_SUCCESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_15:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_X509_verify_cert_error_string
	leaq	L_.str.5(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_php_error_docref
LBB0_16:
	movq	_FAILURE@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_24:
	movq	%r15, %rcx
LBB0_30:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_9
LBB0_22:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verify_peer"

L_.str.1:                               ## @.str.1
	.asciz	"verify_peer_name"

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

	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"Could not get peer certificate"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.4:                               ## @.str.4
	.asciz	"allow_self_signed"

L_.str.5:                               ## @.str.5
	.asciz	"Could not verify peer: code:%d %s"

	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_IS_ARRAY,8,3                   ## @IS_ARRAY
L_.str.6:                               ## @.str.6
	.asciz	"peer_fingerprint match failure"

L_.str.7:                               ## @.str.7
	.asciz	"Expected peer fingerprint must be a string or an array"

L_.str.8:                               ## @.str.8
	.asciz	"peer_name"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_openssl_apply_peer_verification_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_apply_peer_verification_policy
_php_openssl_apply_peer_verification_policy: ; @php_openssl_apply_peer_verification_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x24, [x2]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GET_VER_OPT
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, #0
	bl	_zend_is_true
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	ldr	w22, [x24]
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_GET_VER_OPT
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, #0
	bl	_zend_is_true
	mov	x20, x0
	b	LBB0_6
LBB0_5:
	ldr	w20, [x24]
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_GET_VER_OPT
	mov	x23, x0
	orr	w8, w22, w20
	orr	w8, w8, w0
	cmp	w8, #0
	cset	w8, ne
	cbnz	x19, LBB0_10
; %bb.7:
	cbz	w8, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, #0
	b	LBB0_25
LBB0_10:
	cbz	w22, LBB0_15
; %bb.11:
	mov	x0, x21
	bl	_SSL_get_verify_result
	cmp	w0, #128
	b.eq	LBB0_15
; %bb.12:
	mov	x21, x0
	cmp	w0, #129
	b.ne	LBB0_24
; %bb.13:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_GET_VER_OPT
	cbz	w0, LBB0_24
; %bb.14:
	mov	x0, #0
	bl	_zend_is_true
	cbz	w0, LBB0_24
LBB0_15:
	cbz	w23, LBB0_19
; %bb.16:
	mov	x0, #0
	bl	_Z_TYPE_P
Lloh13:
	adrp	x8, _IS_STRING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IS_STRING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, #0
	bl	_Z_TYPE_P
Lloh16:
	adrp	x8, _IS_ARRAY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IS_ARRAY@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_30
LBB0_18:
	mov	x0, x19
	mov	x1, #0
	bl	_php_openssl_x509_fingerprint_match
	cbz	w0, LBB0_29
LBB0_19:
	cbz	w20, LBB0_28
; %bb.20:
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, #0
	bl	_GET_VER_OPT_STRING
	ldr	w8, [x24]
	cbz	w8, LBB0_26
; %bb.21:
	ldr	x20, [x24, #8]
Lloh21:
	adrp	x22, _FAILURE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _FAILURE@GOTPAGEOFF]
	cbz	x20, LBB0_31
; %bb.22:
	mov	x0, x19
	mov	x1, x20
	bl	_php_openssl_matches_san_list
Lloh23:
	adrp	x21, _SUCCESS@GOTPAGE
Lloh24:
	ldr	x21, [x21, _SUCCESS@GOTPAGEOFF]
	cbnz	x0, LBB0_27
; %bb.23:
	mov	x0, x19
	mov	x1, x20
	bl	_php_openssl_matches_common_name
	cmp	x0, #0
	csel	x21, x22, x21, eq
	b	LBB0_27
LBB0_24:
Lloh25:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	mov	x0, x21
	bl	_X509_verify_cert_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh28:
	adrp	x2, l_.str.5@PAGE
Lloh29:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, #0
	mov	x1, x19
LBB0_25:
	bl	_php_error_docref
LBB0_26:
Lloh30:
	adrp	x21, _FAILURE@GOTPAGE
Lloh31:
	ldr	x21, [x21, _FAILURE@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x21]
	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
	add	sp, sp, #80
	ret
LBB0_28:
Lloh32:
	adrp	x21, _SUCCESS@GOTPAGE
Lloh33:
	ldr	x21, [x21, _SUCCESS@GOTPAGEOFF]
	b	LBB0_27
LBB0_29:
Lloh34:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.6@PAGE
Lloh38:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_30:
Lloh39:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh40:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x2, l_.str.7@PAGE
Lloh43:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_31:
	mov	x21, x22
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verify_peer"

l_.str.1:                               ; @.str.1
	.asciz	"verify_peer_name"

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

	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"Could not get peer certificate"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.4:                               ; @.str.4
	.asciz	"allow_self_signed"

l_.str.5:                               ; @.str.5
	.asciz	"Could not verify peer: code:%d %s"

	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_IS_ARRAY,8,3                   ; @IS_ARRAY
l_.str.6:                               ; @.str.6
	.asciz	"peer_fingerprint match failure"

l_.str.7:                               ; @.str.7
	.asciz	"Expected peer fingerprint must be a string or an array"

l_.str.8:                               ; @.str.8
	.asciz	"peer_name"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_openssl_apply_peer_verification_policy
.subsections_via_symbols
