	.file	"extr_extents.c_ext4_find_delayed_extent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_find_delayed_extent, @function
ext4_find_delayed_extent:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rdi
	mov	QWORD PTR 24[rsp], rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR EXT_MAX_BLOCKS[rip]
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR 8[rdi]
	movzx	ebx, BYTE PTR [rax]
	movsx	rax, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rax
	shr	rax, 3
	mov	QWORD PTR 48[rsp], rax
	mov	DWORD PTR 40[rsp], eax
	call	kmalloc@PLT
	test	rax, rax
	je	.L78
	mov	rbp, rax
	movzx	eax, bl
	lea	r13, 68[rsp]
	mov	ecx, ebx
	mov	DWORD PTR 44[rsp], eax
	mov	rax, QWORD PTR 24[rsp]
	xor	ebx, ebx
	mov	DWORD PTR 4[rsp], 0
	movzx	r12d, BYTE PTR [rax]
	lea	rax, 8[rbp]
	mov	QWORD PTR 32[rsp], rax
	sal	r12d, cl
	movzx	ecx, BYTE PTR PAGE_SHIFT[rip]
	sar	r12d, cl
	mov	DWORD PTR 68[rsp], r12d
.L4:
	mov	rax, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 40[rsp]
	mov	r8, rbp
	mov	rsi, r13
	mov	edx, DWORD PTR PAGECACHE_TAG_DIRTY[rip]
	mov	edi, DWORD PTR [rax]
	call	find_get_pages_tag@PLT
	mov	r15d, eax
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR FIEMAP_EXTENT_DELALLOC[rip], eax
	je	.L79
	test	r15d, r15d
	jle	.L15
	mov	rdi, QWORD PTR 0[rbp]
	cmp	DWORD PTR [rdi], r12d
	je	.L80
.L15:
	sub	ebx, DWORD PTR [rsp]
	mov	esi, DWORD PTR EXT_INIT_MAX_LEN[rip]
	mov	edi, ebx
	call	min@PLT
	mov	r12d, eax
.L28:
	test	r15d, r15d
	jle	.L31
.L30:
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, QWORD PTR 0[rbp+rbx*8]
	add	rbx, 1
	call	page_cache_release@PLT
	cmp	r15d, ebx
	jg	.L35
.L31:
	mov	rdi, rbp
	call	kfree@PLT
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 8[rax], 0
	jne	.L1
	mov	ecx, DWORD PTR [rsp]
	mov	DWORD PTR 4[rax], r12d
	mov	DWORD PTR [rax], ecx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L79:
	test	r15d, r15d
	je	.L8
	mov	rdi, QWORD PTR 0[rbp]
	movzx	ecx, BYTE PTR PAGE_SHIFT[rip]
	movzx	ebx, BYTE PTR [rdi]
	sal	ebx, cl
	movzx	ecx, BYTE PTR 44[rsp]
	sar	ebx, cl
	call	page_has_buffers@PLT
	test	eax, eax
	je	.L11
	mov	rdi, QWORD PTR 0[rbp]
	call	page_buffers@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	mov	QWORD PTR 16[rsp], r13
	mov	r13d, ebx
	mov	rbx, QWORD PTR 24[rsp]
	mov	r14, rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r14
	call	buffer_mapped@PLT
	test	rax, rax
	je	.L12
	mov	eax, DWORD PTR [rbx]
	cmp	eax, r13d
	jle	.L81
.L12:
	mov	r14, QWORD PTR [r14]
	add	r13d, 1
	cmp	r12, r14
	jne	.L14
.L11:
	test	r15d, r15d
	jle	.L8
	lea	eax, -1[r15]
	mov	rbx, rbp
	lea	r12, 8[rbp+rax*8]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	page_cache_release@PLT
	cmp	rbx, r12
	jne	.L7
.L8:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, DWORD PTR EXT_MAX_BLOCKS[rip]
	mov	DWORD PTR [rsp], eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L82
	mov	eax, DWORD PTR [rsp]
	add	rsp, 88
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L80:
	.cfi_restore_state
	call	page_buffers@PLT
	mov	r14, rax
	mov	r12, rax
.L13:
	test	r14, r14
	je	.L16
	mov	rdi, r14
	call	buffer_delay@PLT
	test	rax, rax
	jne	.L83
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR FIEMAP_EXTENT_DELALLOC[rip], eax
	je	.L11
	cmp	r15d, DWORD PTR 48[rsp]
	sete	BYTE PTR 16[rsp]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L83:
	mov	eax, DWORD PTR FIEMAP_EXTENT_DELALLOC[rip]
	mov	edx, DWORD PTR 4[rsp]
	test	edx, eax
	jne	.L21
	or	edx, eax
	mov	rdi, r14
	mov	DWORD PTR [rsp], ebx
	mov	DWORD PTR 4[rsp], edx
	call	buffer_delay@PLT
	test	rax, rax
	je	.L76
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r14, QWORD PTR [r14]
	add	ebx, 1
	cmp	r12, r14
	je	.L84
.L21:
	mov	rdi, r14
	call	buffer_delay@PLT
	test	rax, rax
	jne	.L19
.L76:
	test	r14, r14
	setne	dl
	cmp	r15d, DWORD PTR 48[rsp]
	sete	al
	and	edx, eax
	mov	BYTE PTR 16[rsp], dl
.L20:
	mov	esi, DWORD PTR EXT_INIT_MAX_LEN[rip]
	mov	edi, ebx
	sub	edi, DWORD PTR [rsp]
	call	min@PLT
	cmp	BYTE PTR 16[rsp], 0
	mov	r12d, eax
	je	.L28
	cmp	DWORD PTR EXT_INIT_MAX_LEN[rip], eax
	jbe	.L28
	mov	rdi, r14
	call	buffer_delay@PLT
	test	rax, rax
	je	.L28
	test	r15d, r15d
	jle	.L34
	mov	rdx, QWORD PTR 32[rsp]
	lea	eax, -1[r15]
	mov	r14, rbp
	lea	r12, [rdx+rax*8]
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, QWORD PTR [r14]
	add	r14, 8
	call	page_cache_release@PLT
	cmp	r14, r12
	jne	.L33
.L34:
	mov	r12d, DWORD PTR 68[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L81:
	mov	rsi, QWORD PTR 24[rsp]
	mov	ebx, r13d
	mov	r13, QWORD PTR 16[rsp]
	add	eax, DWORD PTR 4[rsi]
	cmp	eax, ebx
	jge	.L13
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L84:
	lea	eax, -2[r15]
	add	rax, 2
	mov	QWORD PTR 56[rsp], rax
	mov	eax, 1
	cmp	r15d, 1
	jle	.L76
	mov	QWORD PTR 16[rsp], r13
	mov	r13, rax
.L26:
	mov	rdi, QWORD PTR 0[rbp+r13*8]
	mov	r14d, r13d
	call	page_has_buffers@PLT
	test	eax, eax
	je	.L23
	mov	rdi, QWORD PTR 0[rbp+r13*8]
	call	page_buffers@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 0[rbp+r13*8]
	add	r14d, DWORD PTR [rdx]
	cmp	DWORD PTR [rax], r14d
	jne	.L23
	mov	r14, r12
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r14, QWORD PTR [r14]
	add	ebx, 1
	cmp	r12, r14
	je	.L85
.L25:
	mov	rdi, r14
	call	buffer_delay@PLT
	test	rax, rax
	jne	.L24
	cmp	r15d, DWORD PTR 48[rsp]
	mov	r13, QWORD PTR 16[rsp]
	sete	dl
	test	r14, r14
	setne	al
	and	edx, eax
	mov	BYTE PTR 16[rsp], dl
	jmp	.L20
.L78:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR [rsp], eax
	jmp	.L1
.L85:
	add	r13, 1
	cmp	r13, QWORD PTR 56[rsp]
	jne	.L26
	cmp	r15d, DWORD PTR 48[rsp]
	mov	r13, QWORD PTR 16[rsp]
	sete	BYTE PTR 16[rsp]
	jmp	.L20
.L16:
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR FIEMAP_EXTENT_DELALLOC[rip], eax
	jne	.L15
	jmp	.L11
.L23:
	sub	ebx, DWORD PTR [rsp]
	mov	esi, DWORD PTR EXT_INIT_MAX_LEN[rip]
	mov	edi, ebx
	call	min@PLT
	mov	r12d, eax
	jmp	.L30
.L82:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ext4_find_delayed_extent, .-ext4_find_delayed_extent
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,1,1
	.comm	PAGECACHE_TAG_DIRTY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FIEMAP_EXTENT_DELALLOC,4,4
	.comm	EXT_MAX_BLOCKS,4,4
	.comm	EXT_INIT_MAX_LEN,4,4
	.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_extents.c_ext4_find_delayed_extent.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_find_delayed_extent, %function
ext4_find_delayed_extent:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L84
	sub	sp, sp, #52
	str	r0, [sp, #24]
	ldr	r0, [r3]
	ldr	r3, [r2, #4]
	ldr	r2, .L84+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	str	r3, [sp, #28]
	lsr	r3, r0, #2
	str	r3, [sp, #20]
	ldr	r3, .L84+8
	mov	r10, r1
	ldr	r1, .L84+12
	ldr	r3, [r3]
	ldr	r1, [r1]
	str	r3, [sp, #12]
	bl	kmalloc
	subs	r6, r0, #0
	beq	.L76
	mov	r5, #0
	ldr	r3, .L84+16
	ldrb	r9, [r10]	@ zero_extendqisi2
	ldr	r2, [sp, #28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r9, r9, r2
	asr	r9, r9, r3
	ldr	r8, .L84+20
	ldr	r7, .L84+24
	str	r5, [sp, #16]
	str	r9, [sp, #40]
.L4:
	ldr	r0, [sp, #24]
	ldr	r2, .L84+28
	str	r6, [sp]
	ldr	r3, [sp, #20]
	ldr	r2, [r2]
	ldr	r0, [r0]
	add	r1, sp, #40
	bl	find_get_pages_tag
	ldr	r3, [r8]
	ldr	r2, [sp, #16]
	mov	r4, r0
	tst	r2, r3
	beq	.L77
	cmp	r0, #0
	ble	.L15
	ldr	r0, [r6]
	ldr	r3, [r0]
	cmp	r3, r9
	beq	.L78
.L15:
	ldr	r3, .L84+24
	ldr	r2, [sp, #12]
	ldr	r1, [r3]
	sub	r0, r5, r2
	bl	min
	mov	r9, r0
.L28:
	cmp	r4, #0
	ble	.L31
.L30:
	mov	r5, #0
	sub	r7, r6, #4
.L35:
	ldr	r0, [r7, #4]!
	add	r5, r5, #1
	bl	page_cache_release
	cmp	r4, r5
	bgt	.L35
.L31:
	mov	r0, r6
	bl	kfree
	ldr	r3, [r10, #8]
	cmp	r3, #0
	ldreq	r3, [sp, #12]
	stmeq	r10, {r3, r9}
	b	.L1
.L77:
	cmp	r0, #0
	beq	.L8
	ldr	r0, [r6]
	ldr	r3, .L84+16
	ldrb	r5, [r0]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r5, r5, r3
	ldr	r3, [sp, #28]
	asr	r5, r5, r3
	bl	page_has_buffers
	cmp	r0, #0
	beq	.L11
	ldr	r0, [r6]
	bl	page_buffers
	subs	r9, r0, #0
	beq	.L11
	mov	fp, r9
.L14:
	mov	r0, fp
	bl	buffer_mapped
	cmp	r0, #0
	beq	.L12
	ldr	r2, [r10]
	cmp	r2, r5
	ble	.L79
.L12:
	ldr	fp, [fp]
	add	r5, r5, #1
	cmp	r9, fp
	bne	.L14
.L11:
	cmp	r4, #0
	subgt	r5, r6, #4
	addgt	r4, r5, r4, lsl #2
	ble	.L8
.L7:
	ldr	r0, [r5, #4]!
	bl	page_cache_release
	cmp	r5, r4
	bne	.L7
.L8:
	mov	r0, r6
	bl	kfree
	ldr	r3, .L84+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
.L1:
	ldr	r3, .L84+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L80
	ldr	r0, [sp, #12]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L78:
	bl	page_buffers
	mov	fp, r0
	mov	r9, r0
.L13:
	cmp	fp, #0
	beq	.L16
	mov	r0, fp
	bl	buffer_delay
	cmp	r0, #0
	ldr	r2, [r8]
	ldr	r3, [sp, #16]
	bne	.L81
	tst	r3, r2
	beq	.L11
	ldr	r3, [sp, #20]
	sub	r9, r4, r3
	clz	r9, r9
	lsr	r9, r9, #5
	b	.L20
.L81:
	tst	r2, r3
	orreq	r3, r3, r2
	streq	r5, [sp, #12]
	streq	r3, [sp, #16]
	b	.L21
.L19:
	ldr	fp, [fp]
	add	r5, r5, #1
	cmp	r9, fp
	beq	.L82
.L21:
	mov	r0, fp
	bl	buffer_delay
	cmp	r0, #0
	bne	.L19
	ldr	r3, [sp, #20]
	cmp	fp, #0
	sub	r3, r4, r3
	clz	r3, r3
	lsr	r3, r3, #5
	movne	r9, r3
	moveq	r9, #0
.L20:
	ldr	r3, [sp, #12]
	ldr	r1, [r7]
	sub	r0, r5, r3
	bl	min
	cmp	r9, #0
	mov	r9, r0
	beq	.L28
	ldr	r2, [r7]
	cmp	r2, r0
	bls	.L28
	mov	r0, fp
	bl	buffer_delay
	cmp	r0, #0
	beq	.L28
	cmp	r4, #0
	subgt	r9, r6, #4
	addgt	r4, r9, r4, lsl #2
	ble	.L34
.L33:
	ldr	r0, [r9, #4]!
	bl	page_cache_release
	cmp	r9, r4
	bne	.L33
.L34:
	ldr	r9, [sp, #40]
	b	.L4
.L79:
	ldr	r1, [r10, #4]
	add	r2, r2, r1
	cmp	r2, r5
	bge	.L13
	b	.L11
.L82:
	cmp	r4, #1
	ble	.L74
	mov	r3, #1
	str	r10, [sp, #36]
	mov	fp, r6
	mov	r10, r3
	str	r4, [sp, #32]
.L26:
	ldr	r0, [fp, #4]!
	bl	page_has_buffers
	cmp	r0, #0
	beq	.L23
	ldr	r0, [fp]
	bl	page_buffers
	subs	r9, r0, #0
	beq	.L23
	ldr	r3, [r6]
	ldr	r2, [fp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r3, r10, r3
	cmp	r2, r3
	bne	.L23
	mov	r4, r9
	b	.L25
.L24:
	ldr	r4, [r4]
	add	r5, r5, #1
	cmp	r9, r4
	beq	.L83
.L25:
	mov	r0, r4
	bl	buffer_delay
	cmp	r0, #0
	bne	.L24
	mov	fp, r4
	ldr	r10, [sp, #36]
	ldr	r4, [sp, #32]
.L74:
	ldr	r9, [sp, #20]
	cmp	fp, #0
	sub	r9, r4, r9
	clz	r9, r9
	lsr	r9, r9, #5
	moveq	r9, #0
	b	.L20
.L76:
	ldr	r3, .L84+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #12]
	b	.L1
.L83:
	ldr	r3, [sp, #32]
	add	r10, r10, #1
	cmp	r3, r10
	bne	.L26
	mov	fp, r4
	mov	r4, r3
	ldr	r3, [sp, #20]
	ldr	r10, [sp, #36]
	sub	r9, r4, r3
	clz	r9, r9
	lsr	r9, r9, #5
	b	.L20
.L16:
	ldr	r3, [r8]
	ldr	r2, [sp, #16]
	tst	r2, r3
	bne	.L15
	b	.L11
.L23:
	ldr	r3, .L84+24
	ldr	r2, [sp, #12]
	ldr	r1, [r3]
	sub	r0, r5, r2
	ldr	r4, [sp, #32]
	ldr	r10, [sp, #36]
	bl	min
	mov	r9, r0
	b	.L30
.L80:
	bl	__stack_chk_fail
.L85:
	.align	2
.L84:
	.word	PAGE_SIZE
	.word	.LC0
	.word	EXT_MAX_BLOCKS
	.word	GFP_KERNEL
	.word	PAGE_SHIFT
	.word	FIEMAP_EXTENT_DELALLOC
	.word	EXT_INIT_MAX_LEN
	.word	PAGECACHE_TAG_DIRTY
	.word	ENOMEM
	.size	ext4_find_delayed_extent, .-ext4_find_delayed_extent
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,1,1
	.comm	PAGECACHE_TAG_DIRTY,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FIEMAP_EXTENT_DELALLOC,4,4
	.comm	EXT_MAX_BLOCKS,4,4
	.comm	EXT_INIT_MAX_LEN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
