	.file	"extr_fsutil.c_getblk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	getblk
	.type	getblk, @function
getblk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	rdi, sblock[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	fsbtodb@PLT
	cmp	QWORD PTR [rbx], rax
	jne	.L2
	add	DWORD PTR totalreads[rip], 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR fswritefd[rip]
	mov	rsi, rbx
	mov	rbp, rax
	call	flush@PLT
	cmp	QWORD PTR debug[rip], 0
	jne	.L10
.L4:
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR fsreadfd[rip]
	mov	rcx, r12
	mov	rdx, rbp
	call	blread@PLT
	cmp	QWORD PTR debug[rip], 0
	mov	DWORD PTR 28[rbx], eax
	jne	.L11
.L5:
	mov	QWORD PTR [rbx], rbp
	mov	QWORD PTR 16[rbx], r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR readcnt[rip]
	mov	rsi, rsp
	add	DWORD PTR [rax+rdx*4], 1
	mov	edi, DWORD PTR CLOCK_REALTIME_PRECISE[rip]
	call	clock_gettime@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	r13, 4[rsp]
	mov	edi, DWORD PTR CLOCK_REALTIME_PRECISE[rip]
	mov	rsi, r13
	call	clock_gettime@PLT
	mov	rsi, rsp
	mov	rdx, r13
	mov	rdi, r13
	call	timespecsub@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR readtime[rip]
	mov	rsi, r13
	lea	rdi, [rax+rdx*4]
	mov	rdx, rdi
	call	timespecadd@PLT
	jmp	.L5
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getblk, .-getblk
	.comm	totalreads,4,4
	.comm	sblock,4,4
	.comm	readtime,8,8
	.comm	readcnt,8,8
	.comm	fswritefd,4,4
	.comm	fsreadfd,4,4
	.comm	debug,8,8
	.comm	CLOCK_REALTIME_PRECISE,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_fsutil.c_getblk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getblk
	.syntax unified
	.arm
	.fpu softvfp
	.type	getblk, %function
getblk:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L18
	mov	r4, r0
	sub	sp, sp, #20
	ldr	r0, .L18+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r2
	bl	fsbtodb
	ldr	r3, [r4]
	cmp	r3, r0
	bne	.L2
	ldr	r2, .L18+8
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L18+12
	ldr	r7, .L18+16
	mov	r5, r0
	mov	r1, r4
	ldr	r0, [r3]
	bl	flush
	ldr	r3, [r7]
	cmp	r3, #0
	bne	.L16
.L4:
	ldr	r2, .L18+20
	mov	r3, r6
	ldr	r0, [r2]
	ldr	r1, [r4, #12]
	mov	r2, r5
	bl	blread
	ldr	r3, [r7]
	str	r0, [r4, #16]
	cmp	r3, #0
	bne	.L17
.L5:
	str	r5, [r4]
	str	r6, [r4, #8]
	b	.L1
.L16:
	ldr	r3, .L18+24
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	ldr	r0, .L18+28
	ldr	r3, [r2, r1, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r1, lsl #2]
	ldr	r0, [r0]
	add	r1, sp, #4
	bl	clock_gettime
	b	.L4
.L17:
	ldr	r3, .L18+28
	add	r1, sp, #8
	ldr	r0, [r3]
	bl	clock_gettime
	add	r2, sp, #8
	add	r1, sp, #4
	mov	r0, r2
	bl	timespecsub
	ldr	r2, .L18+32
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	add	r1, sp, #8
	add	r2, r2, r3, lsl #2
	mov	r0, r2
	bl	timespecadd
	b	.L5
.L15:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	sblock
	.word	totalreads
	.word	fswritefd
	.word	debug
	.word	fsreadfd
	.word	readcnt
	.word	CLOCK_REALTIME_PRECISE
	.word	readtime
	.size	getblk, .-getblk
	.comm	totalreads,4,4
	.comm	sblock,4,4
	.comm	readtime,4,4
	.comm	readcnt,4,4
	.comm	fswritefd,4,4
	.comm	fsreadfd,4,4
	.comm	debug,4,4
	.comm	CLOCK_REALTIME_PRECISE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
