	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_read_6120cntrs
_qib_read_6120cntrs:                    ## @qib_read_6120cntrs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	jle	LBB0_2
## %bb.3:
	movq	_cntr6120names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdx)
	jmp	LBB0_10
LBB0_4:
	movq	16(%rdi), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_10
## %bb.5:
	movslq	8(%rdi), %r15
	shlq	$2, %r15
	cmpq	%rsi, %r15
	jle	LBB0_10
## %bb.6:
	movq	%r14, (%rcx)
	movq	(%r12), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	_cntr6120indices@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_read_6120_creg32
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movq	(%r12), %rax
	movslq	8(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	%r15, %rax
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cntr6120names,8,3              ## @cntr6120names
	.comm	_cntr6120indices,8,3            ## @cntr6120indices
	.no_dead_strip	_qib_read_6120cntrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_read_6120cntrs
_qib_read_6120cntrs:                    ; @qib_read_6120cntrs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x19, [x8]
	cmp	x19, x1
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _cntr6120names@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cntr6120names@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x2]
	b	LBB0_5
LBB0_3:
	ldr	x21, [x8, #16]
	ldrsw	x8, [x8, #8]
	lsl	x19, x8, #2
	cmp	x21, #0
	ccmp	x19, x1, #4, ne
	b.gt	LBB0_6
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x0
	str	x21, [x3]
	ldr	x8, [x0]
	ldr	w8, [x8, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:
	mov	x22, #0
Lloh3:
	adrp	x23, _cntr6120indices@GOTPAGE
Lloh4:
	ldr	x23, [x23, _cntr6120indices@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x22, #2
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_read_6120_creg32
	str	w0, [x21, x24]
	add	x22, x22, #1
	ldr	x8, [x20]
	ldrsw	x8, [x8, #8]
	cmp	x22, x8
	b.lt	LBB0_8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cntr6120names,8,3              ; @cntr6120names
	.comm	_cntr6120indices,8,3            ; @cntr6120indices
	.no_dead_strip	_qib_read_6120cntrs
.subsections_via_symbols
