	.file	"extr_openssl_hostname_validation.c_matches_common_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	matches_common_name, @function
matches_common_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, DWORD PTR NID_commonName[rip]
	call	X509_get_subject_name@PLT
	mov	edx, -1
	mov	esi, ebp
	mov	edi, eax
	call	X509_NAME_get_index_by_NID@PLT
	test	eax, eax
	js	.L10
	mov	rdi, r12
	mov	ebp, eax
	call	X509_get_subject_name@PLT
	mov	esi, ebp
	mov	edi, eax
	call	X509_NAME_get_entry@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L10
	call	X509_NAME_ENTRY_get_data@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	rdi, rax
	call	ASN1_STRING_get0_data@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	ASN1_STRING_length@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	strlen@PLT
	cmp	rbp, rax
	je	.L6
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR MalformedCertificate[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR Error[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, r12
	call	Curl_cert_hostcheck@PLT
	mov	r8, rax
	cmp	r8, QWORD PTR CURL_HOST_MATCH[rip]
	mov	eax, DWORD PTR MatchNotFound[rip]
	jne	.L1
	mov	eax, DWORD PTR MatchFound[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	matches_common_name, .-matches_common_name
	.comm	NID_commonName,4,4
	.comm	MatchNotFound,4,4
	.comm	MatchFound,4,4
	.comm	MalformedCertificate,4,4
	.comm	Error,4,4
	.comm	CURL_HOST_MATCH,8,8
	.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_openssl_hostname_validation.c_matches_common_name.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	matches_common_name, %function
matches_common_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	bl	X509_get_subject_name
	ldr	r3, .L12
	mvn	r2, #0
	ldr	r1, [r3]
	bl	X509_NAME_get_index_by_NID
	subs	r4, r0, #0
	blt	.L10
	mov	r0, r5
	bl	X509_get_subject_name
	mov	r1, r4
	bl	X509_NAME_get_entry
	cmp	r0, #0
	beq	.L10
	bl	X509_NAME_ENTRY_get_data
	subs	r4, r0, #0
	beq	.L10
	bl	ASN1_STRING_get0_data
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	ASN1_STRING_length
	mov	r5, r0
	mov	r0, r4
	bl	strlen
	cmp	r5, r0
	beq	.L6
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r1, r6
	mov	r0, r4
	bl	Curl_cert_hostcheck
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L12+16
	ldrne	r3, .L12+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	NID_commonName
	.word	MalformedCertificate
	.word	Error
	.word	CURL_HOST_MATCH
	.word	MatchFound
	.word	MatchNotFound
	.size	matches_common_name, .-matches_common_name
	.comm	NID_commonName,4,4
	.comm	MatchNotFound,4,4
	.comm	MatchFound,4,4
	.comm	MalformedCertificate,4,4
	.comm	Error,4,4
	.comm	CURL_HOST_MATCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
