	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_xmac_loopback
_bnx2x_init_xmac_loopback:              ## @bnx2x_init_xmac_loopback
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	$1, (%rsi)
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	movq	%rax, 24(%r15)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_BNX2X_FLOW_CTRL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_MAC_TYPE_XMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_PHY_XGXS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_bnx2x_set_aer_mmd
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_warpcore_reset_lane
	movq	8(%rbx), %rax
	movq	_INT_PHY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	*(%rax,%rcx,8)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_bnx2x_xmac_enable
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
	movslq	(%rbx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WR                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_BNX2X_FLOW_CTRL_NONE,4,2       ## @BNX2X_FLOW_CTRL_NONE
	.comm	_MAC_TYPE_XMAC,4,2              ## @MAC_TYPE_XMAC
	.comm	_PHY_XGXS_FLAG,4,2              ## @PHY_XGXS_FLAG
	.comm	_INT_PHY,8,3                    ## @INT_PHY
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
	.no_dead_strip	_bnx2x_init_xmac_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_init_xmac_loopback
_bnx2x_init_xmac_loopback:              ; @bnx2x_init_xmac_loopback
	.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	x19, x1
	mov	x20, x0
	mov	w8, #1
	str	w8, [x1]
	ldp	x8, x21, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SPEED_10000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_10000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x1, #24]
Lloh3:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BNX2X_FLOW_CTRL_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2X_FLOW_CTRL_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #12]
Lloh9:
	adrp	x8, _MAC_TYPE_XMAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_TYPE_XMAC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PHY_XGXS_FLAG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_XGXS_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #4]
	ldr	x1, [x0, #8]
	bl	_bnx2x_set_aer_mmd
	ldr	x1, [x20, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_bnx2x_warpcore_reset_lane
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _INT_PHY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INT_PHY@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #3
	ldr	x8, [x0]
	mov	x1, x20
	blr	x8
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_bnx2x_xmac_enable
Lloh18:
	adrp	x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	w2, #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
	b	_REG_WR
	.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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_BNX2X_FLOW_CTRL_NONE,4,2       ; @BNX2X_FLOW_CTRL_NONE
	.comm	_MAC_TYPE_XMAC,4,2              ; @MAC_TYPE_XMAC
	.comm	_PHY_XGXS_FLAG,4,2              ; @PHY_XGXS_FLAG
	.comm	_INT_PHY,8,3                    ; @INT_PHY
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
	.no_dead_strip	_bnx2x_init_xmac_loopback
.subsections_via_symbols
