	.file	"extr_qib_iba7322.c_qib_read_7322cntrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qib_read_7322cntrs, @function
qib_read_7322cntrs:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	test	rdx, rdx
	je	.L2
	mov	r12, QWORD PTR [rax]
	cmp	rsi, r12
	jl	.L12
.L8:
	xor	r12d, r12d
.L3:
	endbr64
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR cntr7322names[rip]
	mov	QWORD PTR [rdx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	movsx	r12, DWORD PTR 8[rax]
	mov	r13, QWORD PTR 16[rax]
	mov	rax, r12
	sal	r12, 2
	test	r13, r13
	je	.L8
	cmp	r12, rsi
	jle	.L8
	mov	QWORD PTR [rcx], r13
	test	eax, eax
	jle	.L1
	mov	rbp, rdi
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	and	esi, DWORD PTR _PORT_CNTR_IDXMASK[rip]
	mov	rdi, rbp
	call	read_7322_creg@PLT
	mov	DWORD PTR 0[r13+rbx*4], eax
.L5:
	mov	rax, QWORD PTR 0[rbp]
	add	rbx, 1
	cmp	DWORD PTR 8[rax], ebx
	jle	.L1
.L6:
	mov	rax, QWORD PTR cntr7322indices[rip]
	mov	esi, DWORD PTR [rax+rbx*4]
	test	DWORD PTR _PORT_64BIT_FLAG[rip], esi
	jne	.L13
	mov	rdi, rbp
	call	read_7322_creg32@PLT
	mov	DWORD PTR 0[r13+rbx*4], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	qib_read_7322cntrs, .-qib_read_7322cntrs
	.comm	cntr7322names,8,8
	.comm	cntr7322indices,8,8
	.comm	_PORT_CNTR_IDXMASK,4,4
	.comm	_PORT_64BIT_FLAG,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_qib_iba7322.c_qib_read_7322cntrs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qib_read_7322cntrs, %function
qib_read_7322cntrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	beq	.L2
	ldr	r7, [r0]
	cmp	r1, r7
	movge	r7, #0
	blt	.L12
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L14
	mov	r0, r7
	ldr	r3, [r3]
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
.L3:
	ldr	ip, [r0, #4]
	ldr	r6, [r0, #8]
	cmp	r1, ip, lsl #2
	movge	r4, #1
	movlt	r4, #0
	cmp	r6, #0
	moveq	r4, #1
	cmp	r4, #0
	lsl	r7, ip, #2
	movne	r7, r2
	bne	.L1
	cmp	ip, #0
	str	r6, [r3]
	ble	.L1
	ldr	r10, .L14+4
	ldr	r9, .L14+8
	ldr	r8, .L14+12
	b	.L6
.L13:
	ldr	r3, [r8]
	mov	r0, r5
	and	r1, r1, r3
	bl	read_7322_creg
	str	r0, [r6, r4, lsl #2]
.L5:
	ldr	r3, [r5]
	add	r4, r4, #1
	ldr	r3, [r3, #4]
	cmp	r3, r4
	ble	.L1
.L6:
	ldr	r2, [r10]
	ldr	r3, [r9]
	ldr	r1, [r2, r4, lsl #2]
	tst	r1, r3
	bne	.L13
	mov	r0, r5
	bl	read_7322_creg32
	str	r0, [r6, r4, lsl #2]
	b	.L5
.L15:
	.align	2
.L14:
	.word	cntr7322names
	.word	cntr7322indices
	.word	_PORT_64BIT_FLAG
	.word	_PORT_CNTR_IDXMASK
	.size	qib_read_7322cntrs, .-qib_read_7322cntrs
	.comm	cntr7322names,4,4
	.comm	cntr7322indices,4,4
	.comm	_PORT_CNTR_IDXMASK,4,4
	.comm	_PORT_64BIT_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
