	.file	"extr_ms_block.c_msb_cache_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Read of LBA %d (pba %d) sector %d from cache"
	.align 8
.LC1:
	.string	"Read of LBA %d (pba %d) sector %d from device"
	.text
	.p2align 4
	.type	msb_cache_read, @function
msb_cache_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	movsx	rdx, esi
	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
	mov	ebx, r8d
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r14d, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR 8[rdi], esi
	je	.L10
.L2:
	mov	edx, r14d
	mov	ecx, r12d
	lea	rdi, .LC1[rip]
	mov	esi, r13d
	call	dbg_verbose@PLT
	mov	esi, r14d
	mov	r9d, ebx
	mov	r8, r15
	xor	ecx, ecx
	mov	edx, r12d
	mov	rdi, rbp
	call	msb_read_page@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L11:
	.cfi_restore_state
	mov	r9d, ebx
	mov	r8, r15
	mov	ecx, 1
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	call	msb_cache_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, 24[rdi]
	mov	edi, r12d
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	ecx, r12d
	mov	edx, r14d
	lea	rdi, .LC0[rip]
	mov	esi, r13d
	call	dbg_verbose@PLT
	mov	r13, rsp
	mov	rdi, r13
	call	ARRAY_SIZE@PLT
	mov	rdi, r13
	mov	esi, eax
	call	sg_init_table@PLT
	mov	r14d, DWORD PTR 12[rbp]
	mov	rdi, r13
	call	ARRAY_SIZE@PLT
	mov	ecx, ebx
	mov	rsi, r13
	mov	rdi, r15
	mov	r8d, r14d
	mov	edx, eax
	call	msb_sg_copy@PLT
	mov	r14d, DWORD PTR 12[rbp]
	mov	rdi, r13
	imul	r12d, r14d
	movsx	r12, r12d
	add	r12, QWORD PTR 16[rbp]
	call	sg_nents@PLT
	mov	ecx, r14d
	mov	rdx, r12
	mov	rdi, r13
	mov	esi, eax
	xor	r14d, r14d
	call	sg_copy_from_buffer@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	msb_cache_read, .-msb_cache_read
	.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_ms_block.c_msb_cache_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Read of LBA %d (pba %d) sector %d from cache\000"
	.align	2
.LC1:
	.ascii	"Read of LBA %d (pba %d) sector %d from device\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msb_cache_read, %function
msb_cache_read:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldm	r0, {r1, r10}
	mov	r8, r3
	ldr	r3, .L13
	sub	sp, sp, #56
	cmp	r10, r5
	mov	r4, r0
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r7, [r1, r5, lsl #2]
	ldr	r9, [sp, #88]
	beq	.L10
.L2:
	mov	r2, r7
	mov	r3, r6
	mov	r1, r5
	ldr	r0, .L13+4
	bl	dbg_verbose
	mov	r1, r7
	mov	r3, #0
	mov	r2, r6
	mov	r0, r4
	stm	sp, {r8, r9}
	bl	msb_read_page
	subs	r7, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r7
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	mov	r3, #1
	stm	sp, {r8, r9}
	bl	msb_cache_write
	b	.L1
.L10:
	add	r1, r0, #16
	mov	r0, r2
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	mov	r2, r7
	mov	r3, r6
	mov	r1, r10
	ldr	r0, .L13+8
	bl	dbg_verbose
	add	r0, sp, #12
	bl	ARRAY_SIZE
	mov	r1, r0
	add	r0, sp, #12
	bl	sg_init_table
	add	r0, sp, #12
	bl	ARRAY_SIZE
	ldr	ip, [r4, #8]
	mov	r2, r0
	mov	r3, r9
	add	r1, sp, #12
	str	ip, [sp]
	mov	r0, r8
	bl	msb_sg_copy
	add	r0, sp, #12
	bl	sg_nents
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	mov	r1, r0
	mla	r2, r6, r3, r2
	add	r0, sp, #12
	bl	sg_copy_from_buffer
	mov	r7, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	msb_cache_read, .-msb_cache_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
