	.file	"extr_inode.c_btrfs_submit_bio_hook.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btrfs_submit_bio_hook, @function
btrfs_submit_bio_hook:
.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	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 16[rsp], rcx
	call	btrfs_sb@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	BTRFS_I@PLT
	mov	rdi, rbp
	mov	r15d, DWORD PTR BTRFS_WQ_ENDIO_DATA[rip]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR 24[rsp], rbx
	call	BTRFS_I@PLT
	lea	rdi, 4[rax]
	call	atomic_read@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	call	BTRFS_I@PLT
	mov	rdi, rbp
	mov	ebx, DWORD PTR [rax]
	and	ebx, DWORD PTR BTRFS_INODE_NODATASUM[rip]
	call	BTRFS_I@PLT
	mov	rdi, rax
	call	btrfs_is_free_space_inode@PLT
	mov	rdi, r12
	test	rax, rax
	cmovne	r15d, DWORD PTR BTRFS_WQ_ENDIO_FREE_SPACE[rip]
	call	bio_op@PLT
	cmp	rax, QWORD PTR REQ_OP_WRITE[rip]
	jne	.L18
	mov	eax, DWORD PTR 8[rsp]
	or	eax, ebx
	jne	.L9
	mov	rax, QWORD PTR 24[rsp]
	mov	rcx, QWORD PTR BTRFS_DATA_RELOC_TREE_OBJECTID[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L19
.L8:
	xor	ecx, ecx
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, r13
	call	btrfs_map_bio@PLT
	mov	r8, rax
.L6:
	test	r8, r8
	jne	.L4
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L9:
	.cfi_restore_state
	test	ebx, ebx
	jne	.L8
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbp
	call	btrfs_csum_one_bio@PLT
	mov	r8, rax
	test	rax, rax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [r12], r8
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], r8
	call	bio_endio@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, r15d
	mov	rsi, r12
	mov	rdi, r13
	call	btrfs_bio_wq_end_io@PLT
	mov	r8, rax
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 16[rsp]
	test	QWORD PTR EXTENT_BIO_COMPRESSED[rip], rax
	jne	.L20
	test	ebx, ebx
	jne	.L8
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbp
	call	btrfs_lookup_bio_sums@PLT
	mov	r8, rax
	test	rax, rax
	jne	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR btrfs_submit_bio_start[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r8d, r8d
	mov	edx, r14d
	mov	r9, rbp
	mov	rsi, r12
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 112
	mov	rcx, QWORD PTR 32[rsp]
	call	btrfs_wq_submit_bio@PLT
	mov	r8, rax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rcx, rax
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, rbp
	call	btrfs_submit_compressed_read@PLT
	mov	r8, rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	btrfs_submit_bio_hook, .-btrfs_submit_bio_hook
	.comm	btrfs_submit_bio_start,4,4
	.comm	REQ_OP_WRITE,8,8
	.comm	EXTENT_BIO_COMPRESSED,8,8
	.comm	BTRFS_WQ_ENDIO_FREE_SPACE,4,4
	.comm	BTRFS_WQ_ENDIO_DATA,4,4
	.comm	BTRFS_INODE_NODATASUM,4,4
	.comm	BTRFS_DATA_RELOC_TREE_OBJECTID,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_inode.c_btrfs_submit_bio_hook.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_submit_bio_hook, %function
btrfs_submit_bio_hook:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r0, [r0]
	mov	r5, r1
	mov	r9, r2
	mov	r10, r3
	bl	btrfs_sb
	mov	r8, r0
	mov	r0, r4
	bl	BTRFS_I
	mov	r2, r0
	ldr	r3, .L22
	ldr	r2, [r2, #8]
	mov	r0, r4
	str	r2, [sp, #20]
	ldr	fp, [r3]
	bl	BTRFS_I
	add	r0, r0, #4
	bl	atomic_read
	mov	r6, r0
	mov	r0, r4
	bl	BTRFS_I
	ldr	r3, .L22+4
	ldr	r7, [r0]
	ldr	r3, [r3]
	mov	r0, r4
	and	r7, r7, r3
	bl	BTRFS_I
	bl	btrfs_is_free_space_inode
	cmp	r0, #0
	ldrne	r3, .L22+8
	mov	r0, r5
	ldrne	fp, [r3]
	bl	bio_op
	ldr	r3, .L22+12
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L19
	orrs	r6, r6, r7
	bne	.L9
	ldr	r3, .L22+16
	ldr	r2, [sp, #20]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L20
.L8:
	mov	r2, r9
	mov	r0, r8
	mov	r3, #0
	mov	r1, r5
	bl	btrfs_map_bio
	mov	r6, r0
.L6:
	cmp	r6, #0
	bne	.L4
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	cmp	r7, #0
	bne	.L8
	mov	r0, r4
	mov	r3, r7
	mov	r2, r7
	mov	r1, r5
	bl	btrfs_csum_one_bio
	subs	r6, r0, #0
	beq	.L8
.L4:
	mov	r0, r5
	str	r6, [r5]
	bl	bio_endio
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r2, fp
	mov	r1, r5
	mov	r0, r8
	bl	btrfs_bio_wq_end_io
	subs	r6, r0, #0
	bne	.L4
	ldr	r3, .L22+20
	ldr	r3, [r3]
	tst	r10, r3
	bne	.L21
	cmp	r7, #0
	bne	.L8
	mov	r2, r6
	mov	r0, r4
	mov	r1, r5
	bl	btrfs_lookup_bio_sums
	subs	r6, r0, #0
	bne	.L4
	b	.L8
.L20:
	ldr	r3, .L22+24
	str	r4, [sp, #4]
	ldr	r1, [r3]
	mov	r2, r9
	str	r6, [sp]
	str	r1, [sp, #8]
	mov	r3, r10
	mov	r0, r8
	mov	r1, r5
	bl	btrfs_wq_submit_bio
	mov	r6, r0
	b	.L6
.L21:
	mov	r3, r10
	mov	r2, r9
	mov	r0, r4
	mov	r1, r5
	bl	btrfs_submit_compressed_read
	mov	r6, r0
	b	.L6
.L23:
	.align	2
.L22:
	.word	BTRFS_WQ_ENDIO_DATA
	.word	BTRFS_INODE_NODATASUM
	.word	BTRFS_WQ_ENDIO_FREE_SPACE
	.word	REQ_OP_WRITE
	.word	BTRFS_DATA_RELOC_TREE_OBJECTID
	.word	EXTENT_BIO_COMPRESSED
	.word	btrfs_submit_bio_start
	.size	btrfs_submit_bio_hook, .-btrfs_submit_bio_hook
	.comm	btrfs_submit_bio_start,4,4
	.comm	REQ_OP_WRITE,4,4
	.comm	EXTENT_BIO_COMPRESSED,4,4
	.comm	BTRFS_WQ_ENDIO_FREE_SPACE,4,4
	.comm	BTRFS_WQ_ENDIO_DATA,4,4
	.comm	BTRFS_INODE_NODATASUM,4,4
	.comm	BTRFS_DATA_RELOC_TREE_OBJECTID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
