	.file	"extr_udf_vnops.c_udf_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	udf_read, @function
udf_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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r14, QWORD PTR 16[rdi]
	mov	r12, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	rdi, r14
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rcx
	xor	ecx, ecx
	call	VTON@PLT
	cmp	QWORD PTR [r12], 0
	je	.L6
	cmp	QWORD PTR 8[r12], 0
	mov	r8d, DWORD PTR EINVAL[rip]
	js	.L1
	mov	rdi, rax
	mov	rbx, rax
	call	is_data_in_fentry@PLT
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	le64toh@PLT
	mov	r13, QWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 32[rsp]
	mov	QWORD PTR 16[rsp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, 1[r11]
	mov	rdi, r13
	call	lblktosize@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	r11, QWORD PTR [rsp]
	cmp	rax, rsi
	jge	.L7
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9, QWORD PTR [r12]
	mov	rcx, r15
	mov	rdx, r11
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR NOCRED[rip]
	mov	rdi, r14
	push	0
	.cfi_def_cfa_offset 136
	mov	rax, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rsp], eax
	sar	eax, 16
	push	rax
	.cfi_def_cfa_offset 144
	call	cluster_read@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	r8d, eax
.L9:
	mov	rdi, QWORD PTR 32[rsp]
	test	r8d, r8d
	jne	.L21
	mov	rsi, r15
	sub	rsi, QWORD PTR [rdi]
	mov	rdi, rbp
	call	min@PLT
	mov	rdx, r12
	mov	rbp, rax
	mov	rax, QWORD PTR 32[rsp]
	mov	esi, ebp
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, [rax+rbx*4]
	call	uiomove@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	DWORD PTR [rsp], eax
	call	brelse@PLT
	mov	r8d, DWORD PTR [rsp]
	test	r8d, r8d
	jne	.L1
	cmp	QWORD PTR [r12], 0
	jle	.L6
	test	rbp, rbp
	je	.L6
.L11:
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, r13
	call	lblkno@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	call	blkoff@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	rsi, QWORD PTR [r12]
	mov	rbx, rax
	sub	rdi, rax
	call	min@PLT
	mov	rbp, QWORD PTR 8[rsp]
	sub	rbp, QWORD PTR 8[r12]
	test	rbp, rbp
	jle	.L6
	cmp	rax, rbp
	mov	r15, QWORD PTR 0[r13]
	mov	r11, QWORD PTR [rsp]
	cmovle	rbp, rax
	mov	rax, QWORD PTR [r14]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MNT_NOCLUSTERR[rip], eax
	je	.L22
.L7:
	mov	r8, QWORD PTR 16[rsp]
	mov	rdx, r15
	mov	rsi, r11
	mov	rdi, r14
	mov	ecx, DWORD PTR NOCRED[rip]
	call	bread@PLT
	mov	r8d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rbx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	r13, QWORD PTR 16[rbx]
	call	le32toh@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, rax
	call	le32toh@PLT
	mov	rdx, QWORD PTR 8[r12]
	sub	rax, rdx
	test	rax, rax
	jle	.L6
	mov	rsi, QWORD PTR [r12]
	cmp	rsi, rax
	cmovg	rsi, rax
	add	rbp, rdx
	mov	rdx, r12
	lea	rdi, 0[r13+rbp*4]
	call	uiomove@PLT
	mov	r8d, eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 56
	.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
.L6:
	.cfi_restore_state
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	DWORD PTR [rsp], r8d
	call	brelse@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	udf_read, .-udf_read
	.comm	NOCRED,4,4
	.comm	MNT_NOCLUSTERR,4,4
	.comm	EINVAL,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_udf_vnops.c_udf_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	udf_read, %function
udf_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, [r0, #8]
	sub	sp, sp, #52
	ldr	r2, .L22
	ldr	r4, [r3, #4]
	str	r0, [sp, #36]
	mov	r0, r8
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	bl	VTON
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4, #4]
	cmp	r3, #0
	blt	.L17
	mov	r5, r0
	bl	is_data_in_fentry
	cmp	r0, #0
	bne	.L18
	ldr	r3, [r5, #4]
	ldr	fp, .L22+4
	ldr	r0, [r3]
	bl	le64toh
	ldr	r7, [r5]
	str	r0, [sp, #28]
	b	.L11
.L20:
	mov	r0, r7
	add	r1, r10, #1
	bl	lblktosize
	ldr	ip, [sp, #28]
	cmp	r0, ip
	bge	.L7
	ldr	r3, [sp, #36]
	mov	r2, r10
	ldrsh	r1, [r3, #2]
	add	r3, sp, #40
	str	r3, [sp, #16]
	ldr	r3, [sp, #32]
	str	r1, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, .L22+8
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r8
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, ip
	mov	r3, r9
	bl	cluster_read
	mov	r10, r0
.L9:
	cmp	r10, #0
	ldr	r0, [sp, #40]
	bne	.L19
	ldr	r1, [r0]
	mov	r0, r5
	sub	r1, r9, r1
	bl	min
	ldr	r3, [sp, #40]
	mov	r1, r0
	mov	r5, r0
	ldr	r0, [r3, #4]
	mov	r2, r4
	add	r0, r0, r6, lsl #2
	bl	uiomove
	mov	r10, r0
	ldr	r0, [sp, #40]
	bl	brelse
	cmp	r10, #0
	bne	.L14
	ldr	r3, [r4]
	cmp	r5, #0
	cmpne	r3, #0
	ble	.L6
.L11:
	ldr	r1, [r4, #4]
	mov	r0, r7
	bl	lblkno
	ldr	r1, [r4, #4]
	mov	r10, r0
	mov	r0, r7
	bl	blkoff
	mov	r6, r0
	ldr	r0, [r7]
	ldr	r1, [r4]
	sub	r0, r0, r6
	bl	min
	ldr	r3, [r4, #4]
	ldr	ip, [sp, #28]
	sub	r3, ip, r3
	cmp	r3, #0
	ble	.L6
	ldr	ip, [r8]
	ldr	r1, [fp]
	ldr	ip, [ip]
	cmp	r0, r3
	movlt	r5, r0
	movge	r5, r3
	ands	r3, ip, r1
	ldr	r9, [r7]
	str	r3, [sp, #32]
	beq	.L20
.L7:
	add	r3, sp, #40
	str	r3, [sp]
	ldr	r3, .L22+8
	mov	r1, r10
	mov	r2, r9
	mov	r0, r8
	ldr	r3, [r3]
	bl	bread
	mov	r10, r0
	b	.L9
.L6:
	mov	r3, #0
.L1:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [sp, #44]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L21
	mov	r0, r3
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L22+12
	ldr	r3, [r3]
	b	.L1
.L18:
	ldr	r5, [r5, #4]
	ldr	r0, [r5, #8]
	ldr	r6, [r5, #12]
	bl	le32toh
	mov	r3, r0
	ldr	r0, [r5, #4]
	mov	r5, r3
	bl	le32toh
	ldr	r2, [r4, #4]
	sub	r3, r0, r2
	cmp	r3, #0
	ble	.L6
	ldr	r1, [r4]
	add	r0, r2, r5
	cmp	r1, r3
	movge	r1, r3
	mov	r2, r4
	add	r0, r6, r0, lsl #2
	bl	uiomove
	mov	r3, r0
	b	.L1
.L19:
	str	r10, [sp, #28]
	bl	brelse
	ldr	r3, [sp, #28]
	b	.L1
.L14:
	mov	r3, r10
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	MNT_NOCLUSTERR
	.word	NOCRED
	.word	EINVAL
	.size	udf_read, .-udf_read
	.comm	NOCRED,4,4
	.comm	MNT_NOCLUSTERR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
