	.file	"extr_exfat_blkdev.c_bdev_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[EXFAT] No bh, device seems wrong or to be ejected.\n"
	.text
	.p2align 4
	.globl	bdev_read
	.type	bdev_read, @function
bdev_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	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	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	EXFAT_SB@PLT
	mov	rdi, r15
	mov	rbp, rax
	call	EXFAT_SB@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	QWORD PTR 8[rsp], rax
	test	edx, edx
	je	.L12
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L4
	call	__brelse@PLT
.L4:
	mov	ecx, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR [r15]
	mov	esi, r13d
	sal	ebx, cl
	mov	edx, ebx
	test	r14d, r14d
	jne	.L14
	call	__getblk@PLT
	mov	QWORD PTR [r12], rax
.L6:
	xor	r8d, r8d
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[rsp]
	xor	edi, edi
	lea	rsi, .LC0[rip]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	sete	dil
	call	WARN@PLT
.L12:
	mov	r8d, DWORD PTR FFS_MEDIAERR[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L14:
	.cfi_restore_state
	call	__bread@PLT
	mov	QWORD PTR [r12], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bdev_read, .-bdev_read
	.comm	FFS_MEDIAERR,4,4
	.comm	EXFAT_DEBUGFLAGS_ERROR_RW,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_exfat_blkdev.c_bdev_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[EXFAT] No bh, device seems wrong or to be ejected."
	.ascii	"\012\000"
	.text
	.align	2
	.global	bdev_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	bdev_read, %function
bdev_read:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r3
	mov	r9, r1
	mov	r6, r2
	mov	r8, r0
	bl	EXFAT_SB
	mov	r5, r0
	mov	r0, r8
	bl	EXFAT_SB
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L12
	mov	r7, r0
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L4
	bl	__brelse
.L4:
	ldr	r3, [sp, #32]
	ldr	r2, [r5, #8]
	cmp	r3, #0
	mov	r1, r9
	ldr	r0, [r8]
	lsl	r2, r4, r2
	bne	.L14
	bl	__getblk
	str	r0, [r6]
.L6:
	cmp	r0, #0
	beq	.L15
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, [r7, #4]
	ldr	r1, .L16
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN
.L12:
	ldr	r3, .L16+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	bl	__bread
	str	r0, [r6]
	b	.L6
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	FFS_MEDIAERR
	.size	bdev_read, .-bdev_read
	.comm	FFS_MEDIAERR,4,4
	.comm	EXFAT_DEBUGFLAGS_ERROR_RW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
