	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_get_regs
_qlcnic_get_regs:                       ## @qlcnic_get_regs
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	40(%rax), %r13
	movq	%r12, %rdi
	callq	_qlcnic_get_regs_len
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_QLCNIC_ETHTOOL_REGS_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movq	24(%r15), %rcx
	movq	32(%r15), %rdx
	movl	(%rdx), %edx
	shll	$16, %edx
	orl	%eax, %edx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	movq	_QLCNIC_DEV_INFO_SIZE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orl	$-889323520, %eax               ## imm = 0xCAFE0000
	movl	%eax, (%r14)
	movq	_QLCNIC_MGMT_API_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	movq	%r15, %rdi
	movq	%r14, %rsi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_qlcnic_82xx_get_registers
	jmp	LBB0_3
LBB0_2:
	callq	_qlcnic_83xx_get_registers
LBB0_3:
	movl	%eax, %ebx
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$16, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movslq	%ebx, %r12
	movabsq	$8588873131, %rax               ## imm = 0x1FFEFCDAB
	movq	%rax, (%r14,%r12,4)
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, 8(%r14,%r12,4)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_readl
	movl	%eax, 12(%r14,%r12,4)
	movl	$2, 16(%r14,%r12,4)
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_readl
	movl	%eax, 20(%r14,%r12,4)
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	callq	_readl
	movl	%eax, 24(%r14,%r12,4)
	movl	(%r15), %eax
	movl	%eax, 28(%r14,%r12,4)
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	addl	$8, %ebx
	movslq	%ebx, %rax
	leaq	(%r14,%rax,4), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_readl
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ETHTOOL_REGS_VER,4,2    ## @QLCNIC_ETHTOOL_REGS_VER
	.comm	_QLCNIC_DEV_INFO_SIZE,4,2       ## @QLCNIC_DEV_INFO_SIZE
	.comm	_QLCNIC_MGMT_API_VERSION,4,2    ## @QLCNIC_MGMT_API_VERSION
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.no_dead_strip	_qlcnic_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_get_regs
_qlcnic_get_regs:                       ; @qlcnic_get_regs
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0, #40]
	mov	x0, x22
	bl	_qlcnic_get_regs_len
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _QLCNIC_ETHTOOL_REGS_VER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_ETHTOOL_REGS_VER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x19, #24]
	ldr	w9, [x9]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x21]
Lloh3:
	adrp	x8, _QLCNIC_DEV_INFO_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_DEV_INFO_SIZE@GOTPAGEOFF]
	ldrh	w8, [x8]
	mov	w9, #-889323520
	orr	w8, w8, w9
	str	w8, [x20]
Lloh5:
	adrp	x8, _QLCNIC_MGMT_API_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_MGMT_API_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_82xx_get_registers
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_83xx_get_registers
LBB0_3:
	mov	x21, x0
Lloh8:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.4:
	add	x22, x20, w21, sxtw #2
	mov	x8, #52651
	movk	x8, #65519, lsl #16
	movk	x8, #1, lsl #32
	str	x8, [x22]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	str	w0, [x22, #8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_readl
	mov	w8, #2
	stp	w0, w8, [x22, #12]
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
	bl	_readl
	str	w0, [x22, #20]
	ldr	x8, [x23, #8]
	ldr	w0, [x8, #4]
	bl	_readl
	str	w0, [x22, #24]
	ldr	w8, [x19]
	str	w8, [x22, #28]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	add	w8, w21, #8
	add	x20, x20, w8, sxtw #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	lsl	x21, x22, #2
	ldr	w0, [x8, x21]
	bl	_readl
	str	w0, [x20, x21]
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_6
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ETHTOOL_REGS_VER,4,2    ; @QLCNIC_ETHTOOL_REGS_VER
	.comm	_QLCNIC_DEV_INFO_SIZE,4,2       ; @QLCNIC_DEV_INFO_SIZE
	.comm	_QLCNIC_MGMT_API_VERSION,4,2    ; @QLCNIC_MGMT_API_VERSION
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.no_dead_strip	_qlcnic_get_regs
.subsections_via_symbols
