	.file	"extr_pblk-read.c_pblk_submit_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pblk_submit_read
	.type	pblk_submit_read, @function
pblk_submit_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
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	rdi, rsi
	mov	r14, QWORD PTR [rax]
	call	pblk_get_lba@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	pblk_get_secs@PLT
	mov	r15, QWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	r12d, eax
	call	bio_sectors@PLT
	mov	esi, DWORD PTR REQ_OP_READ[rip]
	mov	rcx, r15
	mov	rdi, r14
	mov	edx, eax
	call	generic_start_io_acct@PLT
	mov	esi, DWORD PTR PBLK_READ[rip]
	mov	rdi, rbx
	call	pblk_alloc_rqd@PLT
	mov	r14, rax
	mov	eax, DWORD PTR NVM_OP_PREAD[rip]
	mov	QWORD PTR 40[r14], rbx
	mov	rdi, r14
	mov	DWORD PTR 48[r14], eax
	mov	rax, QWORD PTR pblk_end_io_read@GOTPCREL[rip]
	mov	DWORD PTR [r14], r12d
	mov	QWORD PTR 32[r14], rax
	call	nvm_rq_to_pdu@PLT
	mov	rsi, r14
	mov	rdi, rbx
	mov	rcx, rax
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR jiffies[rip]
	mov	DWORD PTR 8[rcx], r13d
	mov	DWORD PTR 12[rcx], eax
	call	pblk_alloc_rqd_meta@PLT
	test	rax, rax
	jne	.L18
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, pblk_bio_set[rip]
	mov	rdi, rbp
	call	bio_clone_fast@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	ecx, r13d
	mov	rsi, r14
	mov	r15, rax
	lea	r8, 20[rsp]
	mov	rdx, rax
	cmp	r12d, 1
	jbe	.L4
	call	pblk_read_ppalist_rq@PLT
	mov	r12d, eax
.L5:
	lea	r13, pblk_bio_set[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	eax, r12d
	je	.L19
.L7:
	mov	esi, DWORD PTR NR_PHY_IN_LOG[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rcx, r13
	mov	rdi, rbp
	imul	esi, r12d
	call	bio_split@PLT
	mov	rsi, rbp
	mov	rdi, rax
	mov	rbx, rax
	call	bio_chain@PLT
	mov	rdi, rbp
	call	generic_make_request@PLT
	mov	DWORD PTR [r14], r12d
	cmp	r12d, 1
	jne	.L10
	mov	rax, QWORD PTR 8[r14]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 16[r14], eax
.L10:
	mov	rdi, r15
	mov	rbp, rbx
	call	bio_put@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdx, r13
	mov	rdi, rbx
	call	bio_clone_fast@PLT
	mov	r15, rax
.L11:
	mov	rax, QWORD PTR [rsp]
	mov	edx, DWORD PTR 20[rsp]
	mov	QWORD PTR [rax], rbp
	mov	eax, DWORD PTR [r14]
	mov	QWORD PTR 24[r14], r15
	test	edx, edx
	jne	.L20
	cmp	eax, r12d
	jne	.L7
	mov	rdi, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rsi, r14
	call	pblk_submit_io@PLT
	test	rax, rax
	jne	.L21
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.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
.L4:
	.cfi_restore_state
	call	pblk_read_rq@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbp
	call	bio_io_error@PLT
	mov	edx, DWORD PTR PBLK_READ[rip]
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r14
	call	pblk_free_rqd@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	xor	esi, esi
	mov	rdi, rbp
	call	pblk_end_user_read@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, rbx
	call	atomic_inc@PLT
	xor	edx, edx
	mov	rsi, r14
	mov	rdi, rbx
	call	__pblk_end_io_read@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR ENODEV[rip]
	mov	rdi, r14
	neg	eax
	mov	DWORD PTR 4[r14], eax
	call	pblk_end_io_read@PLT
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pblk_submit_read, .-pblk_submit_read
	.comm	pblk_bio_set,4,4
	.comm	jiffies,4,4
	.comm	REQ_OP_READ,4,4
	.comm	PBLK_READ,4,4
	.comm	NVM_OP_PREAD,4,4
	.comm	NR_PHY_IN_LOG,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENODEV,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_pblk-read.c_pblk_submit_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pblk_submit_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	pblk_submit_read, %function
pblk_submit_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	sub	sp, sp, #28
	ldr	r2, .L23
	mov	r10, r0
	str	r0, [sp, #12]
	mov	r0, r1
	mov	r4, r1
	ldr	r6, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	bl	pblk_get_lba
	mov	r7, r0
	mov	r0, r4
	bl	pblk_get_secs
	ldr	r3, .L23+4
	mov	r8, r0
	mov	r0, r4
	ldr	r9, [r3]
	bl	bio_sectors
	ldr	r5, .L23+8
	mov	r2, r0
	ldr	r3, [r10, #4]
	mov	r1, r9
	mov	r0, r6
	bl	generic_start_io_acct
	ldr	r1, [r5]
	mov	r0, r10
	bl	pblk_alloc_rqd
	ldr	r2, .L23+12
	ldr	r3, .L23+16
	ldr	r2, [r2]
	str	r3, [r0, #20]
	str	r2, [r0, #28]
	str	r10, [r0, #24]
	str	r8, [r0]
	mov	r6, r0
	bl	nvm_rq_to_pdu
	ldr	r3, .L23+20
	str	r0, [sp, #8]
	ldr	r3, [r3]
	str	r7, [r0, #4]
	str	r3, [r0, #8]
	mov	r1, r6
	mov	r0, r10
	bl	pblk_alloc_rqd_meta
	cmp	r0, #0
	bne	.L18
	ldr	r9, .L23+24
	ldr	r2, .L23+28
	ldr	r1, [r9]
	mov	r0, r4
	bl	bio_clone_fast
	add	r2, sp, #16
	cmp	r8, #1
	mov	r5, r0
	str	r2, [sp]
	mov	r3, r7
	mov	r2, r0
	mov	r1, r6
	ldr	r0, [sp, #12]
	bls	.L4
	bl	pblk_read_ppalist_rq
	mov	r8, r0
.L5:
	ldr	fp, .L23+32
	ldr	r10, .L23+28
	b	.L11
.L20:
	cmp	r3, r8
	beq	.L19
.L7:
	ldr	r1, [fp]
	mov	r3, r10
	ldr	r2, [r9]
	mov	r0, r4
	mul	r1, r8, r1
	bl	bio_split
	mov	r1, r4
	mov	r7, r0
	bl	bio_chain
	mov	r0, r4
	bl	generic_make_request
	cmp	r8, #1
	ldreq	r3, [r6, #8]
	str	r8, [r6]
	ldreq	r3, [r3]
	mov	r0, r5
	streq	r3, [r6, #12]
	bl	bio_put
	mov	r2, r10
	mov	r0, r7
	ldr	r1, [r9]
	bl	bio_clone_fast
	mov	r4, r7
	mov	r5, r0
.L11:
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #8]
	cmp	r2, #0
	str	r4, [r3]
	ldr	r3, [r6]
	str	r5, [r6, #16]
	bne	.L20
	cmp	r3, r8
	bne	.L7
	mov	r1, r6
	ldr	r0, [sp, #12]
	bl	pblk_submit_io
	cmp	r0, #0
	bne	.L21
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	bl	pblk_read_rq
	b	.L5
.L18:
	mov	r0, r4
	bl	bio_io_error
	mov	r1, r6
	ldr	r2, [r5]
	ldr	r0, [sp, #12]
	bl	pblk_free_rqd
	b	.L1
.L19:
	mov	r1, #0
	mov	r0, r4
	bl	pblk_end_user_read
	ldr	r4, [sp, #12]
	mov	r0, r4
	bl	atomic_inc
	mov	r1, r6
	mov	r0, r4
	mov	r2, #0
	bl	__pblk_end_io_read
	b	.L1
.L21:
	ldr	r3, .L23+36
	mov	r0, r6
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r6, #4]
	bl	pblk_end_io_read
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	REQ_OP_READ
	.word	PBLK_READ
	.word	NVM_OP_PREAD
	.word	pblk_end_io_read
	.word	jiffies
	.word	GFP_KERNEL
	.word	pblk_bio_set
	.word	NR_PHY_IN_LOG
	.word	ENODEV
	.size	pblk_submit_read, .-pblk_submit_read
	.comm	pblk_bio_set,4,4
	.comm	jiffies,4,4
	.comm	REQ_OP_READ,4,4
	.comm	PBLK_READ,4,4
	.comm	NVM_OP_PREAD,4,4
	.comm	NR_PHY_IN_LOG,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
