	.file	"extr_dm-bufio.c_use_bio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	use_bio, @function
use_bio:
.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
	mov	r13, rdi
	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, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	xor	edi, edi
	mov	DWORD PTR 8[rsp], ecx
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rbx, QWORD PTR [rax]
	mov	DWORD PTR [rsp], esi
	mov	DWORD PTR 4[rsp], edx
	sar	rbx, cl
	sub	rcx, QWORD PTR SECTOR_SHIFT[rip]
	cmp	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 12[rsp], r8d
	setl	dil
	call	unlikely@PLT
	lea	esi, 2[rbx]
	mov	edi, DWORD PTR GFP_NOWAIT[rip]
	test	rax, rax
	cmove	esi, ebx
	or	edi, DWORD PTR __GFP_NORETRY[rip]
	or	edi, DWORD PTR __GFP_NOWARN[rip]
	call	bio_kmalloc@PLT
	test	rax, rax
	je	.L4
	mov	r12, rax
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, r12
	mov	DWORD PTR 12[r12], eax
	mov	rax, QWORD PTR 8[r13]
	mov	esi, DWORD PTR 16[rax]
	call	bio_set_dev@PLT
	mov	esi, DWORD PTR [rsp]
	xor	edx, edx
	mov	rdi, r12
	call	bio_set_op_attrs@PLT
	mov	eax, DWORD PTR bio_complete[rip]
	mov	ebp, DWORD PTR 8[rsp]
	mov	QWORD PTR [r12], r13
	mov	rcx, QWORD PTR SECTOR_SHIFT[rip]
	mov	r8d, DWORD PTR 12[rsp]
	add	r8, QWORD PTR 0[r13]
	mov	DWORD PTR 8[r12], eax
	mov	r15, r8
	sal	ebp, cl
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, ebx
	add	r15, rax
	sub	ebp, ebx
	je	.L12
.L6:
	mov	rbx, QWORD PTR PAGE_SIZE[rip]
	mov	rdi, r15
	call	offset_in_page@PLT
	mov	esi, ebp
	mov	edi, ebx
	sub	edi, eax
	call	min@PLT
	mov	rdi, r15
	mov	ebx, eax
	call	offset_in_page@PLT
	mov	rdi, r15
	mov	r14, rax
	call	virt_to_page@PLT
	mov	rcx, r14
	mov	edx, ebx
	mov	rdi, r12
	mov	esi, eax
	call	bio_add_page@PLT
	test	eax, eax
	jne	.L5
	mov	rdi, r12
	call	bio_put@PLT
.L4:
	mov	r8d, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdi, r13
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR [rsp]
	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
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	use_dmio@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	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
	jmp	submit_bio@PLT
	.cfi_endproc
.LFE0:
	.size	use_bio, .-use_bio
	.comm	bio_complete,4,4
	.comm	__GFP_NOWARN,4,4
	.comm	__GFP_NORETRY,4,4
	.comm	SECTOR_SHIFT,8,8
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_SHIFT,8,8
	.comm	GFP_NOWAIT,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_dm-bufio.c_use_bio.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	use_bio, %function
use_bio:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r5, .L14
	ldr	r0, .L14+4
	ldr	lr, [r8, #4]
	ldr	ip, [r0]
	ldr	r0, [r5]
	sub	sp, sp, #20
	sub	r0, ip, r0
	ldm	lr, {r4, r6}
	stmib	sp, {r2, r3}
	cmp	r6, r0
	ldr	r3, [sp, #56]
	movge	r0, #0
	movlt	r0, #1
	asr	r4, r4, ip
	mov	r9, r1
	str	r3, [sp, #12]
	bl	unlikely
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	ldr	r1, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r0, #0
	ldr	r0, [r1]
	addne	r4, r4, #2
	orr	r3, r3, r2
	mov	r1, r4
	orr	r0, r3, r0
	bl	bio_kmalloc
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [r8, #4]
	ldr	r2, [sp, #4]
	ldr	r1, [r3, #8]
	str	r2, [r6, #8]
	bl	bio_set_dev
	mov	r2, #0
	mov	r1, r9
	mov	r0, r6
	bl	bio_set_op_attrs
	ldr	r3, .L14+20
	ldr	r4, [r8]
	ldr	r3, [r3]
	ldr	r5, [r5]
	ldr	r2, [sp, #8]
	str	r3, [r6, #4]
	ldr	r3, [sp, #12]
	ldr	r7, .L14+24
	lsl	r5, r2, r5
	str	r8, [r6]
	add	r4, r3, r4
	b	.L6
.L5:
	subs	r5, r5, r10
	add	r4, r4, r10
	beq	.L13
.L6:
	mov	r0, r4
	ldr	r10, [r7]
	bl	offset_in_page
	mov	r1, r5
	sub	r0, r10, r0
	bl	min
	mov	r10, r0
	mov	r0, r4
	bl	virt_to_page
	mov	fp, r0
	mov	r0, r4
	bl	offset_in_page
	mov	r2, r10
	mov	r3, r0
	mov	r1, fp
	mov	r0, r6
	bl	bio_add_page
	cmp	r0, #0
	bne	.L5
	mov	r0, r6
	bl	bio_put
.L4:
	mov	r1, r9
	mov	r0, r8
	ldr	r3, [sp, #12]
	str	r3, [sp, #56]
	ldmib	sp, {r2, r3}
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	use_dmio
.L13:
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	submit_bio
.L15:
	.align	2
.L14:
	.word	SECTOR_SHIFT
	.word	PAGE_SHIFT
	.word	GFP_NOWAIT
	.word	__GFP_NORETRY
	.word	__GFP_NOWARN
	.word	bio_complete
	.word	PAGE_SIZE
	.size	use_bio, .-use_bio
	.comm	bio_complete,4,4
	.comm	__GFP_NOWARN,4,4
	.comm	__GFP_NORETRY,4,4
	.comm	SECTOR_SHIFT,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	GFP_NOWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
