	.file	"extr_g_bde_work.c_g_bde_start1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	g_bde_start1
	.type	g_bde_start1, @function
g_bde_start1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 40[rdi]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	mov	QWORD PTR 32[rdi], r13
	mov	rdi, r13
	call	mtx_lock@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 24[rax], r12
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	add	rax, rbx
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 16[r12]
	add	rax, rbx
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR [r12]
	sub	rax, rbx
	mov	QWORD PTR 0[rbp], rax
	call	g_bde_map_sector@PLT
	mov	rdi, rbp
	add	rbx, QWORD PTR 0[rbp]
	call	g_bde_start2@PLT
	cmp	QWORD PTR 24[r12], 0
	jne	.L3
.L2:
	cmp	QWORD PTR [r12], rbx
	jle	.L4
	mov	rdi, r13
	call	g_bde_new_work@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L12
.L3:
	mov	rsi, QWORD PTR [r12]
	mov	edx, DWORD PTR ENOMEM[rip]
	mov	rdi, r12
	sub	rsi, rbx
	call	g_bde_contribute@PLT
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	mtx_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	g_bde_start1, .-g_bde_start1
	.comm	ENOMEM,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_g_bde_work.c_g_bde_start1.c"
	.text
	.align	2
	.global	g_bde_start1
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_bde_start1, %function
g_bde_start1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #20]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r5, r0
	ldr	r7, [r3]
	mov	r6, #0
	str	r7, [r0, #16]
	mov	r0, r7
	bl	mtx_lock
	b	.L2
.L13:
	ldr	r3, [r5]
	ldmib	r5, {r1, r2}
	sub	r3, r3, r6
	add	r1, r1, r6
	add	r2, r2, r6
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	str	r5, [r4, #12]
	bl	g_bde_map_sector
	ldr	r3, [r4]
	mov	r0, r4
	add	r6, r6, r3
	bl	g_bde_start2
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [r5]
	cmp	r3, r6
	ble	.L4
	mov	r0, r7
	bl	g_bde_new_work
	subs	r4, r0, #0
	bne	.L13
.L3:
	ldr	r3, .L14
	ldr	r1, [r5]
	mov	r0, r5
	ldr	r2, [r3]
	sub	r1, r1, r6
	bl	g_bde_contribute
.L4:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	mtx_unlock
.L15:
	.align	2
.L14:
	.word	ENOMEM
	.size	g_bde_start1, .-g_bde_start1
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
