	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_54618se_config_loopback
_bnx2x_54618se_config_loopback:         ## @bnx2x_54618se_config_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %rbx
	cmpl	$0, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	_GRCBASE_UMAC0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GRCBASE_UMAC1@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r14
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$9, %edx
	movl	$6144, %ecx                     ## imm = 0x1800
	callq	_bnx2x_cl22_write
	leaq	-44(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_bnx2x_cl22_read
	movl	$-12609, %ecx                   ## imm = 0xCEBF
	andl	-44(%rbp), %ecx
	orl	$320, %ecx                      ## imm = 0x140
	movl	%ecx, -44(%rbp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_cl22_write
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	movl	$7, %ecx
	callq	_bnx2x_cl22_write
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	movq	%r13, %rcx
	callq	_bnx2x_cl22_read
	movl	$33792, %ecx                    ## imm = 0x8400
	orl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_bnx2x_cl22_write
	movq	_NIG_REG_EGRESS_EMAC0_PORT@GOTPCREL(%rip), %rax
	movslq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_UMAC_REG_MAXFR@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$10000, %edx                    ## imm = 0x2710
	callq	_REG_WR
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRCBASE_UMAC1,8,3              ## @GRCBASE_UMAC1
	.comm	_GRCBASE_UMAC0,8,3              ## @GRCBASE_UMAC0
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"2PMA/PMD ext_phy_loopback: 54618se\n"

	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ## @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_UMAC_REG_MAXFR,8,3             ## @UMAC_REG_MAXFR
	.no_dead_strip	_bnx2x_54618se_config_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_54618se_config_loopback
_bnx2x_54618se_config_loopback:         ; @bnx2x_54618se_config_loopback
	.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	x20, x1
	mov	x21, x0
	ldr	x19, [x1, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _GRCBASE_UMAC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRCBASE_UMAC1@GOTPAGEOFF]
Lloh2:
	adrp	x10, _GRCBASE_UMAC0@GOTPAGE
Lloh3:
	ldr	x10, [x10, _GRCBASE_UMAC0@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	x22, [x8]
Lloh4:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	x0, x19
	mov	x1, x21
	mov	w2, #9
	mov	w3, #6144
	bl	_bnx2x_cl22_write
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_bnx2x_cl22_read
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffffcfff
	mov	w9, #320
	orr	w3, w8, w9
	str	w3, [sp, #12]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_bnx2x_cl22_write
	mov	x0, x19
	mov	x1, x21
	mov	w2, #24
	mov	w3, #7
	bl	_bnx2x_cl22_write
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w2, #24
	bl	_bnx2x_cl22_read
	ldr	w8, [sp, #12]
	mov	w9, #33792
	orr	w3, w8, w9
	mov	x0, x19
	mov	x1, x21
	mov	w2, #24
	bl	_bnx2x_cl22_write
Lloh9:
	adrp	x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIG_REG_EGRESS_EMAC0_PORT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #1
	bl	_REG_WR
Lloh12:
	adrp	x8, _UMAC_REG_MAXFR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UMAC_REG_MAXFR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x19
	mov	w2, #10000
	bl	_REG_WR
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRCBASE_UMAC1,8,3              ; @GRCBASE_UMAC1
	.comm	_GRCBASE_UMAC0,8,3              ; @GRCBASE_UMAC0
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"2PMA/PMD ext_phy_loopback: 54618se\n"

	.comm	_NIG_REG_EGRESS_EMAC0_PORT,8,3  ; @NIG_REG_EGRESS_EMAC0_PORT
	.comm	_UMAC_REG_MAXFR,8,3             ; @UMAC_REG_MAXFR
	.no_dead_strip	_bnx2x_54618se_config_loopback
.subsections_via_symbols
