	.file	"extr_btrfs.c_btrfs_file_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"btrfs_file_read inr=%llu offset=%llu size=%llu\n"
	.align 8
.LC1:
	.string	"Current extent: (%llu %u %llu) \n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Error while reading extent\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"file_read size=%llu rd=%llu seek_pointer=%llu\n"
	.text
	.p2align 4
	.type	btrfs_file_read, @function
btrfs_file_read:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r15, QWORD PTR READ_ERROR[rip]
	mov	QWORD PTR 8[rsp], rdx
	lea	rbp, 28[rsp]
	mov	QWORD PTR [rsp], rdi
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	TRACE@PLT
	mov	eax, DWORD PTR BTRFS_EXTENT_DATA_KEY[rip]
	mov	rdi, rbp
	mov	QWORD PTR 32[rsp], r14
	mov	QWORD PTR 48[rsp], rbx
	lea	r14, 32[rsp]
	mov	DWORD PTR 40[rsp], eax
	call	init_path@PLT
	mov	r9, QWORD PTR [rsp]
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r9
	call	BtrFsSearchTree@PLT
	test	eax, eax
	jne	.L2
	mov	rdi, rbp
	call	path_current_disk_key@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	btrfs_comp_keys@PLT
	test	rax, rax
	js	.L20
.L2:
	mov	rdi, rbp
	call	path_current_disk_key@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	btrfs_comp_keys_type@PLT
	test	rax, rax
	jne	.L3
.L5:
	mov	rbx, QWORD PTR 8[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	call	btrfs_read_extent_reg@PLT
	mov	rdx, rax
	cmp	QWORD PTR READ_ERROR[rip], rdx
	je	.L21
.L9:
	add	rbx, rdx
	sub	r12, rdx
	lea	rdi, .LC3[rip]
	add	r13, rdx
	mov	rcx, rbx
	mov	rsi, r12
	call	TRACE@PLT
	test	r12, r12
	je	.L10
	mov	rsi, rbp
	mov	rdi, r14
	call	next_slot@PLT
	test	eax, eax
	jne	.L22
.L4:
	mov	rdi, rbp
	call	path_current_disk_key@PLT
	mov	rdi, rbp
	mov	rcx, QWORD PTR 16[rax]
	mov	QWORD PTR [rsp], rcx
	call	path_current_disk_key@PLT
	mov	rdi, rbp
	mov	r15, QWORD PTR 8[rax]
	call	path_current_disk_key@PLT
	mov	rcx, QWORD PTR [rsp]
	lea	rdi, .LC1[rip]
	mov	rsi, QWORD PTR [rax]
	mov	rdx, r15
	call	TRACE@PLT
	mov	rdi, rbp
	call	path_current_data@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	path_current_disk_key@PLT
	mov	rdx, rbx
	cmp	QWORD PTR 16[rax], rbx
	jle	.L23
.L6:
	mov	rax, QWORD PTR BTRFS_FILE_EXTENT_INLINE[rip]
	mov	r8, r13
	mov	rcx, r12
	mov	rsi, r15
	mov	rdi, rbp
	cmp	QWORD PTR [r15], rax
	jne	.L7
	call	btrfs_read_extent_inline@PLT
	mov	rdx, rax
	cmp	QWORD PTR READ_ERROR[rip], rdx
	jne	.L9
.L21:
	lea	rdi, .LC2[rip]
	call	ERR@PLT
	mov	r15, QWORD PTR READ_ERROR[rip]
.L3:
	mov	rdi, rbp
	call	free_path@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L23:
	.cfi_restore_state
	mov	rdi, rbp
	call	path_current_disk_key@PLT
	mov	rdx, rbx
	sub	rdx, QWORD PTR 16[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rbx, QWORD PTR 8[rsp]
	mov	r15, rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, rbp
	mov	rdi, r14
	call	prev_slot@PLT
	test	rax, rax
	je	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r15, QWORD PTR READ_ERROR[rip]
	jmp	.L3
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btrfs_file_read, .-btrfs_file_read
	.comm	READ_ERROR,8,8
	.comm	BTRFS_FILE_EXTENT_INLINE,8,8
	.comm	BTRFS_EXTENT_DATA_KEY,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_btrfs.c_btrfs_file_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"btrfs_file_read inr=%llu offset=%llu size=%llu\012\000"
	.align	2
.LC1:
	.ascii	"Current extent: (%llu %u %llu) \012\000"
	.align	2
.LC2:
	.ascii	"Error while reading extent\012\000"
	.align	2
.LC3:
	.ascii	"file_read size=%llu rd=%llu seek_pointer=%llu\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_file_read, %function
btrfs_file_read:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	mov	r10, r2
	mov	r8, r0
	sub	sp, sp, #44
	ldr	ip, .L25
	ldr	r7, .L25+4
	str	r2, [sp, #12]
	ldr	r0, .L25+8
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	mov	r5, r3
	ldr	r4, [r7]
	ldr	r6, [sp, #80]
	bl	TRACE
	ldr	r3, .L25+12
	add	r0, sp, #20
	ldr	r3, [r3]
	str	r9, [sp, #32]
	str	r3, [sp, #28]
	str	r10, [sp, #24]
	bl	init_path
	mov	r0, r8
	add	r2, sp, #20
	add	r1, sp, #24
	bl	BtrFsSearchTree
	cmp	r0, #0
	bne	.L2
	add	r0, sp, #20
	bl	path_current_disk_key
	mov	r1, r0
	add	r0, sp, #24
	bl	btrfs_comp_keys
	cmp	r0, #0
	blt	.L20
.L2:
	add	r0, sp, #20
	bl	path_current_disk_key
	mov	r1, r0
	add	r0, sp, #24
	bl	btrfs_comp_keys_type
	cmp	r0, #0
	bne	.L3
.L5:
	ldr	r4, [sp, #12]
	ldr	r9, .L25+16
	ldr	r8, .L25+20
	ldr	r10, .L25+24
	b	.L4
.L7:
	bl	btrfs_read_extent_reg
	mov	r2, r0
	ldr	r3, [r7]
	cmp	r3, r2
	beq	.L21
.L9:
	sub	r5, r5, r2
	add	r4, r4, r2
	mov	r3, r4
	mov	r1, r5
	mov	r0, r10
	add	r6, r6, r2
	bl	TRACE
	cmp	r5, #0
	beq	.L10
	add	r1, sp, #20
	add	r0, sp, #24
	bl	next_slot
	cmp	r0, #0
	bne	.L22
.L4:
	add	r0, sp, #20
	bl	path_current_disk_key
	mov	r3, r0
	add	r0, sp, #20
	ldr	fp, [r3]
	bl	path_current_disk_key
	mov	r3, r0
	ldr	r2, [r3, #4]
	add	r0, sp, #20
	str	r2, [sp, #8]
	bl	path_current_disk_key
	mov	r1, fp
	ldr	r3, [r0, #8]
	ldr	r2, [sp, #8]
	mov	r0, r8
	bl	TRACE
	add	r0, sp, #20
	bl	path_current_data
	mov	fp, r0
	add	r0, sp, #20
	bl	path_current_disk_key
	ldr	r3, [r0, #8]
	cmp	r3, r4
	movgt	r2, r4
	ble	.L23
.L6:
	ldr	r0, [fp]
	ldr	r3, [r9]
	mov	r1, fp
	cmp	r0, r3
	str	r6, [sp]
	mov	r3, r5
	add	r0, sp, #20
	bne	.L7
	bl	btrfs_read_extent_inline
	mov	r2, r0
	ldr	r3, [r7]
	cmp	r3, r2
	bne	.L9
.L21:
	ldr	r0, .L25+28
	bl	ERR
	ldr	r4, [r7]
.L3:
	add	r0, sp, #20
	bl	free_path
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	add	r0, sp, #20
	bl	path_current_disk_key
	ldr	r2, [r0, #8]
	sub	r2, r4, r2
	b	.L6
.L10:
	ldr	r3, [sp, #12]
	sub	r4, r4, r3
	b	.L3
.L20:
	add	r1, sp, #20
	add	r0, sp, #24
	bl	prev_slot
	cmp	r0, #0
	beq	.L5
	b	.L3
.L22:
	ldr	r4, [r7]
	b	.L3
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC4
	.word	READ_ERROR
	.word	.LC0
	.word	BTRFS_EXTENT_DATA_KEY
	.word	BTRFS_FILE_EXTENT_INLINE
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.size	btrfs_file_read, .-btrfs_file_read
	.comm	READ_ERROR,4,4
	.comm	BTRFS_FILE_EXTENT_INLINE,4,4
	.comm	BTRFS_EXTENT_DATA_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
