	.file	"extr_zap_micro.c_zap_name_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zap_name_alloc
	.type	zap_name_alloc, @function
zap_name_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 72
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR KM_SLEEP[rip]
	call	kmem_alloc@PLT
	mov	rdi, r13
	mov	QWORD PTR 64[rax], rbp
	mov	r12, rax
	mov	DWORD PTR [rax], 1
	mov	QWORD PTR 8[rax], r13
	call	strlen@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	DWORD PTR 16[r12], ebx
	add	rax, 1
	mov	QWORD PTR 56[r12], rax
	mov	DWORD PTR 20[r12], ecx
	test	DWORD PTR MT_MATCH_CASE[rip], ebx
	je	.L2
	mov	eax, DWORD PTR U8_TEXTPREP_TOUPPER[rip]
	not	eax
	and	eax, ecx
	mov	DWORD PTR 20[r12], eax
	test	ecx, ecx
	je	.L14
.L3:
	mov	rdx, QWORD PTR 24[r12]
	mov	rsi, r13
	mov	rdi, rbp
	call	zap_normalize@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, QWORD PTR 24[r12]
	mov	QWORD PTR 32[r12], rdi
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR 40[r12], rax
.L8:
	mov	rdi, r12
	call	zap_hash@PLT
	mov	ecx, DWORD PTR 20[r12]
	mov	DWORD PTR 48[r12], eax
	cmp	DWORD PTR 0[rbp], ecx
	je	.L1
	mov	rdx, QWORD PTR 24[r12]
	mov	rsi, r13
	mov	rdi, rbp
	call	zap_normalize@PLT
	test	rax, rax
	jne	.L14
	mov	rdi, QWORD PTR 32[r12]
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR 40[r12], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	test	ecx, ecx
	jne	.L3
	test	ebx, ebx
	jne	.L14
	mov	QWORD PTR 32[r12], r13
	mov	QWORD PTR 40[r12], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	xor	r12d, r12d
	call	zap_name_free@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	.cfi_endproc
.LFE0:
	.size	zap_name_alloc, .-zap_name_alloc
	.comm	U8_TEXTPREP_TOUPPER,4,4
	.comm	MT_MATCH_CASE,4,4
	.comm	KM_SLEEP,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_zap_micro.c_zap_name_alloc.c"
	.text
	.align	2
	.global	zap_name_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	zap_name_alloc, %function
zap_name_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r0, #40
	ldr	r1, [r3]
	mov	r7, r2
	bl	kmem_alloc
	mov	r3, #1
	mov	r4, r0
	mov	r0, r6
	stm	r4, {r3, r6}
	str	r5, [r4, #36]
	bl	strlen
	ldr	r3, .L16+4
	add	r0, r0, #1
	ldr	r2, [r3]
	ldr	r3, [r5]
	tst	r7, r2
	str	r7, [r4, #8]
	str	r0, [r4, #32]
	str	r3, [r4, #12]
	beq	.L2
	ldr	r2, .L16+8
	cmp	r3, #0
	ldr	r2, [r2]
	bic	r2, r3, r2
	str	r2, [r4, #12]
	beq	.L14
.L3:
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r4, #16]
	bl	zap_normalize
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r4, #16]
	str	r0, [r4, #20]
	bl	strlen
	add	r0, r0, #1
	str	r0, [r4, #24]
.L8:
	mov	r0, r4
	bl	zap_hash
	ldr	r2, [r5]
	ldr	r3, [r4, #12]
	str	r0, [r4, #28]
	cmp	r2, r3
	beq	.L1
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [r4, #16]
	bl	zap_normalize
	cmp	r0, #0
	bne	.L14
	ldr	r0, [r4, #20]
	bl	strlen
	add	r0, r0, #1
	str	r0, [r4, #24]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r3, #0
	bne	.L3
	cmp	r7, #0
	streq	r6, [r4, #20]
	streq	r0, [r4, #24]
	beq	.L8
.L14:
	mov	r0, r4
	mov	r4, #0
	bl	zap_name_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	KM_SLEEP
	.word	MT_MATCH_CASE
	.word	U8_TEXTPREP_TOUPPER
	.size	zap_name_alloc, .-zap_name_alloc
	.comm	U8_TEXTPREP_TOUPPER,4,4
	.comm	MT_MATCH_CASE,4,4
	.comm	KM_SLEEP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
