	.file	"extr_md.c_mdwriteback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mdwriteback
	.type	mdwriteback, @function
mdwriteback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], esi
	test	ecx, ecx
	jg	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ebx, ecx
	xor	ebp, ebp
	sub	ebx, edi
	cmp	ebx, r15d
	lea	eax, [rbx+r12]
	setle	bpl
	sub	r15d, ebx
	xor	edi, edi
	test	ebx, ebx
	setg	dil
	mov	DWORD PTR 8[rsp], eax
	call	Assert@PLT
	mov	edi, ebp
	call	Assert@PLT
	mov	eax, r12d
	mov	rsi, QWORD PTR BLCKSZ[rip]
	mov	edi, DWORD PTR [r14]
	cdq
	mov	ecx, DWORD PTR WAIT_EVENT_DATA_FILE_FLUSH[rip]
	idiv	DWORD PTR RELSEG_SIZE[rip]
	imul	ebx, esi
	imul	esi, edx
	mov	edx, ebx
	call	FileWriteback@PLT
	test	r15d, r15d
	jle	.L1
	mov	r12d, DWORD PTR 8[rsp]
.L2:
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, 1
	mov	edx, r12d
	mov	edi, r13d
	mov	r8d, DWORD PTR EXTENSION_RETURN_NULL[rip]
	call	_mdfd_getseg@PLT
	mov	r14, rax
	test	rax, rax
	je	.L1
	mov	ecx, DWORD PTR RELSEG_SIZE[rip]
	mov	eax, r12d
	cdq
	idiv	ecx
	mov	esi, eax
	lea	eax, -1[r12+r15]
	mov	edi, edx
	cdq
	idiv	ecx
	cmp	esi, eax
	jne	.L13
	mov	edi, 1
	call	Assert@PLT
	mov	edi, 1
	call	Assert@PLT
	mov	eax, r12d
	mov	edi, DWORD PTR [r14]
	mov	rsi, QWORD PTR BLCKSZ[rip]
	cdq
	mov	ecx, DWORD PTR WAIT_EVENT_DATA_FILE_FLUSH[rip]
	idiv	DWORD PTR RELSEG_SIZE[rip]
	imul	r15d, esi
	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
	imul	esi, edx
	mov	edx, r15d
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	FileWriteback@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.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
	ret
	.cfi_endproc
.LFE0:
	.size	mdwriteback, .-mdwriteback
	.comm	WAIT_EVENT_DATA_FILE_FLUSH,4,4
	.comm	RELSEG_SIZE,4,4
	.comm	EXTENSION_RETURN_NULL,4,4
	.comm	BLCKSZ,8,8
	.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_md.c_mdwriteback.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.global	mdwriteback
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdwriteback, %function
mdwriteback:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r3, #0
	sub	sp, sp, #28
	str	r0, [sp, #20]
	ble	.L1
	mov	r10, r1
	mov	r4, r2
	ldr	fp, .L13
	ldr	r9, .L13+4
	b	.L2
.L12:
	cmp	r5, r6
	movgt	r8, #0
	movle	r8, #1
	cmp	r5, #0
	movle	r0, #0
	movgt	r0, #1
	bl	Assert
	mov	r0, r8
	bl	Assert
	ldr	r3, .L13+8
	mov	r0, r4
	ldr	r8, [r3]
	ldr	r3, .L13+12
	mul	r2, r5, r8
	ldr	r3, [r3]
	ldr	r1, [r9]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	bl	__aeabi_idivmod
	sub	r6, r6, r5
	mul	r1, r8, r1
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	ldr	r0, [r7]
	bl	FileWriteback
	cmp	r6, #0
	add	r4, r5, r4
	ble	.L1
.L2:
	ldr	r2, [fp]
	mov	r3, #1
	str	r2, [sp]
	mov	r1, r10
	mov	r2, r4
	ldr	r0, [sp, #20]
	bl	_mdfd_getseg
	subs	r7, r0, #0
	beq	.L1
	ldr	r3, [r9]
	mov	r0, r4
	mov	r1, r3
	str	r3, [sp, #12]
	bl	__aeabi_idivmod
	mov	r5, r1
	ldr	r3, [sp, #12]
	mov	r8, r0
	add	r0, r4, r6
	mov	r1, r3
	sub	r0, r0, #1
	sub	r5, r3, r5
	bl	__aeabi_idiv
	cmp	r8, r0
	bne	.L12
	mov	r0, #1
	bl	Assert
	mov	r0, #1
	bl	Assert
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r5, [r2]
	mov	r0, r4
	ldr	r1, [r9]
	ldr	r4, [r3]
	mul	r6, r5, r6
	bl	__aeabi_idivmod
	mov	r3, r4
	mov	r2, r6
	mul	r1, r5, r1
	ldr	r0, [r7]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	FileWriteback
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	EXTENSION_RETURN_NULL
	.word	RELSEG_SIZE
	.word	BLCKSZ
	.word	WAIT_EVENT_DATA_FILE_FLUSH
	.size	mdwriteback, .-mdwriteback
	.comm	WAIT_EVENT_DATA_FILE_FLUSH,4,4
	.comm	RELSEG_SIZE,4,4
	.comm	EXTENSION_RETURN_NULL,4,4
	.comm	BLCKSZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
