	.file	"extr_xp_ssl.c_php_openssl_matches_san_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	"%d.%d.%d.%d"
	.text
	.p2align 4
	.type	php_openssl_matches_san_list, @function
php_openssl_matches_san_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	xor	edx, edx
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	esi, DWORD PTR NID_subject_alt_name[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 24[rsp], 0
	call	X509_get_ext_d2i@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	sk_GENERAL_NAME_num@PLT
	mov	r12d, eax
	lea	rax, 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	test	r12d, r12d
	jg	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	add	r15d, 1
	cmp	r12d, r15d
	je	.L11
.L2:
	mov	esi, r15d
	mov	rdi, rbp
	call	sk_GENERAL_NAME_value@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR GEN_DNS[rip]
	je	.L20
	cmp	rax, QWORD PTR GEN_IPADD[rip]
	jne	.L6
	mov	rax, QWORD PTR 8[rbx]
	cmp	DWORD PTR [rax], 4
	jne	.L6
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 8[rsp]
	lea	rsi, .LC1[rip]
	mov	ecx, DWORD PTR 4[rax]
	mov	r9d, DWORD PTR 12[rax]
	mov	rdi, rbx
	mov	r8d, DWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	call	sprintf@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	strcasecmp@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR GENERAL_NAME_free[rip]
	mov	rdi, rbp
	call	sk_GENERAL_NAME_pop_free@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR 16[rbx]
	lea	rdi, 24[rsp]
	call	ASN1_STRING_to_UTF8@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	ASN1_STRING_length@PLT
	mov	r14, QWORD PTR 24[rsp]
	mov	rbx, rax
	mov	rdi, r14
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L21
	test	ebx, ebx
	jne	.L22
.L7:
	mov	rdi, r13
	mov	rsi, r14
	call	php_openssl_matches_wildcard_name@PLT
	mov	rdi, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L23
	call	OPENSSL_free@PLT
	add	r15d, 1
	cmp	r12d, r15d
	jne	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR GENERAL_NAME_free[rip]
	mov	rdi, rbp
	call	sk_GENERAL_NAME_pop_free@PLT
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 104[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, r14
	call	OPENSSL_free@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	movsx	rbx, ebx
	lea	rsi, .LC0[rip]
	lea	rdi, -1[r14+rbx]
	call	strcmp@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR 24[rsp]
	mov	BYTE PTR -1[rax+rbx], 0
.L18:
	mov	r14, QWORD PTR 24[rsp]
	jmp	.L7
.L23:
	call	OPENSSL_free@PLT
	mov	esi, DWORD PTR GENERAL_NAME_free[rip]
	mov	rdi, rbp
	call	sk_GENERAL_NAME_pop_free@PLT
	mov	eax, 1
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	php_openssl_matches_san_list, .-php_openssl_matches_san_list
	.comm	NID_subject_alt_name,4,4
	.comm	GEN_IPADD,8,8
	.comm	GEN_DNS,8,8
	.comm	GENERAL_NAME_free,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_xp_ssl.c_php_openssl_matches_san_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d.%d.%d.%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	php_openssl_matches_san_list, %function
php_openssl_matches_san_list:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	mov	r10, r1
	ldr	r1, .L25
	ldr	ip, .L25+4
	sub	sp, sp, #84
	mov	r3, r5
	mov	r2, r5
	ldr	r1, [r1]
	ldr	ip, [ip]
	str	ip, [sp, #76]
	mov	ip,#0
	str	r5, [sp, #8]
	bl	X509_get_ext_d2i
	mov	r6, r0
	bl	sk_GENERAL_NAME_num
	subs	r7, r0, #0
	ble	.L11
	ldr	r8, .L25+8
	ldr	r9, .L25+12
	b	.L2
.L6:
	add	r5, r5, #1
	cmp	r7, r5
	beq	.L11
.L2:
	mov	r1, r5
	mov	r0, r6
	bl	sk_GENERAL_NAME_value
	ldr	r2, [r8]
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, r2
	beq	.L21
	ldr	r2, [r9]
	cmp	r3, r2
	bne	.L6
	ldr	r3, [r0, #4]
	ldr	r2, [r3]
	cmp	r2, #4
	bne	.L6
	ldr	r0, [r3, #4]
	ldr	r1, .L25+16
	ldr	ip, [r0, #12]
	ldm	r0, {r2, r3}
	str	ip, [sp, #4]
	ldr	r0, [r0, #8]
	str	r0, [sp]
	add	r0, sp, #12
	bl	sprintf
	mov	r0, r10
	add	r1, sp, #12
	bl	strcasecmp
	cmp	r0, #0
	bne	.L6
.L19:
	ldr	r3, .L25+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	sk_GENERAL_NAME_pop_free
	mov	r0, #1
	b	.L1
.L21:
	ldr	r1, [r0, #8]
	add	r0, sp, #8
	bl	ASN1_STRING_to_UTF8
	ldr	r0, [r4, #8]
	bl	ASN1_STRING_length
	ldr	fp, [sp, #8]
	mov	r4, r0
	mov	r0, fp
	bl	strlen
	cmp	r4, r0
	bne	.L22
	cmp	r4, #0
	beq	.L7
	sub	r4, r4, #1
	ldrb	r3, [fp, r4]	@ zero_extendqisi2
	add	r4, fp, r4
	cmp	r3, #46
	bne	.L7
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #0
	strbeq	r3, [r4]
	ldreq	fp, [sp, #8]
.L7:
	mov	r1, fp
	mov	r0, r10
	bl	php_openssl_matches_wildcard_name
	cmp	r0, #0
	ldr	r0, [sp, #8]
	bne	.L23
	add	r5, r5, #1
	bl	OPENSSL_free
	cmp	r7, r5
	bne	.L2
.L11:
	ldr	r3, .L25+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	sk_GENERAL_NAME_pop_free
	mov	r0, #0
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r0, fp
	bl	OPENSSL_free
	b	.L6
.L23:
	bl	OPENSSL_free
	b	.L19
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	NID_subject_alt_name
	.word	.LC1
	.word	GEN_DNS
	.word	GEN_IPADD
	.word	.LC0
	.word	GENERAL_NAME_free
	.size	php_openssl_matches_san_list, .-php_openssl_matches_san_list
	.comm	NID_subject_alt_name,4,4
	.comm	GEN_IPADD,4,4
	.comm	GEN_DNS,4,4
	.comm	GENERAL_NAME_free,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
