	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r15
	movq	48(%rax), %r14
	movq	%r12, %rdi
	callq	_qlcnic_get_regs_len
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_QLCNIC_ETHTOOL_REGS_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$24, %ecx
	movq	32(%r15), %rax
	movq	40(%r15), %rdx
	movl	(%rax), %esi
	shll	$16, %esi
	orl	%ecx, %esi
	orl	(%rdx), %esi
	movl	%esi, (%r13)
	movq	_QLCNIC_DEV_INFO_SIZE@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orl	$-889323520, %ecx               ## imm = 0xCAFE0000
	movl	%ecx, (%rbx)
	movq	_QLCNIC_MGMT_API_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_QLC_83XX_ESWITCH_CAPABILITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
## %bb.1:
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_2:
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	je	LBB0_4
## %bb.3:
	callq	_qlcnic_82xx_get_registers
	jmp	LBB0_5
LBB0_4:
	callq	_qlcnic_83xx_get_registers
LBB0_5:
	movl	%eax, %ebx
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$24, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$-1061461, (%rdx,%rax,4)        ## imm = 0xFFEFCDAB
	movl	(%r15), %ecx
	leal	2(%rax), %r12d
	movl	%ecx, 4(%rdx,%rax,4)
	cmpl	$0, (%r15)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.7:
	movslq	%r12d, %rax
	leaq	(%rdx,%rax,4), %rbx
	addq	$16, %rbx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_QLCNIC_TX_INTR_NOT_CONFIGURED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%rbx)
	incq	%r13
	movslq	(%r15), %rax
	addq	$32, %r14
	addq	$20, %rbx
	addl	$5, %r12d
	cmpq	%rax, %r13
	jge	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r15
	movq	24(%r15,%r14), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, -16(%rbx)
	movl	(%r15,%r14), %eax
	movl	%eax, -12(%rbx)
	movq	16(%r15,%r14), %rdi
	callq	_readl
	movl	%eax, -8(%rbx)
	movl	4(%r15,%r14), %eax
	movl	%eax, -4(%rbx)
	movq	8(%r15,%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_readl
	jmp	LBB0_11
LBB0_12:
	movl	4(%r15), %ecx
	movslq	%r12d, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
	cmpl	$0, 4(%r15)
	jle	LBB0_13
## %bb.14:
	leaq	(%rdx,%rax,4), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%r12), %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	(%r14,%r13), %rdi
	callq	_readl
	movslq	%r15d, %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movl	-8(%r14,%r13), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r15), %rax
	addq	$16, %r13
	addl	$2, %r12d
	cmpq	%rax, %rbx
	jl	LBB0_15
## %bb.16:
	leal	1(%r12), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_13:
	leal	1(%r12), %eax
LBB0_17:
	movl	8(%r15), %ecx
	cltq
	movl	%ecx, (%rdx,%rax,4)
	cmpl	$0, 8(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_20
## %bb.18:
	addl	$2, %r12d
	movslq	%r12d, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	movl	$8, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	movq	(%r15,%rbx,2), %rdi
	callq	_readl
	movl	%eax, -8(%r14,%rbx)
	movl	-16(%r15,%rbx,2), %eax
	movl	%eax, -4(%r14,%rbx)
	movq	-8(%r15,%rbx,2), %rdi
	callq	_readl
	movl	%eax, (%r14,%rbx)
	incq	%r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rax
	addq	$12, %rbx
	cmpq	%rax, %r12
	jl	LBB0_19
LBB0_20:
	addq	$40, %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	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ## @QLC_83XX_ESWITCH_CAPABILITY
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.comm	_QLCNIC_TX_INTR_NOT_CONFIGURED,4,2 ## @QLCNIC_TX_INTR_NOT_CONFIGURED
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0, #48]
	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	w9, [x8]
	ldp	x8, x10, [x19, #32]
	ldr	w11, [x8]
	lsl	w11, w11, #16
	orr	w9, w11, w9, lsl #24
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x21]
Lloh3:
	adrp	x9, _QLCNIC_DEV_INFO_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_DEV_INFO_SIZE@GOTPAGEOFF]
	ldrh	w9, [x9]
	mov	w10, #-889323520
	orr	w9, w9, w10
	str	w9, [x20]
Lloh5:
	adrp	x9, _QLCNIC_MGMT_API_VERSION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_MGMT_API_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x20, #4]
	ldr	w9, [x8, #4]
Lloh8:
	adrp	x10, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGE
Lloh9:
	ldr	x10, [x10, _QLC_83XX_ESWITCH_CAPABILITY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_82xx_get_registers
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_qlcnic_83xx_get_registers
LBB0_5:
	mov	x21, x0
Lloh11:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	w0, LBB0_18
; %bb.6:
	add	x8, x20, w21, sxtw #2
	mov	w9, #52651
	movk	w9, #65519, lsl #16
	str	w9, [x8]
	ldr	w9, [x19]
	add	w21, w21, #2
	str	w9, [x8, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x22, #0
	mov	x24, #0
	add	x8, x20, w21, sxtw #2
	add	x25, x8, #8
Lloh14:
	adrp	x26, _QLCNIC_TX_INTR_NOT_CONFIGURED@GOTPAGE
Lloh15:
	ldr	x26, [x26, _QLCNIC_TX_INTR_NOT_CONFIGURED@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x26]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	w0, [x25, #8]
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x22, x22, #32
	add	w21, w21, #5
	add	x25, x25, #20
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x27, x8, x22
	ldr	x8, [x27, #24]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	stur	w0, [x25, #-8]
	ldr	w8, [x27]
	stur	w8, [x25, #-4]
	ldr	x0, [x27, #16]
	bl	_readl
	str	w0, [x25]
	ldr	w8, [x27, #4]
	str	w8, [x25, #4]
	ldr	x0, [x27, #8]
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_readl
	b	LBB0_9
LBB0_12:
	ldr	w8, [x19, #4]
	str	w8, [x20, w21, sxtw #2]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x22, #0
	mov	x24, #0
	sxtw	x8, w21
	add	x8, x20, x8, lsl #2
	add	x25, x8, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	w26, w21, #1
	ldr	x8, [x23, #8]
	add	x27, x8, x22
	ldr	x0, [x27, #8]
	bl	_readl
	str	w0, [x20, w26, sxtw #2]
	ldr	w8, [x27]
	str	w8, [x25], #8
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	add	x22, x22, #16
	add	w21, w21, #2
	cmp	x24, x8
	b.lt	LBB0_14
LBB0_15:
	add	w8, w21, #1
	ldr	w9, [x19, #8]
	str	w9, [x20, w8, sxtw #2]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x22, #0
	mov	x24, #0
	add	w8, w21, #2
	add	x8, x20, w8, sxtw #2
	add	x20, x8, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x21, x8, x22
	ldr	x0, [x21, #16]
	bl	_readl
	stur	w0, [x20, #-4]
	ldr	w8, [x21]
	str	w8, [x20]
	ldr	x0, [x21, #8]
	bl	_readl
	str	w0, [x20, #4]
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	add	x22, x22, #24
	add	x20, x20, #12
	cmp	x24, x8
	b.lt	LBB0_17
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	_QLC_83XX_ESWITCH_CAPABILITY,4,2 ; @QLC_83XX_ESWITCH_CAPABILITY
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.comm	_QLCNIC_TX_INTR_NOT_CONFIGURED,4,2 ; @QLCNIC_TX_INTR_NOT_CONFIGURED
	.no_dead_strip	_qlcnic_get_regs
.subsections_via_symbols
