	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_7101_config_init
_bnx2x_7101_config_init:                ## @bnx2x_7101_config_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_MISC_REGISTERS_GPIO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	callq	_bnx2x_set_gpio
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_ext_phy_hw_reset
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_wait_reset_complete
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rax, %r13
	movq	_MDIO_PMA_LASI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_7107_LED_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %r8d
	callq	_bnx2x_cl45_write
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_bnx2x_ext_phy_set_pause
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_AN_REG_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	$512, %r8d                      ## imm = 0x200
	orl	-44(%rbp), %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_write
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_7101_VER1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_7101_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r15), %esi
	movl	-52(%rbp), %edx
	shll	$16, %edx
	orl	-48(%rbp), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	callq	_bnx2x_save_spirom_version
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting the SFX7101 LASI indication\n"

	.comm	_MISC_REGISTERS_GPIO_2,4,2      ## @MISC_REGISTERS_GPIO_2
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_HIGH,4,2 ## @MISC_REGISTERS_GPIO_OUTPUT_HIGH
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ## @MDIO_PMA_LASI_CTRL
L_.str.1:                               ## @.str.1
	.asciz	"Setting the SFX7101 LED to blink on traffic\n"

	.comm	_MDIO_PMA_REG_7107_LED_CNTL,4,2 ## @MDIO_PMA_REG_7107_LED_CNTL
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_CTRL,4,2           ## @MDIO_AN_REG_CTRL
	.comm	_MDIO_PMA_REG_7101_VER1,4,2     ## @MDIO_PMA_REG_7101_VER1
	.comm	_MDIO_PMA_REG_7101_VER2,4,2     ## @MDIO_PMA_REG_7101_VER2
	.no_dead_strip	_bnx2x_7101_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_7101_config_init
_bnx2x_7101_config_init:                ; @bnx2x_7101_config_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x24, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x8, _MISC_REGISTERS_GPIO_2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_bnx2x_set_gpio
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bnx2x_ext_phy_hw_reset
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_bnx2x_wait_reset_complete
Lloh10:
	adrp	x23, _MDIO_PMA_DEVAD@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh12:
	adrp	x8, _MDIO_PMA_LASI_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_PMA_LASI_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_bnx2x_cl45_write
	ldr	w0, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w2, [x23]
Lloh17:
	adrp	x8, _MDIO_PMA_REG_7107_LED_CNTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MDIO_PMA_REG_7107_LED_CNTL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #8
	bl	_bnx2x_cl45_write
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_bnx2x_ext_phy_set_pause
Lloh20:
	adrp	x22, _MDIO_AN_DEVAD@GOTPAGE
Lloh21:
	ldr	x22, [x22, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh22:
	adrp	x24, _MDIO_AN_REG_CTRL@GOTPAGE
Lloh23:
	ldr	x24, [x24, _MDIO_AN_REG_CTRL@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #4]
	orr	w4, w8, #0x200
	str	w4, [sp, #4]
	ldr	w2, [x22]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_cl45_write
	ldr	w2, [x23]
Lloh24:
	adrp	x8, _MDIO_PMA_REG_7101_VER1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_PMA_REG_7101_VER1@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
Lloh27:
	adrp	x8, _MDIO_PMA_REG_7101_VER2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_PMA_REG_7101_VER2@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w1, [x21]
	ldp	w9, w8, [sp, #8]
	orr	w2, w9, w8, lsl #16
	ldr	w3, [x20]
	mov	x0, x19
	bl	_bnx2x_save_spirom_version
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting the SFX7101 LASI indication\n"

	.comm	_MISC_REGISTERS_GPIO_2,4,2      ; @MISC_REGISTERS_GPIO_2
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_HIGH,4,2 ; @MISC_REGISTERS_GPIO_OUTPUT_HIGH
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ; @MDIO_PMA_LASI_CTRL
l_.str.1:                               ; @.str.1
	.asciz	"Setting the SFX7101 LED to blink on traffic\n"

	.comm	_MDIO_PMA_REG_7107_LED_CNTL,4,2 ; @MDIO_PMA_REG_7107_LED_CNTL
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_CTRL,4,2           ; @MDIO_AN_REG_CTRL
	.comm	_MDIO_PMA_REG_7101_VER1,4,2     ; @MDIO_PMA_REG_7101_VER1
	.comm	_MDIO_PMA_REG_7101_VER2,4,2     ; @MDIO_PMA_REG_7101_VER2
	.no_dead_strip	_bnx2x_7101_config_init
.subsections_via_symbols
