	.file	"extr_ql_hw.c_ql_rdcrb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_rdcrb, @function
ql_rdcrb:
.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, 40
	.cfi_def_cfa_offset 96
	mov	r15d, DWORD PTR [rsi]
	mov	r13d, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rsi]
	mov	DWORD PTR 20[rsp], 0
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jle	.L2
	sub	eax, 1
	mov	rbp, rdi
	lea	r12, 20[rsp]
	mov	rbx, rdx
	lea	r14, 8[rdx+rax*8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR [rbx], r15d
	add	rbx, 8
	add	r15d, r13d
	mov	DWORD PTR -4[rbx], eax
	cmp	r14, rbx
	je	.L2
.L4:
	mov	ecx, 1
	mov	rdx, r12
	mov	esi, r15d
	mov	rdi, rbp
	call	ql_rdwr_indreg32@PLT
	test	eax, eax
	je	.L10
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 12[rsp]
	sal	eax, 3
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.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_rdcrb, .-ql_rdcrb
	.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_rdcrb.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_rdcrb, %function
ql_rdcrb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, #0
	ldr	r7, [r1, #4]
	ldr	r3, .L12
	sub	sp, sp, #12
	cmp	r7, r6
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r5, [r1]
	ldr	r9, [r1, #8]
	str	r6, [sp]
	ble	.L2
	mov	r8, r0
	add	r4, r2, #8
	b	.L4
.L10:
	ldr	r3, [sp]
	add	r6, r6, #1
	cmp	r7, r6
	str	r5, [r4, #-8]
	str	r3, [r4, #-4]
	add	r5, r5, r9
	add	r4, r4, #8
	beq	.L2
.L4:
	mov	r3, #1
	mov	r2, sp
	mov	r1, r5
	mov	r0, r8
	bl	ql_rdwr_indreg32
	cmp	r0, #0
	beq	.L10
	mov	r0, #0
	b	.L1
.L2:
	lsl	r0, r7, #3
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	ql_rdcrb, .-ql_rdcrb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
