	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_matches_san_list
_php_openssl_matches_san_list:          ## @php_openssl_matches_san_list
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -120(%rbp)
	movq	_NID_subject_alt_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_X509_get_ext_d2i
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_sk_GENERAL_NAME_num
	testl	%eax, %eax
	jle	LBB0_15
## %bb.1:
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	movq	_GEN_DNS@GOTPCREL(%rip), %r13
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_OPENSSL_free
	movq	%r12, %r14
	movl	-124(%rbp), %r12d               ## 4-byte Reload
	movq	_GEN_DNS@GOTPCREL(%rip), %r13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%r15d, %r12d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sk_GENERAL_NAME_value
	movq	%rax, %rbx
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r12
	movl	16(%rbx), %esi
	leaq	-120(%rbp), %rdi
	callq	_ASN1_STRING_to_UTF8
	movl	16(%rbx), %edi
	callq	_ASN1_STRING_length
	movq	%rax, %r14
	movq	-120(%rbp), %r13
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%rax, %r14
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r14d
	movslq	%r14d, %rbx
	addq	%rbx, %r13
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rax
	movb	$0, (%rax,%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rsi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_php_openssl_matches_wildcard_name
	movq	%rax, %rbx
	movq	-120(%rbp), %rdi
	callq	_OPENSSL_free
	testq	%rbx, %rbx
	movq	%r12, %r14
	movl	-124(%rbp), %r12d               ## 4-byte Reload
	movq	_GEN_DNS@GOTPCREL(%rip), %r13
	je	LBB0_5
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_GEN_IPADD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpl	$4, (%rax)
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	movl	8(%rax), %r8d
	movl	12(%rax), %r9d
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_5
LBB0_14:
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_6:
	xorl	%ebx, %ebx
LBB0_15:
	movq	_GENERAL_NAME_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sk_GENERAL_NAME_pop_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_subject_alt_name,4,2       ## @NID_subject_alt_name
	.comm	_GEN_DNS,8,3                    ## @GEN_DNS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.comm	_GENERAL_NAME_free,4,2          ## @GENERAL_NAME_free
	.comm	_GEN_IPADD,8,3                  ## @GEN_IPADD
L_.str.1:                               ## @.str.1
	.asciz	"%d.%d.%d.%d"

	.no_dead_strip	_php_openssl_matches_san_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_matches_san_list
_php_openssl_matches_san_list:          ; @php_openssl_matches_san_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	xzr, [sp]
Lloh3:
	adrp	x8, _NID_subject_alt_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_subject_alt_name@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_X509_get_ext_d2i
	mov	x19, x0
	bl	_sk_GENERAL_NAME_num
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x21, x0
	mov	w22, #0
Lloh6:
	adrp	x27, _GEN_DNS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _GEN_DNS@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _GEN_IPADD@GOTPAGE
Lloh11:
	ldr	x28, [x28, _GEN_IPADD@GOTPAGEOFF]
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_OPENSSL_free
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_sk_GENERAL_NAME_value
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25, #16]
	mov	x0, sp
	bl	_ASN1_STRING_to_UTF8
	ldr	w0, [x25, #16]
	bl	_ASN1_STRING_length
	mov	x26, x0
	ldr	x25, [sp]
	mov	x0, x25
	bl	_strlen
	cmp	x26, x0
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w26, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w26, #1
	sxtw	x26, w8
	add	x0, x25, x26
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	strb	wzr, [x8, x26]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp]
	mov	x0, x20
	bl	_php_openssl_matches_wildcard_name
	mov	x25, x0
	ldr	x0, [sp]
	bl	_OPENSSL_free
	cbz	x25, LBB0_3
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
	ldr	w9, [x8]
	cmp	w9, #4
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	ldp	w2, w3, [x8]
	ldp	w4, w5, [x8, #8]
	add	x0, sp, #8
	mov	x1, x24
	bl	_sprintf
	add	x1, sp, #8
	mov	x0, x20
	bl	_strcasecmp
	cbnz	x0, LBB0_3
LBB0_13:
	mov	w20, #1
	b	LBB0_15
LBB0_14:
	mov	w20, #0
LBB0_15:
Lloh14:
	adrp	x8, _GENERAL_NAME_free@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GENERAL_NAME_free@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sk_GENERAL_NAME_pop_free
	ldr	x8, [sp, #72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_subject_alt_name,4,2       ; @NID_subject_alt_name
	.comm	_GEN_DNS,8,3                    ; @GEN_DNS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.comm	_GENERAL_NAME_free,4,2          ; @GENERAL_NAME_free
	.comm	_GEN_IPADD,8,3                  ; @GEN_IPADD
l_.str.1:                               ; @.str.1
	.asciz	"%d.%d.%d.%d"

	.no_dead_strip	_php_openssl_matches_san_list
.subsections_via_symbols
