	.file	"extr_avtab.c_avtab_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	avtab_write
	.type	avtab_write, @function
avtab_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 16[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	cpu_to_le32@PLT
	lea	rdi, 4[rsp]
	mov	rcx, rbx
	mov	edx, 1
	mov	esi, 4
	mov	DWORD PTR 4[rsp], eax
	call	put_entry@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [r12]
	xor	r13d, r13d
	test	eax, eax
	je	.L6
.L3:
	mov	rdx, QWORD PTR 8[r12]
	mov	eax, r13d
	mov	r14, QWORD PTR [rdx+rax*8]
	test	r14, r14
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r14, QWORD PTR [r14]
	test	r14, r14
	je	.L4
.L5:
	mov	rdx, rbx
	mov	rsi, r14
	mov	rdi, rbp
	call	avtab_write_item@PLT
	test	eax, eax
	je	.L18
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	r13d, 1
	cmp	DWORD PTR [r12], r13d
	ja	.L3
.L6:
	xor	eax, eax
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	avtab_write, .-avtab_write
	.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_avtab.c_avtab_write.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	avtab_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	avtab_write, %function
avtab_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #8
	mov	r6, r0
	ldr	r0, [r1, #8]
	mov	r5, r2
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	cpu_to_le32
	mov	ip, r0
	mov	r3, r5
	mov	r2, #1
	mov	r1, #4
	mov	r0, sp
	str	ip, [sp]
	bl	put_entry
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r8]
	cmp	r3, #0
	movne	r7, r0
	beq	.L6
.L3:
	ldr	r2, [r8, #4]
	ldr	r4, [r2, r7, lsl #2]
	cmp	r4, #0
	bne	.L5
	b	.L4
.L18:
	ldr	r4, [r4]
	cmp	r4, #0
	beq	.L17
.L5:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	avtab_write_item
	cmp	r0, #0
	beq	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, [r8]
.L4:
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L3
.L6:
	mov	r0, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	avtab_write, .-avtab_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
