	.file	"extr_qlge_dbg.c_ql_get_mpi_shadow_regs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ql_get_mpi_shadow_regs, @function
ql_get_mpi_shadow_regs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MPI_CORE_SH_REGS_CNT[rip]
	test	eax, eax
	jle	.L7
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR RISC_127[rip]
	mov	rdx, rbp
	mov	rdi, r12
	call	ql_read_mpi_reg@PLT
	test	eax, eax
	jne	.L1
	add	ebx, 1
	add	rbp, 4
	cmp	DWORD PTR MPI_CORE_SH_REGS_CNT[rip], ebx
	jle	.L12
.L4:
	mov	ecx, DWORD PTR SHADOW_REG_SHIFT[rip]
	mov	edx, ebx
	mov	esi, DWORD PTR RISC_124[rip]
	mov	rdi, r12
	sal	edx, cl
	or	edx, DWORD PTR SHADOW_OFFSET[rip]
	call	ql_write_mpi_reg@PLT
	test	eax, eax
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
.L3:
	endbr64
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	ql_get_mpi_shadow_regs, .-ql_get_mpi_shadow_regs
	.comm	SHADOW_REG_SHIFT,4,4
	.comm	SHADOW_OFFSET,4,4
	.comm	RISC_127,4,4
	.comm	RISC_124,4,4
	.comm	MPI_CORE_SH_REGS_CNT,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_qlge_dbg.c_ql_get_mpi_shadow_regs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_get_mpi_shadow_regs, %function
ql_get_mpi_shadow_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L8
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r5, r0
	mov	r4, r1
	mov	fp, #0
	ldr	r9, .L8+4
	ldr	r8, .L8+8
	ldr	r7, .L8+12
	ldr	r10, .L8+16
.L4:
	ldr	r2, [r9]
	ldr	r3, [r8]
	mov	r0, r5
	orr	r2, r3, fp, lsl r2
	ldr	r1, [r7]
	bl	ql_write_mpi_reg
	cmp	r0, #0
	add	fp, fp, #1
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r10]
	bl	ql_read_mpi_reg
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, [r6]
	add	r4, r4, #4
	cmp	r3, fp
	bgt	.L4
.L2:
.L3:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	MPI_CORE_SH_REGS_CNT
	.word	SHADOW_REG_SHIFT
	.word	SHADOW_OFFSET
	.word	RISC_124
	.word	RISC_127
	.size	ql_get_mpi_shadow_regs, .-ql_get_mpi_shadow_regs
	.comm	SHADOW_REG_SHIFT,4,4
	.comm	SHADOW_OFFSET,4,4
	.comm	RISC_127,4,4
	.comm	RISC_124,4,4
	.comm	MPI_CORE_SH_REGS_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
