	.file	"extr_ql_hw.c_ql_rdrom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_rdrom, @function
ql_rdrom:
.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, 24
	.cfi_def_cfa_offset 80
	movsx	r14, DWORD PTR 4[rsi]
	mov	r12d, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	shr	r14, 2
	test	r14d, r14d
	jle	.L2
	lea	eax, -1[r14]
	mov	rbp, rdi
	mov	rbx, rdx
	sub	r12d, edx
	lea	r13, 4[rdx+rax*4]
	lea	r15, 4[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 4[rsp]
	add	rbx, 4
	mov	DWORD PTR -4[rbx], eax
	cmp	rbx, r13
	je	.L2
.L4:
	lea	esi, [r12+rbx]
	mov	rdx, r15
	mov	rdi, rbp
	call	ql_rd_flash32@PLT
	test	eax, eax
	je	.L10
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	lea	eax, 0[0+r14*4]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ql_rdrom, .-ql_rdrom
	.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_ql_hw.c_ql_rdrom.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_rdrom, %function
ql_rdrom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r8, [r1, #4]
	ldr	r3, .L15
	sub	sp, sp, #12
	lsrs	r7, r8, #2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r9, [r1]
	beq	.L2
	mov	r6, r0
	mov	r4, r2
	mov	r5, #0
	sub	r9, r9, r2
	b	.L4
.L13:
	ldr	r3, [sp]
	add	r5, r5, #1
	cmp	r7, r5
	str	r3, [r4], #4
	beq	.L2
.L4:
	mov	r2, sp
	mov	r0, r6
	add	r1, r4, r9
	bl	ql_rd_flash32
	cmp	r0, #0
	beq	.L13
	mov	r0, #0
	b	.L1
.L2:
	bic	r0, r8, #3
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	ql_rdrom, .-ql_rdrom
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
