	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_init_hw
_nic_init_hw:                           ## @nic_init_hw
	.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	_NIC_PF_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
	callq	_nic_reg_write
	movq	_NIC_PF_BP_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$67, %edx
	callq	_nic_reg_write
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	_PCI_SUBSYS_DEVID_88XX_NIC_PF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.10:
	movq	_NIC_PF_INTF_0_1_SEND_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_NIC_TNS_BYPASS_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	shll	$7, %edx
	movq	_BGX0_BLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$65536, %edx                    ## imm = 0x10000
	movq	%r12, %rdi
	callq	_nic_reg_write
	movl	$256, %esi                      ## imm = 0x100
	orl	(%r14), %esi
	movl	(%rbx), %edx
	shll	$7, %edx
	movq	_BGX1_BLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$65536, %edx                    ## imm = 0x10000
	movq	%r12, %rdi
	callq	_nic_reg_write
	jmp	LBB0_4
LBB0_1:
	movq	40(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	movq	_NIC_PF_INTFX_SEND_CFG@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	orl	%r15d, %esi
	movq	%r12, %rdi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nic_reg_write
	incl	%ebx
	movq	40(%r12), %rax
	addl	$8, %r15d
	cmpl	(%rax), %ebx
	jl	LBB0_3
LBB0_4:
	movq	_NIC_PF_INTF_0_1_BP_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_BGX0_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_nic_reg_write
	movl	$256, %esi                      ## imm = 0x100
	addl	(%rbx), %esi
	movq	_BGX1_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_nic_reg_write
	movq	$0, 32(%r12)
	movq	_NIC_HW_MAX_FRS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	(%rcx), %rax
	addq	%rdx, %rax
	addq	$4, %rax
	movq	%rax, 24(%r12)
	movl	$1, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	_NIC_MAX_PKIND@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.5:
	movq	_NIC_PF_PKIND_0_15_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %r13d
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_nic_reg_write
	cmpl	$2, (%r14)
	jl	LBB0_8
## %bb.6:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	(%r15), %esi
	orl	%ebx, %esi
	movq	%r12, %rdi
	callq	_nic_reg_write
	incl	%r13d
	addl	$8, %ebx
	cmpl	(%r14), %r13d
	jl	LBB0_7
LBB0_8:
	movq	_NIC_HW_MIN_FRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_nic_set_tx_pkt_pad
	movq	_NIC_PF_INTR_TIMER_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NICPF_CLK_PER_INT_TICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_nic_reg_write
	movq	_NIC_PF_RX_ETYPE_0_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETYPE_ALG_VLAN_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$16, %edx
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	$1048576, %edx                  ## imm = 0x100000
	movq	%r12, %rdi
	callq	_nic_reg_write
	movq	_NIC_PF_CQM_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_nic_reg_read
	movq	_NICPF_CQM_MIN_DROP_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_9
## %bb.11:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nic_reg_write                  ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_PF_CFG,4,2                 ## @NIC_PF_CFG
	.comm	_NIC_PF_BP_CFG,4,2              ## @NIC_PF_BP_CFG
	.comm	_PCI_SUBSYS_DEVID_88XX_NIC_PF,8,3 ## @PCI_SUBSYS_DEVID_88XX_NIC_PF
	.comm	_NIC_PF_INTF_0_1_SEND_CFG,4,2   ## @NIC_PF_INTF_0_1_SEND_CFG
	.comm	_NIC_TNS_BYPASS_MODE,4,2        ## @NIC_TNS_BYPASS_MODE
	.comm	_BGX0_BLOCK,4,2                 ## @BGX0_BLOCK
	.comm	_BGX1_BLOCK,4,2                 ## @BGX1_BLOCK
	.comm	_NIC_PF_INTFX_SEND_CFG,4,2      ## @NIC_PF_INTFX_SEND_CFG
	.comm	_NIC_PF_INTF_0_1_BP_CFG,4,2     ## @NIC_PF_INTF_0_1_BP_CFG
	.comm	_NIC_HW_MAX_FRS,8,3             ## @NIC_HW_MAX_FRS
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.comm	_NIC_MAX_PKIND,4,2              ## @NIC_MAX_PKIND
	.comm	_NIC_PF_PKIND_0_15_CFG,4,2      ## @NIC_PF_PKIND_0_15_CFG
	.comm	_NIC_HW_MIN_FRS,4,2             ## @NIC_HW_MIN_FRS
	.comm	_NIC_PF_INTR_TIMER_CFG,4,2      ## @NIC_PF_INTR_TIMER_CFG
	.comm	_NICPF_CLK_PER_INT_TICK,4,2     ## @NICPF_CLK_PER_INT_TICK
	.comm	_NIC_PF_RX_ETYPE_0_7,4,2        ## @NIC_PF_RX_ETYPE_0_7
	.comm	_ETYPE_ALG_VLAN_STRIP,4,2       ## @ETYPE_ALG_VLAN_STRIP
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_NIC_PF_CQM_CFG,4,2             ## @NIC_PF_CQM_CFG
	.comm	_NICPF_CQM_MIN_DROP_LEVEL,4,2   ## @NICPF_CQM_MIN_DROP_LEVEL
	.no_dead_strip	_nic_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_init_hw
_nic_init_hw:                           ; @nic_init_hw
	.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	x19, x0
Lloh0:
	adrp	x8, _NIC_PF_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_PF_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #3
	bl	_nic_reg_write
Lloh3:
	adrp	x8, _NIC_PF_BP_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIC_PF_BP_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #67
	bl	_nic_reg_write
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PCI_SUBSYS_DEVID_88XX_NIC_PF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_SUBSYS_DEVID_88XX_NIC_PF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x21, _BGX0_BLOCK@GOTPAGE
Lloh10:
	ldr	x21, [x21, _BGX0_BLOCK@GOTPAGEOFF]
Lloh11:
	adrp	x20, _BGX1_BLOCK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _BGX1_BLOCK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh13:
	adrp	x22, _NIC_PF_INTF_0_1_SEND_CFG@GOTPAGE
Lloh14:
	ldr	x22, [x22, _NIC_PF_INTF_0_1_SEND_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh15:
	adrp	x23, _NIC_TNS_BYPASS_MODE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _NIC_TNS_BYPASS_MODE@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w9, [x21]
	orr	w8, w9, w8, lsl #7
	orr	w2, w8, #0x10000
	mov	x0, x19
	bl	_nic_reg_write
	ldr	w8, [x22]
	orr	w1, w8, #0x100
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8, lsl #7
	orr	w2, w8, #0x10000
	mov	x0, x19
	bl	_nic_reg_write
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w22, #0
	mov	w23, #0
Lloh17:
	adrp	x24, _NIC_PF_INTFX_SEND_CFG@GOTPAGE
Lloh18:
	ldr	x24, [x24, _NIC_PF_INTFX_SEND_CFG@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	orr	w1, w8, w22
	mov	x0, x19
	mov	w2, #65536
	bl	_nic_reg_write
	add	w23, w23, #1
	ldr	x8, [x19, #40]
	ldr	w8, [x8]
	add	w22, w22, #8
	cmp	w23, w8
	b.lt	LBB0_4
LBB0_5:
Lloh19:
	adrp	x22, _NIC_PF_INTF_0_1_BP_CFG@GOTPAGE
Lloh20:
	ldr	x22, [x22, _NIC_PF_INTF_0_1_BP_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_nic_reg_write
	ldr	w8, [x22]
	add	w1, w8, #256
	ldr	w2, [x20]
	mov	x0, x19
	bl	_nic_reg_write
Lloh21:
	adrp	x8, _NIC_HW_MAX_FRS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NIC_HW_MAX_FRS@GOTPAGEOFF]
Lloh23:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	add	x8, x8, x9
	add	x8, x8, x10
	add	x8, x8, #4
	stp	x8, xzr, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
Lloh30:
	adrp	x20, _NIC_MAX_PKIND@GOTPAGE
Lloh31:
	ldr	x20, [x20, _NIC_MAX_PKIND@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
Lloh32:
	adrp	x21, _NIC_PF_PKIND_0_15_CFG@GOTPAGE
Lloh33:
	ldr	x21, [x21, _NIC_PF_PKIND_0_15_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_nic_reg_write
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.7:
	mov	w22, #1
	mov	w23, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	ldr	w8, [x21]
	orr	w1, w8, w23
	mov	x0, x19
	bl	_nic_reg_write
	add	w22, w22, #1
	ldr	w8, [x20]
	add	w23, w23, #8
	cmp	w22, w8
	b.lt	LBB0_8
LBB0_9:
Lloh34:
	adrp	x8, _NIC_HW_MIN_FRS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NIC_HW_MIN_FRS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nic_set_tx_pkt_pad
Lloh37:
	adrp	x8, _NIC_PF_INTR_TIMER_CFG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NIC_PF_INTR_TIMER_CFG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _NICPF_CLK_PER_INT_TICK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NICPF_CLK_PER_INT_TICK@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nic_reg_write
Lloh43:
	adrp	x8, _NIC_PF_RX_ETYPE_0_7@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NIC_PF_RX_ETYPE_0_7@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _ETYPE_ALG_VLAN_STRIP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ETYPE_ALG_VLAN_STRIP@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _ETH_P_8021Q@GOTPAGE
Lloh50:
	ldr	x9, [x9, _ETH_P_8021Q@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #16
	orr	w2, w8, #0x100000
	mov	x0, x19
	bl	_nic_reg_write
Lloh52:
	adrp	x20, _NIC_PF_CQM_CFG@GOTPAGE
Lloh53:
	ldr	x20, [x20, _NIC_PF_CQM_CFG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nic_reg_read
Lloh54:
	adrp	x8, _NICPF_CQM_MIN_DROP_LEVEL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NICPF_CQM_MIN_DROP_LEVEL@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	cmp	w0, w2
	b.ge	LBB0_11
; %bb.10:
	ldr	w1, [x20]
	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
	b	_nic_reg_write
LBB0_11:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_PF_CFG,4,2                 ; @NIC_PF_CFG
	.comm	_NIC_PF_BP_CFG,4,2              ; @NIC_PF_BP_CFG
	.comm	_PCI_SUBSYS_DEVID_88XX_NIC_PF,8,3 ; @PCI_SUBSYS_DEVID_88XX_NIC_PF
	.comm	_NIC_PF_INTF_0_1_SEND_CFG,4,2   ; @NIC_PF_INTF_0_1_SEND_CFG
	.comm	_NIC_TNS_BYPASS_MODE,4,2        ; @NIC_TNS_BYPASS_MODE
	.comm	_BGX0_BLOCK,4,2                 ; @BGX0_BLOCK
	.comm	_BGX1_BLOCK,4,2                 ; @BGX1_BLOCK
	.comm	_NIC_PF_INTFX_SEND_CFG,4,2      ; @NIC_PF_INTFX_SEND_CFG
	.comm	_NIC_PF_INTF_0_1_BP_CFG,4,2     ; @NIC_PF_INTF_0_1_BP_CFG
	.comm	_NIC_HW_MAX_FRS,8,3             ; @NIC_HW_MAX_FRS
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.comm	_NIC_MAX_PKIND,4,2              ; @NIC_MAX_PKIND
	.comm	_NIC_PF_PKIND_0_15_CFG,4,2      ; @NIC_PF_PKIND_0_15_CFG
	.comm	_NIC_HW_MIN_FRS,4,2             ; @NIC_HW_MIN_FRS
	.comm	_NIC_PF_INTR_TIMER_CFG,4,2      ; @NIC_PF_INTR_TIMER_CFG
	.comm	_NICPF_CLK_PER_INT_TICK,4,2     ; @NICPF_CLK_PER_INT_TICK
	.comm	_NIC_PF_RX_ETYPE_0_7,4,2        ; @NIC_PF_RX_ETYPE_0_7
	.comm	_ETYPE_ALG_VLAN_STRIP,4,2       ; @ETYPE_ALG_VLAN_STRIP
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_NIC_PF_CQM_CFG,4,2             ; @NIC_PF_CQM_CFG
	.comm	_NICPF_CQM_MIN_DROP_LEVEL,4,2   ; @NICPF_CQM_MIN_DROP_LEVEL
	.no_dead_strip	_nic_init_hw
.subsections_via_symbols
