	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_init_xgxs_loopback
_bnx2x_init_xgxs_loopback:              ## @bnx2x_init_xgxs_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	32(%rdi), %rcx
	movq	40(%rdi), %r12
	movq	_INT_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, (%rsi)
	movq	_BNX2X_FLOW_CTRL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rsi)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.1:
	movq	_SPEED_20000@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_4
## %bb.2:
	movq	_FLAGS_WC_DUAL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_4:
	movq	%rcx, %rax
LBB0_5:
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	callq	_USES_WARPCORE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_bnx2x_xgxs_deassert
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_link_initialize
	movq	(%r15), %rax
	movq	(%rax), %r13
	movq	(%rbx), %rbx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_USES_WARPCORE
	movq	%r15, %rdi
	movq	%r14, %rsi
	cmpq	%rbx, %r13
	jne	LBB0_11
## %bb.8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	xorl	%edx, %edx
	callq	_bnx2x_umac_enable
	jmp	LBB0_14
LBB0_11:
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	callq	_bnx2x_xmac_enable
	jmp	LBB0_14
LBB0_10:
	callq	_bnx2x_emac_program
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_emac_enable
	jmp	LBB0_14
LBB0_13:
	movl	$1, %ecx
	callq	_bnx2x_bmac_enable
LBB0_14:
	movq	8(%r15), %rax
	movq	_LOOPBACK_XGXS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%rax,%rcx)
	jmp	LBB0_21
LBB0_16:
	movq	_EXT_PHY1@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	16(%r15), %rax
	cmpq	%rax, %r12
	jae	LBB0_21
## %bb.17:
	movq	%r12, %rbx
	shlq	$4, %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
	addq	$16, %rbx
	cmpq	%rax, %r12
	jae	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	movq	8(%rdi,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rcx
	movq	16(%r15), %rax
	jmp	LBB0_20
LBB0_21:
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
	movslq	24(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_LED_MODE_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_set_led                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_PHY,8,3                    ## @INT_PHY
	.comm	_BNX2X_FLOW_CTRL_NONE,4,2       ## @BNX2X_FLOW_CTRL_NONE
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_20000,8,3                ## @SPEED_20000
	.comm	_FLAGS_WC_DUAL_MODE,4,2         ## @FLAGS_WC_DUAL_MODE
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_LOOPBACK_XGXS,8,3              ## @LOOPBACK_XGXS
	.comm	_EXT_PHY1,8,3                   ## @EXT_PHY1
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_LED_MODE_OPER,4,2              ## @LED_MODE_OPER
	.no_dead_strip	_bnx2x_init_xgxs_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_xgxs_loopback
_bnx2x_init_xgxs_loopback:              ; @bnx2x_init_xgxs_loopback
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldp	x23, x21, [x0, #32]
Lloh0:
	adrp	x8, _INT_PHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_PHY@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x22, x23, x24, lsl #4
	mov	w8, #1
	str	w8, [x1]
Lloh3:
	adrp	x8, _BNX2X_FLOW_CTRL_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_FLOW_CTRL_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #16]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh9:
	adrp	x25, _SPEED_1000@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SPEED_1000@GOTPAGEOFF]
	ldr	x10, [x25]
	mov	x8, x9
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _SPEED_20000@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_20000@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x22]
Lloh14:
	adrp	x10, _FLAGS_WC_DUAL_MODE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FLAGS_WC_DUAL_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _SPEED_10000@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SPEED_10000@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	tst	w10, w9
	csel	x8, x11, x8, eq
LBB0_3:
	str	x8, [x19, #8]
	mov	x0, x21
	bl	_USES_WARPCORE
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_bnx2x_xgxs_deassert
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_link_initialize
	ldr	x8, [x20]
	ldr	x26, [x8]
	ldr	x25, [x25]
	mov	x0, x21
	bl	_USES_WARPCORE
	cmp	x26, x25
	b.ne	LBB0_8
; %bb.6:
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_umac_enable
	b	LBB0_12
LBB0_8:
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_xmac_enable
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_emac_program
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_emac_enable
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	mov	w3, #1
	bl	_bnx2x_bmac_enable
LBB0_12:
	ldr	x8, [x20, #8]
Lloh20:
	adrp	x9, _LOOPBACK_XGXS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LOOPBACK_XGXS@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	add	x8, x23, x24, lsl #4
	ldr	x8, [x8, #8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	b	LBB0_19
LBB0_14:
Lloh23:
	adrp	x8, _EXT_PHY1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXT_PHY1@GOTPAGEOFF]
Lloh25:
	ldr	x22, [x8]
	ldr	x8, [x20, #16]
	cmp	x22, x8
	b.hs	LBB0_19
; %bb.15:
	lsl	x23, x22, #4
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x22, #1
	add	x23, x23, #16
	cmp	x22, x8
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #32]
	add	x0, x9, x23
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x1, x20
	blr	x9
	ldr	x8, [x20, #16]
	b	LBB0_16
LBB0_19:
Lloh26:
	adrp	x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldrsw	x9, [x20, #24]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	w2, #0
	bl	_REG_WR
Lloh29:
	adrp	x8, _LED_MODE_OPER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LED_MODE_OPER@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_bnx2x_set_led
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_PHY,8,3                    ; @INT_PHY
	.comm	_BNX2X_FLOW_CTRL_NONE,4,2       ; @BNX2X_FLOW_CTRL_NONE
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_20000,8,3                ; @SPEED_20000
	.comm	_FLAGS_WC_DUAL_MODE,4,2         ; @FLAGS_WC_DUAL_MODE
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_LOOPBACK_XGXS,8,3              ; @LOOPBACK_XGXS
	.comm	_EXT_PHY1,8,3                   ; @EXT_PHY1
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_LED_MODE_OPER,4,2              ; @LED_MODE_OPER
	.no_dead_strip	_bnx2x_init_xgxs_loopback
.subsections_via_symbols
