	.file	"extr_openssl_hostname_validation.c_validate_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	validate_name, @function
validate_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ASN1_STRING_data@PLT
	mov	rdi, r12
	mov	r13, rax
	call	ASN1_STRING_length@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	strlen@PLT
	mov	esi, r12d
	mov	rdi, r13
	mov	ebx, eax
	call	has_nul@PLT
	test	rax, rax
	jne	.L20
	test	ebx, ebx
	je	.L4
	movsx	rax, ebx
	cmp	BYTE PTR -1[rbp+rax], 46
	je	.L21
.L4:
	cmp	r12d, 2
	jle	.L5
.L24:
	cmp	BYTE PTR 0[r13], 42
	je	.L22
.L5:
	mov	eax, DWORD PTR MatchNotFound[rip]
	cmp	r12d, ebx
	je	.L23
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L23:
	.cfi_restore_state
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	call	memeq_ncase@PLT
	test	rax, rax
	mov	eax, DWORD PTR MatchFound[rip]
	cmove	eax, DWORD PTR MatchNotFound[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR MalformedCertificate[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L21:
	.cfi_restore_state
	sub	ebx, 1
	cmp	r12d, 2
	jle	.L5
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	BYTE PTR 1[r13], 46
	jne	.L5
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L25:
	add	rbp, 1
	sub	ebx, 1
	cmp	BYTE PTR -1[rbp], 46
	je	.L6
.L18:
	test	ebx, ebx
	jne	.L25
.L6:
	add	r13, 2
	sub	r12d, 2
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	validate_name, .-validate_name
	.comm	MatchNotFound,4,4
	.comm	MatchFound,4,4
	.comm	MalformedCertificate,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_openssl_hostname_validation.c_validate_name.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	validate_name, %function
validate_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r4, r1
	bl	ASN1_STRING_data
	mov	r7, r0
	mov	r0, r4
	bl	ASN1_STRING_length
	mov	r4, r0
	mov	r0, r6
	bl	strlen
	mov	r1, r4
	mov	r5, r0
	mov	r0, r7
	bl	has_nul
	cmp	r0, #0
	bne	.L23
	cmp	r5, #0
	beq	.L4
	add	r3, r6, r5
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	cmp	r3, #46
	subeq	r5, r5, #1
.L4:
	cmp	r4, #2
	ble	.L5
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L24
.L5:
	cmp	r4, r5
	beq	.L8
.L9:
	ldr	r3, .L26
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	bl	memeq_ncase
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L26+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r3, .L26+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	ldrb	r3, [r7, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L5
	b	.L21
.L25:
	ldrb	r3, [r6], #1	@ zero_extendqisi2
	sub	r5, r5, #1
	cmp	r3, #46
	beq	.L6
.L21:
	cmp	r5, #0
	bne	.L25
.L6:
	add	r7, r7, #2
	sub	r4, r4, #2
	b	.L5
.L27:
	.align	2
.L26:
	.word	MatchNotFound
	.word	MatchFound
	.word	MalformedCertificate
	.size	validate_name, .-validate_name
	.comm	MatchNotFound,4,4
	.comm	MatchFound,4,4
	.comm	MalformedCertificate,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
