	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_82xx_get_registers
_qlcnic_82xx_get_registers:             ## @qlcnic_82xx_get_registers
	.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	%rsi, %r15
	movq	%rdi, %r13
	movl	$0, -48(%rbp)
	movq	_QLCNIC_DEV_INFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	_diag_registers@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	(%rcx), %esi
	cmpl	$-1, %esi
	je	LBB0_4
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cltq
	leaq	(%r15,%rax,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_QLC_SHARED_REG_RD32
	movl	%eax, (%r14,%rbx,4)
	movq	(%r12), %rax
	movl	4(%rax,%rbx,4), %esi
	incq	%rbx
	cmpl	$-1, %esi
	jne	LBB0_2
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%ebx, %eax
LBB0_4:
	movq	_ext_diag_registers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movl	(%rcx), %esi
	cmpl	$-1, %esi
	je	LBB0_8
## %bb.5:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cltq
	leaq	(%r15,%rax,4), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	incq	%r12
	movq	%r13, %rdi
	movq	%rdx, %r15
	leaq	-48(%rbp), %rdx
	callq	_QLCRD32
	movq	%r15, %rdx
	movl	%eax, (%r14,%rbx,4)
	movq	(%r15), %rax
	movl	4(%rax,%rbx,4), %esi
	cmpl	$-1, %esi
	jne	LBB0_6
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r12d, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DEV_INFO_SIZE,4,2       ## @QLCNIC_DEV_INFO_SIZE
	.comm	_diag_registers,8,3             ## @diag_registers
	.comm	_ext_diag_registers,8,3         ## @ext_diag_registers
	.no_dead_strip	_qlcnic_82xx_get_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_82xx_get_registers
_qlcnic_82xx_get_registers:             ; @qlcnic_82xx_get_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _QLCNIC_DEV_INFO_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_DEV_INFO_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w19, w8, #1
Lloh3:
	adrp	x22, _diag_registers@GOTPAGE
Lloh4:
	ldr	x22, [x22, _diag_registers@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	cmn	w1, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x23, #0
	add	x24, x21, w19, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_QLC_SHARED_REG_RD32
	lsl	x8, x23, #2
	str	w0, [x24, x8]
	add	x23, x23, #1
	ldr	x9, [x22]
	add	x8, x9, x8
	ldr	w1, [x8, #4]
	cmn	w1, #1
	b.ne	LBB0_2
; %bb.3:
	add	w19, w19, w23
LBB0_4:
Lloh5:
	adrp	x22, _ext_diag_registers@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ext_diag_registers@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8]
	cmn	w1, #1
	b.eq	LBB0_8
; %bb.5:
	mov	x23, #0
	add	x21, x21, w19, sxtw #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x23
	add	x23, x23, #1
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	lsl	x8, x24, #2
	str	w0, [x21, x8]
	ldr	x9, [x22]
	add	x8, x9, x8
	ldr	w1, [x8, #4]
	cmn	w1, #1
	b.ne	LBB0_6
; %bb.7:
	add	w19, w19, w23
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DEV_INFO_SIZE,4,2       ; @QLCNIC_DEV_INFO_SIZE
	.comm	_diag_registers,8,3             ; @diag_registers
	.comm	_ext_diag_registers,8,3         ; @ext_diag_registers
	.no_dead_strip	_qlcnic_82xx_get_registers
.subsections_via_symbols
