	.file	"extr_lsmtest_tdb3.c_testEnvWrite.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	testEnvWrite, @function
testEnvWrite:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 32[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	tdb_lsm_env@PLT
	mov	r14, QWORD PTR 16[rbx]
	mov	r12d, DWORD PTR LSM_IOERR[rip]
	mov	QWORD PTR 8[rsp], rax
	cmp	QWORD PTR 32[r14], 0
	jne	.L1
	cmp	QWORD PTR 24[r14], 0
	je	.L4
	mov	esi, DWORD PTR [r14]
	mov	eax, ebp
	lea	r11d, -1[rbp+r13]
	mov	r10, QWORD PTR [rbx]
	cdq
	idiv	esi
	sal	r10, 4
	add	r10, QWORD PTR 16[r14]
	mov	ecx, eax
	mov	r12d, eax
	mov	eax, r11d
	cdq
	idiv	esi
	mov	r11d, eax
	cmp	DWORD PTR [r10], eax
	jle	.L13
.L5:
	cmp	ecx, r11d
	jg	.L4
	movsx	r15, ecx
	mov	rax, QWORD PTR 8[r10]
	add	r11d, 1
	sal	r15, 3
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	r12d, 1
	add	r15, 8
	cmp	r11d, r12d
	je	.L4
.L7:
	cmp	QWORD PTR [rax+r15], 0
	jne	.L6
	mov	edi, DWORD PTR [r14]
	mov	QWORD PTR 24[rsp], r10
	mov	DWORD PTR 40[rsp], r11d
	call	testMalloc@PLT
	mov	ecx, DWORD PTR [r14]
	mov	edi, DWORD PTR 8[rbx]
	mov	rdx, rax
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	esi, ecx
	imul	esi, r12d
	add	r12d, 1
	call	[QWORD PTR 8[rax]]
	mov	r10, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	r11d, DWORD PTR 40[rsp]
	mov	rax, QWORD PTR 8[r10]
	mov	QWORD PTR [rax+r15], rdx
	add	r15, 8
	cmp	r11d, r12d
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 8[r14], 0
	jne	.L14
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, r13d
	mov	esi, ebp
	mov	rdx, QWORD PTR 32[rsp]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, 56[rsp]
	call	gettimeofday@PLT
	xor	edi, edi
	test	r13d, r13d
	setg	dil
	call	assert@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, r13d
	mov	edi, DWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 32[rsp]
	mov	esi, ebp
	call	[QWORD PTR [rax]]
	lea	rdi, 64[rsp]
	xor	esi, esi
	mov	r12d, eax
	call	gettimeofday@PLT
	mov	r8d, DWORD PTR 64[rsp]
	mov	edi, DWORD PTR 4[r14]
	mov	edx, ebp
	sub	r8d, DWORD PTR 56[rsp]
	mov	rsi, QWORD PTR [rbx]
	mov	ecx, r13d
	imul	r8d, r8d, 1000000
	add	r8d, DWORD PTR 68[rsp]
	sub	r8d, DWORD PTR 60[rsp]
	call	[QWORD PTR 8[r14]]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	r15d, 127[rax]
	add	eax, 64
	mov	DWORD PTR 44[rsp], ecx
	cmovns	r15d, eax
	mov	DWORD PTR 40[rsp], r11d
	mov	QWORD PTR 24[rsp], r10
	mov	eax, r15d
	and	r15d, -64
	sar	eax, 6
	cmp	r11d, r15d
	setl	dil
	mov	DWORD PTR 16[rsp], eax
	movzx	edi, dil
	call	assert@PLT
	mov	r10, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[r10]
	sal	esi, 9
	mov	QWORD PTR 16[rsp], r10
	call	testRealloc@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	esi, r15d
	movsx	rdx, DWORD PTR [r10]
	mov	QWORD PTR 8[r10], rax
	sub	esi, edx
	lea	rdi, [rax+rdx*8]
	lea	r8d, 0[0+rsi*8]
	xor	esi, esi
	mov	edx, r8d
	call	memset@PLT
	mov	r10, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 44[rsp]
	mov	r11d, DWORD PTR 40[rsp]
	mov	DWORD PTR [r10], r15d
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	testEnvWrite, .-testEnvWrite
	.comm	LSM_IOERR,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_lsmtest_tdb3.c_testEnvWrite.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testEnvWrite, %function
testEnvWrite:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r10, r3
	ldr	r3, .L21
	sub	sp, sp, #60
	mov	fp, r2
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	tdb_lsm_env
	ldr	r5, [r6, #8]
	ldr	r2, [r5, #20]
	cmp	r2, #0
	bne	.L16
	ldr	r3, [r5, #16]
	mov	r9, r0
	cmp	r3, #0
	str	r2, [sp, #8]
	beq	.L4
	ldr	r7, [r5]
	mov	r0, r8
	mov	r1, r7
	bl	__aeabi_idiv
	mov	r4, r0
	add	r0, r8, r10
	mov	r1, r7
	sub	r0, r0, #1
	bl	__aeabi_idiv
	ldr	r2, [r6]
	ldr	r3, [r5, #12]
	str	r2, [sp, #16]
	ldr	r1, [r3, r2, lsl #3]
	add	r2, r3, r2, lsl #3
	cmp	r1, r0
	str	r2, [sp, #12]
	mov	r7, r0
	ldr	r2, [sp, #8]
	ble	.L17
.L5:
	cmp	r4, r7
	bgt	.L4
	ldr	r3, [sp, #12]
	str	r8, [sp, #8]
	ldr	r1, [r3, #4]
	mov	r8, r3
	add	r7, r7, #1
	str	r10, [sp, #12]
	b	.L7
.L6:
	add	r4, r4, #1
	cmp	r4, r7
	beq	.L18
.L7:
	ldr	r3, [r1, r4, lsl #2]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [r5]
	bl	testMalloc
	mov	r10, r0
	ldr	r3, [r5]
	mov	r2, r0
	mul	r1, r4, r3
	ldr	r0, [r6, #4]
	ldr	ip, [r9, #4]
	blx	ip
	ldr	r1, [r8, #4]
	str	r10, [r1, r4, lsl #2]
	add	r4, r4, #1
	cmp	r4, r7
	bne	.L7
.L18:
	ldr	r8, [sp, #8]
	ldr	r10, [sp, #12]
.L4:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L19
	ldr	r4, [r9]
	mov	r3, r10
	mov	r2, fp
	mov	r1, r8
	ldr	r0, [r6, #4]
	blx	r4
	mov	r4, r0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r1, #0
	add	r0, sp, #36
	bl	gettimeofday
	cmp	r10, #0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r2, fp
	mov	r3, r10
	mov	r1, r8
	ldr	r4, [r9]
	ldr	r0, [r6, #4]
	blx	r4
	mov	r1, #0
	mov	r4, r0
	add	r0, sp, #44
	bl	gettimeofday
	ldr	r1, [sp, #36]
	ldr	r3, [sp, #44]
	ldr	r0, [sp, #40]
	sub	r3, r3, r1
	ldr	r2, [sp, #48]
	rsb	r1, r3, r3, lsl #5
	rsb	r1, r1, r1, lsl #6
	sub	r2, r2, r0
	add	r3, r3, r1, lsl #3
	add	r3, r2, r3, lsl #6
	ldr	r0, [r5, #4]
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r10
	ldr	r1, [r6]
	ldr	r5, [r5, #8]
	blx	r5
	b	.L1
.L16:
	ldr	r3, .L21+4
	ldr	r4, [r3]
	b	.L1
.L17:
	adds	r1, r0, #64
	addmi	r1, r0, #127
	str	r3, [sp, #28]
	bic	r3, r1, #63
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	asr	r1, r1, #6
	str	r2, [sp, #24]
	str	r3, [sp, #8]
	str	r1, [sp, #20]
	bl	assert
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #12]
	lsl	r1, r1, #8
	ldr	r0, [r0, #4]
	bl	testRealloc
	ldr	r3, [sp, #28]
	ldr	ip, [sp, #16]
	str	r3, [sp, #20]
	ldr	lr, [r3, ip, lsl #3]
	ldr	r3, [sp, #8]
	ldr	r1, [sp, #12]
	ldr	r2, [sp, #24]
	sub	ip, r3, lr
	str	r0, [r1, #4]
	mov	r1, r2
	add	r0, r0, lr, lsl #2
	lsl	r2, ip, #2
	bl	memset
	ldr	r1, [sp, #16]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #20]
	str	r2, [r3, r1, lsl #3]
	b	.L5
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	LSM_IOERR
	.size	testEnvWrite, .-testEnvWrite
	.comm	LSM_IOERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
