	.file	"extr_x509_crt.c_x509_check_wildcard.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	x509_check_wildcard, @function
x509_check_wildcard:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR [rsi]
	cmp	ebp, 2
	jle	.L1
	mov	r12, QWORD PTR 8[rsi]
	cmp	BYTE PTR [r12], 42
	je	.L14
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	BYTE PTR 1[r12], 46
	jne	.L1
	mov	QWORD PTR 8[rsp], rdi
	call	strlen@PLT
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR 8[rsp]
	xor	ecx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	add	rcx, 1
	cmp	rax, rcx
	je	.L10
.L4:
	cmp	BYTE PTR [rdi+rcx], 46
	lea	rsi, [rdi+rcx]
	jne	.L15
	test	rcx, rcx
	je	.L10
	sub	ebp, 1
	sub	rax, rcx
	movsx	rbp, ebp
	mov	rdx, rax
	cmp	rax, rbp
	jne	.L10
	lea	rdi, 1[r12]
	call	x509_memcasecmp@PLT
	test	rax, rax
	setne	al
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	x509_check_wildcard, .-x509_check_wildcard
	.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_x509_crt.c_x509_check_wildcard.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	x509_check_wildcard, %function
x509_check_wildcard:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r1]
	cmp	r6, #2
	ble	.L7
	ldr	r5, [r1, #4]
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #42
	beq	.L14
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L7
	mov	r4, r0
	bl	strlen
	subs	ip, r0, #0
	beq	.L10
	mov	r0, r4
	mov	r2, #0
	b	.L4
.L15:
	add	r2, r2, #1
	cmp	ip, r2
	beq	.L10
.L4:
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r1, r0
	cmp	r3, #46
	add	r0, r0, #1
	bne	.L15
	cmp	r2, #0
	beq	.L10
	sub	r6, r6, #1
	sub	r2, ip, r2
	cmp	r2, r6
	bne	.L10
	add	r0, r5, #1
	bl	x509_memcasecmp
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
	.size	x509_check_wildcard, .-x509_check_wildcard
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
