	.file	"extr_zap_micro.c_zap_add_impl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zap_add_impl, @function
zap_add_impl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 4[rsp], ecx
	mov	r15, QWORD PTR 80[rsp]
	mov	QWORD PTR 8[rsp], r8
	call	zap_name_alloc@PLT
	test	rax, rax
	je	.L24
	mov	r13, rax
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L7
	cmp	r12d, 8
	jne	.L9
	cmp	DWORD PTR 4[rsp], 1
	jne	.L9
	mov	rdi, r14
	call	strlen@PLT
	cmp	rax, QWORD PTR MZAP_NAME_LEN[rip]
	jl	.L25
.L9:
	xor	ecx, ecx
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, r13
	call	mzap_upgrade@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L7
.L8:
	mov	rbp, QWORD PTR 0[r13]
	mov	edi, 1
	call	ASSERT@PLT
	mov	rdi, r13
	call	zap_name_free@PLT
	test	rbp, rbp
	je	.L1
.L14:
	mov	rsi, r15
	mov	rdi, rbp
	call	zap_unlockdir@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rsp]
	mov	r9, rbx
	mov	r8, r15
	mov	esi, r12d
	mov	rdi, r13
	call	fzap_add@PLT
	mov	r14d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR 8[r13]
	mov	rdi, r13
	call	mze_canfit_fzap_leaf@PLT
	test	eax, eax
	je	.L9
	mov	rdi, r13
	call	mze_find@PLT
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR EEXIST[rip]
	call	SET_ERROR@PLT
	mov	r14d, eax
.L12:
	xor	edi, edi
	cmp	QWORD PTR 0[r13], rbp
	sete	dil
	call	ASSERT@PLT
	mov	rdi, r13
	call	zap_name_free@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	mov	rsi, r15
	call	zap_unlockdir@PLT
	mov	edi, DWORD PTR ENOTSUP[rip]
	add	rsp, 24
	.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
	jmp	SET_ERROR@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r13
	xor	r14d, r14d
	mov	esi, DWORD PTR [rax]
	call	mzap_addent@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	zap_add_impl, .-zap_add_impl
	.comm	MZAP_NAME_LEN,8,8
	.comm	ENOTSUP,4,4
	.comm	EEXIST,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_add_impl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zap_add_impl, %function
zap_add_impl:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	sub	sp, sp, #12
	mov	r2, #0
	mov	r8, r3
	mov	r5, r0
	mov	r6, r1
	ldr	fp, [sp, #48]
	ldr	r10, [sp, #52]
	ldr	r9, [sp, #56]
	bl	zap_name_alloc
	subs	r4, r0, #0
	beq	.L23
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L24
	cmp	r8, #1
	cmpeq	r7, #8
	bne	.L8
	mov	r0, r6
	bl	strlen
	ldr	r3, .L27
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L25
.L8:
	mov	r3, #0
	mov	r2, r10
	mov	r1, r9
	mov	r0, r4
	bl	mzap_upgrade
	subs	r6, r0, #0
	beq	.L26
.L7:
	ldr	r5, [r4]
.L4:
	mov	r0, #1
	bl	ASSERT
	mov	r0, r4
	bl	zap_name_free
	cmp	r5, #0
	beq	.L1
.L13:
	mov	r1, r9
	mov	r0, r5
	bl	zap_unlockdir
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r3, fp
	mov	r2, r8
	mov	r1, r7
	stm	sp, {r9, r10}
	bl	fzap_add
	ldr	r5, [r4]
	mov	r6, r0
	b	.L4
.L26:
	mov	r3, fp
	mov	r2, r8
	mov	r1, r7
	mov	r0, r4
	stm	sp, {r9, r10}
	bl	fzap_add
	mov	r6, r0
	b	.L7
.L25:
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	mze_canfit_fzap_leaf
	cmp	r0, #0
	beq	.L8
	mov	r0, r4
	bl	mze_find
	subs	r6, r0, #0
	beq	.L10
	ldr	r3, .L27+4
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r6, r0
.L11:
	ldr	r0, [r4]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r0, r4
	bl	zap_name_free
	b	.L13
.L23:
	mov	r1, r9
	mov	r0, r5
	bl	zap_unlockdir
	ldr	r3, .L27+8
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	SET_ERROR
.L10:
	mov	r0, r4
	ldr	r1, [fp]
	bl	mzap_addent
	b	.L11
.L28:
	.align	2
.L27:
	.word	MZAP_NAME_LEN
	.word	EEXIST
	.word	ENOTSUP
	.size	zap_add_impl, .-zap_add_impl
	.comm	MZAP_NAME_LEN,4,4
	.comm	ENOTSUP,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
