	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_nic_get_regs
_netxen_nic_get_regs:                   ## @netxen_nic_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, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movslq	(%rax), %r15
	movq	_NETXEN_NIC_REGS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	32(%r13), %eax
	shll	$16, %eax
	movq	40(%r13), %rcx
	orl	(%rcx), %eax
	orl	$16777216, %eax                 ## imm = 0x1000000
	movl	%eax, (%r12)
	movq	8(%r13), %rax
	movq	_NETXEN_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_CRB_CMDPEG_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, (%r14)
	movq	_CRB_RCVPEG_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 4(%r14)
	movq	_CRB_FW_CAPABILITIES_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 8(%r14)
	movl	36(%r13), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
	movl	%eax, 12(%r14)
	movq	_NX_CRB_DEV_REF_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 16(%r14)
	movq	_NX_CRB_DEV_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 20(%r14)
	movq	_NETXEN_PEG_ALIVE_COUNTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 24(%r14)
	movq	_NETXEN_PEG_HALT_STATUS1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 28(%r14)
	movq	_NETXEN_PEG_HALT_STATUS2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 32(%r14)
	movq	_NETXEN_CRB_PEG_NET_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$60, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 36(%r14)
	movq	_NETXEN_CRB_PEG_NET_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$60, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 40(%r14)
	movq	_NETXEN_CRB_PEG_NET_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$60, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 44(%r14)
	movq	_NETXEN_CRB_PEG_NET_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$60, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 48(%r14)
	movl	32(%r13), %edi
	callq	_NX_IS_REVISION_P3
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_NETXEN_CRB_PEG_NET_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$60, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 52(%r14)
	movq	_CRB_XG_STATE_P3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 64(%r14)
	movq	24(%r13), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	jmp	LBB0_4
LBB0_3:
	movq	_NETXEN_NIU_XGE_CONFIG_0@GOTPCREL(%rip), %rax
	shlq	$16, %r15
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 56(%r14)
	movq	_NETXEN_NIU_XGE_CONFIG_1@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_NXRD32
	movl	%eax, 60(%r14)
	movq	_CRB_XG_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_NXRD32
	movl	%eax, 64(%r14)
	movq	24(%r13), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
LBB0_4:
	movl	%eax, 68(%r14)
	movq	24(%r13), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
	movl	%eax, 72(%r14)
	movq	56(%r13), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
	movl	%eax, 76(%r14)
	movq	56(%r13), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
	movl	%eax, 80(%r14)
	movl	16(%r13), %eax
	movl	%eax, 84(%r14)
	cmpl	$0, 16(%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_NXRDIO
	movl	%eax, 88(%r14,%rbx,4)
	incq	%rbx
	movslq	16(%r13), %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	_NETXEN_NIC_REGS_LEN,4,2        ## @NETXEN_NIC_REGS_LEN
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ## @NETXEN_ADAPTER_UP_MAGIC
	.comm	_CRB_CMDPEG_STATE,8,3           ## @CRB_CMDPEG_STATE
	.comm	_CRB_RCVPEG_STATE,8,3           ## @CRB_RCVPEG_STATE
	.comm	_CRB_FW_CAPABILITIES_1,8,3      ## @CRB_FW_CAPABILITIES_1
	.comm	_NX_CRB_DEV_REF_COUNT,8,3       ## @NX_CRB_DEV_REF_COUNT
	.comm	_NX_CRB_DEV_STATE,8,3           ## @NX_CRB_DEV_STATE
	.comm	_NETXEN_PEG_ALIVE_COUNTER,8,3   ## @NETXEN_PEG_ALIVE_COUNTER
	.comm	_NETXEN_PEG_HALT_STATUS1,8,3    ## @NETXEN_PEG_HALT_STATUS1
	.comm	_NETXEN_PEG_HALT_STATUS2,8,3    ## @NETXEN_PEG_HALT_STATUS2
	.comm	_NETXEN_CRB_PEG_NET_0,8,3       ## @NETXEN_CRB_PEG_NET_0
	.comm	_NETXEN_CRB_PEG_NET_1,8,3       ## @NETXEN_CRB_PEG_NET_1
	.comm	_NETXEN_CRB_PEG_NET_2,8,3       ## @NETXEN_CRB_PEG_NET_2
	.comm	_NETXEN_CRB_PEG_NET_3,8,3       ## @NETXEN_CRB_PEG_NET_3
	.comm	_NETXEN_CRB_PEG_NET_4,8,3       ## @NETXEN_CRB_PEG_NET_4
	.comm	_CRB_XG_STATE_P3,8,3            ## @CRB_XG_STATE_P3
	.comm	_NETXEN_NIU_XGE_CONFIG_0,8,3    ## @NETXEN_NIU_XGE_CONFIG_0
	.comm	_NETXEN_NIU_XGE_CONFIG_1,8,3    ## @NETXEN_NIU_XGE_CONFIG_1
	.comm	_CRB_XG_STATE,8,3               ## @CRB_XG_STATE
	.no_dead_strip	_netxen_nic_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_nic_get_regs
_netxen_nic_get_regs:                   ; @netxen_nic_get_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldrsw	x22, [x0]
Lloh0:
	adrp	x8, _NETXEN_NIC_REGS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETXEN_NIC_REGS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19, #32]
	ldr	x9, [x19, #40]
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #16
	orr	w8, w8, #0x1000000
	str	w8, [x21]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _CRB_CMDPEG_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRB_CMDPEG_STATE@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20]
Lloh9:
	adrp	x8, _CRB_RCVPEG_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRB_RCVPEG_STATE@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #4]
Lloh12:
	adrp	x8, _CRB_FW_CAPABILITIES_1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CRB_FW_CAPABILITIES_1@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #8]
	ldr	w1, [x19, #36]
	mov	x0, x19
	bl	_NXRDIO
	str	w0, [x20, #12]
Lloh15:
	adrp	x8, _NX_CRB_DEV_REF_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NX_CRB_DEV_REF_COUNT@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #16]
Lloh18:
	adrp	x8, _NX_CRB_DEV_STATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NX_CRB_DEV_STATE@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #20]
Lloh21:
	adrp	x8, _NETXEN_PEG_ALIVE_COUNTER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NETXEN_PEG_ALIVE_COUNTER@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #24]
Lloh24:
	adrp	x8, _NETXEN_PEG_HALT_STATUS1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NETXEN_PEG_HALT_STATUS1@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #28]
Lloh27:
	adrp	x8, _NETXEN_PEG_HALT_STATUS2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NETXEN_PEG_HALT_STATUS2@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #32]
Lloh30:
	adrp	x8, _NETXEN_CRB_PEG_NET_0@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NETXEN_CRB_PEG_NET_0@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	add	x1, x8, #60
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #36]
Lloh33:
	adrp	x8, _NETXEN_CRB_PEG_NET_1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NETXEN_CRB_PEG_NET_1@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, #60
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #40]
Lloh36:
	adrp	x8, _NETXEN_CRB_PEG_NET_2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NETXEN_CRB_PEG_NET_2@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x1, x8, #60
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #44]
Lloh39:
	adrp	x8, _NETXEN_CRB_PEG_NET_3@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NETXEN_CRB_PEG_NET_3@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	add	x1, x8, #60
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #48]
	ldr	w0, [x19, #32]
	bl	_NX_IS_REVISION_P3
	cbz	x0, LBB0_3
; %bb.2:
Lloh42:
	adrp	x8, _NETXEN_CRB_PEG_NET_4@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NETXEN_CRB_PEG_NET_4@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	add	x1, x8, #60
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #52]
Lloh45:
	adrp	x8, _CRB_XG_STATE_P3@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CRB_XG_STATE_P3@GOTPAGEOFF]
Lloh47:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #64]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	b	LBB0_4
LBB0_3:
Lloh48:
	adrp	x8, _NETXEN_NIU_XGE_CONFIG_0@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NETXEN_NIU_XGE_CONFIG_0@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	lsl	x21, x22, #16
	add	x1, x8, x21
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #56]
Lloh51:
	adrp	x8, _NETXEN_NIU_XGE_CONFIG_1@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NETXEN_NIU_XGE_CONFIG_1@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #60]
Lloh54:
	adrp	x8, _CRB_XG_STATE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _CRB_XG_STATE@GOTPAGEOFF]
Lloh56:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_NXRD32
	str	w0, [x20, #64]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_NXRDIO
LBB0_4:
	str	w0, [x20, #68]
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRDIO
	str	w0, [x20, #72]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_NXRDIO
	str	w0, [x20, #76]
	ldr	x8, [x19, #56]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_NXRDIO
	str	w0, [x20, #80]
	ldr	w8, [x19, #16]
	str	w8, [x20, #84]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	add	x20, x20, #88
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	lsl	x22, x21, #2
	ldr	w1, [x8, x22]
	mov	x0, x19
	bl	_NXRDIO
	str	w0, [x20, x22]
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_NIC_REGS_LEN,4,2        ; @NETXEN_NIC_REGS_LEN
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ; @NETXEN_ADAPTER_UP_MAGIC
	.comm	_CRB_CMDPEG_STATE,8,3           ; @CRB_CMDPEG_STATE
	.comm	_CRB_RCVPEG_STATE,8,3           ; @CRB_RCVPEG_STATE
	.comm	_CRB_FW_CAPABILITIES_1,8,3      ; @CRB_FW_CAPABILITIES_1
	.comm	_NX_CRB_DEV_REF_COUNT,8,3       ; @NX_CRB_DEV_REF_COUNT
	.comm	_NX_CRB_DEV_STATE,8,3           ; @NX_CRB_DEV_STATE
	.comm	_NETXEN_PEG_ALIVE_COUNTER,8,3   ; @NETXEN_PEG_ALIVE_COUNTER
	.comm	_NETXEN_PEG_HALT_STATUS1,8,3    ; @NETXEN_PEG_HALT_STATUS1
	.comm	_NETXEN_PEG_HALT_STATUS2,8,3    ; @NETXEN_PEG_HALT_STATUS2
	.comm	_NETXEN_CRB_PEG_NET_0,8,3       ; @NETXEN_CRB_PEG_NET_0
	.comm	_NETXEN_CRB_PEG_NET_1,8,3       ; @NETXEN_CRB_PEG_NET_1
	.comm	_NETXEN_CRB_PEG_NET_2,8,3       ; @NETXEN_CRB_PEG_NET_2
	.comm	_NETXEN_CRB_PEG_NET_3,8,3       ; @NETXEN_CRB_PEG_NET_3
	.comm	_NETXEN_CRB_PEG_NET_4,8,3       ; @NETXEN_CRB_PEG_NET_4
	.comm	_CRB_XG_STATE_P3,8,3            ; @CRB_XG_STATE_P3
	.comm	_NETXEN_NIU_XGE_CONFIG_0,8,3    ; @NETXEN_NIU_XGE_CONFIG_0
	.comm	_NETXEN_NIU_XGE_CONFIG_1,8,3    ; @NETXEN_NIU_XGE_CONFIG_1
	.comm	_CRB_XG_STATE,8,3               ; @CRB_XG_STATE
	.no_dead_strip	_netxen_nic_get_regs
.subsections_via_symbols
