	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_lfa_reset                ## -- Begin function bnx2x_lfa_reset
	.p2align	4, 0x90
_bnx2x_lfa_reset:                       ## @bnx2x_lfa_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi)
	movq	_PHY_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rdi)
	cmpl	$0, 8(%rdi)
	je	LBB0_10
## %bb.1:
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %r15
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	%r14, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_bnx2x_set_bmac_rx
LBB0_3:
	movq	%r14, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_xmac_rxtx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_umac_rxtx
LBB0_5:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bnx2x_set_rx_filter
	movq	%r14, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_bnx2x_set_bmac_rx
LBB0_7:
	movq	%r14, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bnx2x_set_xmac_rxtx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bnx2x_set_umac_rxtx
LBB0_9:
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_link_reset               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INITIALIZED,4,2            ## @PHY_INITIALIZED
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_lfa_reset                ; -- Begin function bnx2x_lfa_reset
	.p2align	2
_bnx2x_lfa_reset:                       ; @bnx2x_lfa_reset
	.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, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _PHY_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INITIALIZED@GOTPAGEOFF]
	stp	xzr, xzr, [x1]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w9, [x0, #8]
	bic	w8, w9, w8
	str	w8, [x0, #12]
	cbz	w10, LBB0_10
; %bb.1:
Lloh3:
	adrp	x21, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #1
	bl	_REG_WR
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbnz	x0, LBB0_3
; %bb.2:
	ldp	w2, w1, [x20]
	mov	x0, x19
	mov	w3, #0
	bl	_bnx2x_set_bmac_rx
LBB0_3:
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_bnx2x_set_xmac_rxtx
	mov	x0, x20
	mov	w1, #0
	bl	_bnx2x_set_umac_rxtx
LBB0_5:
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	mov	x0, x20
	mov	w1, #0
	bl	_bnx2x_set_rx_filter
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbnz	x0, LBB0_7
; %bb.6:
	ldp	w2, w1, [x20]
	mov	x0, x19
	mov	w3, #1
	bl	_bnx2x_set_bmac_rx
LBB0_7:
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #1
	bl	_bnx2x_set_xmac_rxtx
	mov	x0, x20
	mov	w1, #1
	bl	_bnx2x_set_umac_rxtx
LBB0_9:
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WR
	mov	w0, #0
	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
LBB0_10:
	mov	x0, x20
	mov	w2, #1
	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
	b	_bnx2x_link_reset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INITIALIZED,4,2            ; @PHY_INITIALIZED
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
.subsections_via_symbols
