	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_init_nic
_falcon_init_nic:                       ## @falcon_init_nic
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_FR_AB_NIC_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_ef4_reado
	movl	-36(%rbp), %edi
	movq	_FRF_AB_ONCHIP_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movq	%r12, %rdi
	callq	_falcon_reset_sram
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r12, %rdi
	callq	_EF4_WORKAROUND_5129
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_FR_AZ_CSR_SPARE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-36(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_reado
	movl	-36(%rbp), %edi
	movq	_FRF_AB_MEM_PERR_EN_TX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
LBB0_3:
	movq	%r12, %rdi
	callq	_EF4_WORKAROUND_7244
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FR_BZ_RX_FILTER_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-36(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ef4_reado
	movl	-36(%rbp), %edi
	movq	_FRF_BZ_UDP_FULL_SRCH_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-36(%rbp), %edi
	movq	_FRF_BZ_UDP_WILD_SRCH_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-36(%rbp), %edi
	movq	_FRF_BZ_TCP_FULL_SRCH_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-36(%rbp), %edi
	movq	_FRF_BZ_TCP_WILD_SRCH_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ef4_writeo
LBB0_5:
	movq	_FR_AA_RX_SELF_RST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ef4_reado
	movl	-36(%rbp), %edi
	movq	_FRF_AA_RX_NODESC_WAIT_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	-36(%rbp), %edi
	movq	_FRF_AA_RX_SELF_RST_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_EF4_SET_OWORD_FIELD
	movq	%r12, %rdi
	callq	_EF4_WORKAROUND_5583
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-36(%rbp), %edi
	movq	_FRF_AA_RX_ISCSI_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_EF4_SET_OWORD_FIELD
LBB0_7:
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movq	_FR_AZ_TX_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_reado
	movl	-36(%rbp), %edi
	movq	_FRF_AZ_TX_NO_EOP_DISC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_EF4_SET_OWORD_FIELD
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movq	%r12, %rdi
	callq	_falcon_init_rx_cfg
	movq	%r12, %rdi
	callq	_ef4_nic_rev
	movq	_EF4_REV_FALCON_B0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:
	movl	(%r12), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_falcon_b0_rx_push_rss_config
	movl	-36(%rbp), %edi
	movq	_FRF_BZ_FLS_EVQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_EF4_POPULATE_OWORD_1
	movq	_FR_BZ_DP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ef4_writeo
LBB0_9:
	movq	%r12, %rdi
	callq	_ef4_farch_init_common
LBB0_10:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FR_AB_NIC_STAT,4,2             ## @FR_AB_NIC_STAT
	.comm	_FRF_AB_ONCHIP_SRAM,4,2         ## @FRF_AB_ONCHIP_SRAM
	.comm	_FR_AZ_CSR_SPARE,4,2            ## @FR_AZ_CSR_SPARE
	.comm	_FRF_AB_MEM_PERR_EN_TX_DATA,4,2 ## @FRF_AB_MEM_PERR_EN_TX_DATA
	.comm	_FR_BZ_RX_FILTER_CTL,4,2        ## @FR_BZ_RX_FILTER_CTL
	.comm	_FRF_BZ_UDP_FULL_SRCH_LIMIT,4,2 ## @FRF_BZ_UDP_FULL_SRCH_LIMIT
	.comm	_FRF_BZ_UDP_WILD_SRCH_LIMIT,4,2 ## @FRF_BZ_UDP_WILD_SRCH_LIMIT
	.comm	_FRF_BZ_TCP_FULL_SRCH_LIMIT,4,2 ## @FRF_BZ_TCP_FULL_SRCH_LIMIT
	.comm	_FRF_BZ_TCP_WILD_SRCH_LIMIT,4,2 ## @FRF_BZ_TCP_WILD_SRCH_LIMIT
	.comm	_FR_AA_RX_SELF_RST,4,2          ## @FR_AA_RX_SELF_RST
	.comm	_FRF_AA_RX_NODESC_WAIT_DIS,4,2  ## @FRF_AA_RX_NODESC_WAIT_DIS
	.comm	_FRF_AA_RX_SELF_RST_EN,4,2      ## @FRF_AA_RX_SELF_RST_EN
	.comm	_FRF_AA_RX_ISCSI_DIS,4,2        ## @FRF_AA_RX_ISCSI_DIS
	.comm	_FR_AZ_TX_CFG,4,2               ## @FR_AZ_TX_CFG
	.comm	_FRF_AZ_TX_NO_EOP_DISC_EN,4,2   ## @FRF_AZ_TX_NO_EOP_DISC_EN
	.comm	_EF4_REV_FALCON_B0,8,3          ## @EF4_REV_FALCON_B0
	.comm	_FRF_BZ_FLS_EVQ_ID,4,2          ## @FRF_BZ_FLS_EVQ_ID
	.comm	_FR_BZ_DP_CTRL,4,2              ## @FR_BZ_DP_CTRL
	.no_dead_strip	_falcon_init_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_init_nic
_falcon_init_nic:                       ; @falcon_init_nic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _FR_AB_NIC_STAT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FR_AB_NIC_STAT@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x1, sp, #12
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh2:
	adrp	x8, _FRF_AB_ONCHIP_SRAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FRF_AB_ONCHIP_SRAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x20]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	mov	x0, x19
	bl	_falcon_reset_sram
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_EF4_WORKAROUND_5129
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x21, _FR_AZ_CSR_SPARE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FR_AZ_CSR_SPARE@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh7:
	adrp	x8, _FRF_AB_MEM_PERR_EN_TX_DATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FRF_AB_MEM_PERR_EN_TX_DATA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
LBB0_3:
	mov	x0, x19
	bl	_EF4_WORKAROUND_7244
	cbz	x0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x21, _FR_BZ_RX_FILTER_CTL@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FR_BZ_RX_FILTER_CTL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh12:
	adrp	x8, _FRF_BZ_UDP_FULL_SRCH_LIMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FRF_BZ_UDP_FULL_SRCH_LIMIT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh15:
	adrp	x8, _FRF_BZ_UDP_WILD_SRCH_LIMIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FRF_BZ_UDP_WILD_SRCH_LIMIT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh18:
	adrp	x8, _FRF_BZ_TCP_FULL_SRCH_LIMIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FRF_BZ_TCP_FULL_SRCH_LIMIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh21:
	adrp	x8, _FRF_BZ_TCP_WILD_SRCH_LIMIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FRF_BZ_TCP_WILD_SRCH_LIMIT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
LBB0_5:
Lloh24:
	adrp	x21, _FR_AA_RX_SELF_RST@GOTPAGE
Lloh25:
	ldr	x21, [x21, _FR_AA_RX_SELF_RST@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh26:
	adrp	x8, _FRF_AA_RX_NODESC_WAIT_DIS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FRF_AA_RX_NODESC_WAIT_DIS@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_EF4_SET_OWORD_FIELD
	ldr	w0, [sp, #12]
Lloh29:
	adrp	x8, _FRF_AA_RX_SELF_RST_EN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FRF_AA_RX_SELF_RST_EN@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_EF4_SET_OWORD_FIELD
	mov	x0, x19
	bl	_EF4_WORKAROUND_5583
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [sp, #12]
Lloh32:
	adrp	x8, _FRF_AA_RX_ISCSI_DIS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FRF_AA_RX_ISCSI_DIS@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_EF4_SET_OWORD_FIELD
LBB0_7:
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
Lloh35:
	adrp	x21, _FR_AZ_TX_CFG@GOTPAGE
Lloh36:
	ldr	x21, [x21, _FR_AZ_TX_CFG@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh37:
	adrp	x8, _FRF_AZ_TX_NO_EOP_DISC_EN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FRF_AZ_TX_NO_EOP_DISC_EN@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_EF4_SET_OWORD_FIELD
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
	mov	x0, x19
	bl	_falcon_init_rx_cfg
	mov	x0, x19
	bl	_ef4_nic_rev
Lloh40:
	adrp	x8, _EF4_REV_FALCON_B0@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EF4_REV_FALCON_B0@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_9
; %bb.8:
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_falcon_b0_rx_push_rss_config
	ldr	w0, [sp, #12]
Lloh43:
	adrp	x8, _FRF_BZ_FLS_EVQ_ID@GOTPAGE
Lloh44:
	ldr	x8, [x8, _FRF_BZ_FLS_EVQ_ID@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_EF4_POPULATE_OWORD_1
Lloh46:
	adrp	x8, _FR_BZ_DP_CTRL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _FR_BZ_DP_CTRL@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ef4_writeo
LBB0_9:
	mov	x0, x19
	bl	_ef4_farch_init_common
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_FR_AB_NIC_STAT,4,2             ; @FR_AB_NIC_STAT
	.comm	_FRF_AB_ONCHIP_SRAM,4,2         ; @FRF_AB_ONCHIP_SRAM
	.comm	_FR_AZ_CSR_SPARE,4,2            ; @FR_AZ_CSR_SPARE
	.comm	_FRF_AB_MEM_PERR_EN_TX_DATA,4,2 ; @FRF_AB_MEM_PERR_EN_TX_DATA
	.comm	_FR_BZ_RX_FILTER_CTL,4,2        ; @FR_BZ_RX_FILTER_CTL
	.comm	_FRF_BZ_UDP_FULL_SRCH_LIMIT,4,2 ; @FRF_BZ_UDP_FULL_SRCH_LIMIT
	.comm	_FRF_BZ_UDP_WILD_SRCH_LIMIT,4,2 ; @FRF_BZ_UDP_WILD_SRCH_LIMIT
	.comm	_FRF_BZ_TCP_FULL_SRCH_LIMIT,4,2 ; @FRF_BZ_TCP_FULL_SRCH_LIMIT
	.comm	_FRF_BZ_TCP_WILD_SRCH_LIMIT,4,2 ; @FRF_BZ_TCP_WILD_SRCH_LIMIT
	.comm	_FR_AA_RX_SELF_RST,4,2          ; @FR_AA_RX_SELF_RST
	.comm	_FRF_AA_RX_NODESC_WAIT_DIS,4,2  ; @FRF_AA_RX_NODESC_WAIT_DIS
	.comm	_FRF_AA_RX_SELF_RST_EN,4,2      ; @FRF_AA_RX_SELF_RST_EN
	.comm	_FRF_AA_RX_ISCSI_DIS,4,2        ; @FRF_AA_RX_ISCSI_DIS
	.comm	_FR_AZ_TX_CFG,4,2               ; @FR_AZ_TX_CFG
	.comm	_FRF_AZ_TX_NO_EOP_DISC_EN,4,2   ; @FRF_AZ_TX_NO_EOP_DISC_EN
	.comm	_EF4_REV_FALCON_B0,8,3          ; @EF4_REV_FALCON_B0
	.comm	_FRF_BZ_FLS_EVQ_ID,4,2          ; @FRF_BZ_FLS_EVQ_ID
	.comm	_FR_BZ_DP_CTRL,4,2              ; @FR_BZ_DP_CTRL
	.no_dead_strip	_falcon_init_nic
.subsections_via_symbols
