	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8073_common_init_phy
_bnx2x_8073_common_init_phy:            ## @bnx2x_8073_common_init_phy
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PORT_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_NIG_REG_PORT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	movq	%rax, %rbx
	movq	_NIG_REG_STRAP_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_RD
	testq	%rbx, %rbx
	setne	%cl
	testq	%rax, %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_bnx2x_ext_phy_hw_reset
	movslq	(%r14), %r12
	movq	_PORT_0@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r12d
	jle	LBB0_4
## %bb.1:
	leal	-1(%r12), %r15d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %r14
	addq	$-4, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r12
	movq	%r13, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	movl	%r15d, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movl	$0, %eax
	cmoveq	%r12, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rax,8), %rdx
	movq	%r13, %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %r8d
	movq	%r14, %r9
	callq	_bnx2x_populate_phy
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	shll	$2, %ebx
	movslq	%ebx, %rsi
	movq	_NIG_REG_MASK_INTERRUPT_PORT0@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_NIG_MASK_XGXS0_LINK10G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NIG_MASK_XGXS0_LINK_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NIG_MASK_SERDES0_LINK_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_NIG_MASK_MI_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bnx2x_bits_dis
	movq	_MISC_REGISTERS_GPIO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_bnx2x_set_gpio
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$32768, %r8d                    ## imm = 0x8000
	callq	_bnx2x_cl45_write
	movq	_PORT_0@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	decl	%r15d
	addq	$-4, %r14
	cmpq	%rax, %r12
	jg	LBB0_2
LBB0_4:
	movl	$150, %edi
	callq	_msleep
	movslq	(%rbx), %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rcx
	testb	$1, (%rsi,%rax,4)
	jne	LBB0_6
## %bb.5:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rcx, (%rbx,%rax,8)
	movq	_PORT_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%rsi,%rdx,4), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_PORT_1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rsi,%rdx,4), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, (%rbx,%rax,8)
LBB0_7:
	movq	%rcx, (%rbx,%rdx,8)
	movq	_PORT_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r14
	cmpl	%eax, %r14d
	jle	LBB0_11
## %bb.8:
	leal	-1(%r14), %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	movl	%r15d, %r12d
	movl	$0, %eax
	cmovel	%eax, %r12d
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-8(%rbx,%r14,8), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_bnx2x_8073_8727_external_rom_boot
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decq	%r14
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_TX_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_TX_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %r8d
	movl	$1024, %eax                     ## imm = 0x400
	orl	%eax, %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
	movq	_PORT_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decl	%r15d
	cmpq	%rax, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_9
LBB0_11:
	movl	$600, %edi                      ## imm = 0x258
	callq	_msleep
	movq	_PORT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	xorl	%ebx, %ebx
	movq	_PORT_0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_18
## %bb.12:
	leal	-1(%r14), %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-8(%rax,%r14,8), %rbx
	decq	%r14
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_TX_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %r8
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_TX_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %r8d
	movl	$-1025, %eax                    ## imm = 0xFBFF
	andl	%eax, %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
	movl	$15000, %edi                    ## imm = 0x3A98
	movl	$30000, %esi                    ## imm = 0x7530
	callq	_usleep_range
	movl	(%r13), %edx
	movq	_MDIO_PMA_REG_EDC_FFE_MAIN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-52(%rbp), %r8
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	-52(%rbp), %r8d
	movl	$4096, %eax                     ## imm = 0x1000
	orl	%eax, %r8d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
	movq	_MISC_REGISTERS_GPIO_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_bnx2x_set_gpio
	movq	_PORT_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decl	%r12d
	cmpq	%rax, %r14
	jg	LBB0_13
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_MAX,4,2                   ## @PORT_MAX
	.comm	_NIG_REG_PORT_SWAP,4,2          ## @NIG_REG_PORT_SWAP
	.comm	_NIG_REG_STRAP_OVERRIDE,4,2     ## @NIG_REG_STRAP_OVERRIDE
	.comm	_PORT_0,4,2                     ## @PORT_0
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"populate_phy failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,8,3 ## @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_XGXS0_LINK_STATUS,4,2 ## @NIG_MASK_XGXS0_LINK_STATUS
	.comm	_NIG_MASK_XGXS0_LINK10G,4,2     ## @NIG_MASK_XGXS0_LINK10G
	.comm	_NIG_MASK_SERDES0_LINK_STATUS,4,2 ## @NIG_MASK_SERDES0_LINK_STATUS
	.comm	_NIG_MASK_MI_INT,4,2            ## @NIG_MASK_MI_INT
	.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_REG_CTRL,4,2          ## @MDIO_PMA_REG_CTRL
	.comm	_PORT_1,8,3                     ## @PORT_1
L_.str.1:                               ## @.str.1
	.asciz	"Loading spirom for phy address 0x%x\n"

	.comm	_MDIO_PMA_REG_TX_POWER_DOWN,4,2 ## @MDIO_PMA_REG_TX_POWER_DOWN
	.comm	_MDIO_PMA_REG_EDC_FFE_MAIN,4,2  ## @MDIO_PMA_REG_EDC_FFE_MAIN
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ## @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.no_dead_strip	_bnx2x_8073_common_init_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8073_common_init_phy
_bnx2x_8073_common_init_phy:            ; @bnx2x_8073_common_init_phy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _PORT_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PORT_MAX@GOTPAGEOFF]
	ldr	w12, [x24]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	sp, x8
	lsl	x8, x12, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x8, x9, x8
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x8
Lloh9:
	adrp	x8, _NIG_REG_PORT_SWAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIG_REG_PORT_SWAP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_REG_RD
	mov	x23, x0
Lloh12:
	adrp	x8, _NIG_REG_STRAP_OVERRIDE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIG_REG_STRAP_OVERRIDE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	cmp	x23, #0
	ccmp	x0, #0, #4, ne
	cset	w1, ne
	mov	x0, x19
	bl	_bnx2x_ext_phy_hw_reset
	ldrsw	x28, [x24]
Lloh15:
	adrp	x26, _PORT_0@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PORT_0@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w28, w8
	b.le	LBB0_4
; %bb.1:
	sub	w23, w28, #1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x8, x8, x28, lsl #2
	sub	x24, x8, #4
Lloh17:
	adrp	x27, _MDIO_PMA_REG_CTRL@GOTPAGE
Lloh18:
	ldr	x27, [x27, _MDIO_PMA_REG_CTRL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x28, x28, #1
	mov	x0, x19
	bl	_CHIP_IS_E1x
	cmp	x0, #0
	csel	x8, x28, xzr, eq
	csel	w25, wzr, w23, eq
	lsl	x8, x8, #3
	ldr	x3, [x21, x8]
	ldr	x2, [x22, x8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, x25
	mov	x5, x24
	bl	_bnx2x_populate_phy
	cbnz	x0, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh19:
	adrp	x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	lsl	w9, w25, #2
	add	x1, x8, w9, sxtw
Lloh22:
	adrp	x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh28:
	adrp	x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _NIG_MASK_MI_INT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_bnx2x_bits_dis
Lloh34:
	adrp	x8, _MISC_REGISTERS_GPIO_2@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_2@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x23
	bl	_bnx2x_set_gpio
Lloh40:
	adrp	x8, _MDIO_PMA_DEVAD@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x24
	mov	w4, #32768
	bl	_bnx2x_cl45_write
	ldrsw	x8, [x26]
	sub	w23, w23, #1
	sub	x24, x24, #4
	cmp	x28, x8
	b.gt	LBB0_2
LBB0_4:
	mov	w0, #150
	bl	_msleep
	ldrsw	x8, [x26]
	ldur	x12, [x29, #-112]               ; 8-byte Folded Reload
	add	x9, x12, x8, lsl #2
	ldr	w10, [x9]
	tbnz	w10, #0, LBB0_6
; %bb.5:
	ldur	x11, [x29, #-104]               ; 8-byte Folded Reload
	str	x9, [x11, x8, lsl #3]
Lloh43:
	adrp	x9, _PORT_1@GOTPAGE
Lloh44:
	ldr	x9, [x9, _PORT_1@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x9]
	add	x9, x12, x10, lsl #2
	b	LBB0_7
LBB0_6:
Lloh46:
	adrp	x10, _PORT_1@GOTPAGE
Lloh47:
	ldr	x10, [x10, _PORT_1@GOTPAGEOFF]
Lloh48:
	ldr	x10, [x10]
	add	x11, x12, x10, lsl #2
	ldur	x12, [x29, #-104]               ; 8-byte Folded Reload
	str	x11, [x12, x8, lsl #3]
	mov	x11, x12
LBB0_7:
	str	x9, [x11, x10, lsl #3]
Lloh49:
	adrp	x9, _PORT_MAX@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PORT_MAX@GOTPAGEOFF]
Lloh51:
	ldrsw	x23, [x9]
	cmp	w23, w8
	b.le	LBB0_11
; %bb.8:
	sub	w24, w23, #1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	sub	x25, x8, #8
Lloh52:
	adrp	x27, _MDIO_PMA_DEVAD@GOTPAGE
Lloh53:
	ldr	x27, [x27, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh54:
	adrp	x28, _MDIO_PMA_REG_TX_POWER_DOWN@GOTPAGE
Lloh55:
	ldr	x28, [x28, _MDIO_PMA_REG_TX_POWER_DOWN@GOTPAGEOFF]
Lloh56:
	adrp	x20, l_.str.1@PAGE
Lloh57:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E1x
	cmp	x0, #0
	csel	w22, wzr, w24, eq
Lloh58:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh59:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	ldr	x21, [x25, x23, lsl #3]
	ldr	w8, [x21]
	str	x8, [sp, #-16]!
	mov	x1, x20
	bl	_DP
	add	sp, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_bnx2x_8073_8727_external_rom_boot
	cbnz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x23, x23, #1
	ldr	w2, [x27]
	ldr	w3, [x28]
	sub	x4, x29, #92
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x27]
	ldr	w3, [x28]
	ldur	w8, [x29, #-92]
	orr	w4, w8, #0x400
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_write
	ldrsw	x8, [x26]
	sub	w24, w24, #1
	cmp	x23, x8
	b.gt	LBB0_9
LBB0_11:
	mov	w0, #600
	bl	_msleep
Lloh61:
	adrp	x8, _PORT_MAX@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PORT_MAX@GOTPAGEOFF]
Lloh63:
	ldrsw	x8, [x8]
	ldr	w9, [x26]
	cmp	w8, w9
	b.le	LBB0_14
; %bb.12:
	sub	w20, w8, #1
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	sub	x22, x9, #8
Lloh64:
	adrp	x23, _MDIO_PMA_DEVAD@GOTPAGE
Lloh65:
	ldr	x23, [x23, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh66:
	adrp	x24, _MDIO_PMA_REG_TX_POWER_DOWN@GOTPAGE
Lloh67:
	ldr	x24, [x24, _MDIO_PMA_REG_TX_POWER_DOWN@GOTPAGEOFF]
Lloh68:
	adrp	x25, _MDIO_PMA_REG_EDC_FFE_MAIN@GOTPAGE
Lloh69:
	ldr	x25, [x25, _MDIO_PMA_REG_EDC_FFE_MAIN@GOTPAGEOFF]
Lloh70:
	adrp	x27, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGE
Lloh71:
	ldr	x27, [x27, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	x28, x8, #1
	ldr	x21, [x22, x8, lsl #3]
	ldr	w2, [x23]
	ldr	w3, [x24]
	sub	x4, x29, #92
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
	ldr	w3, [x24]
	ldur	w8, [x29, #-92]
	and	w4, w8, #0xfffffbff
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_write
	mov	w0, #15000
	mov	w1, #30000
	bl	_usleep_range
	ldr	w2, [x23]
	ldr	w3, [x25]
	sub	x4, x29, #92
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
	ldr	w3, [x25]
	ldur	w8, [x29, #-92]
	orr	w4, w8, #0x1000
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_cl45_write
Lloh72:
	adrp	x8, _MISC_REGISTERS_GPIO_2@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_2@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x3, x20
	bl	_bnx2x_set_gpio
	ldrsw	x9, [x26]
	sub	w20, w20, #1
	mov	x8, x28
	cmp	x28, x9
	b.gt	LBB0_13
LBB0_14:
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh75:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh76:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
Lloh78:
	adrp	x1, l_.str@PAGE
Lloh79:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_16:
Lloh80:
	adrp	x8, _EINVAL@GOTPAGE
Lloh81:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh83:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh84:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_MAX,4,2                   ; @PORT_MAX
	.comm	_NIG_REG_PORT_SWAP,4,2          ; @NIG_REG_PORT_SWAP
	.comm	_NIG_REG_STRAP_OVERRIDE,4,2     ; @NIG_REG_STRAP_OVERRIDE
	.comm	_PORT_0,4,2                     ; @PORT_0
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"populate_phy failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIG_REG_MASK_INTERRUPT_PORT0,8,3 ; @NIG_REG_MASK_INTERRUPT_PORT0
	.comm	_NIG_MASK_XGXS0_LINK_STATUS,4,2 ; @NIG_MASK_XGXS0_LINK_STATUS
	.comm	_NIG_MASK_XGXS0_LINK10G,4,2     ; @NIG_MASK_XGXS0_LINK10G
	.comm	_NIG_MASK_SERDES0_LINK_STATUS,4,2 ; @NIG_MASK_SERDES0_LINK_STATUS
	.comm	_NIG_MASK_MI_INT,4,2            ; @NIG_MASK_MI_INT
	.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_REG_CTRL,4,2          ; @MDIO_PMA_REG_CTRL
	.comm	_PORT_1,8,3                     ; @PORT_1
l_.str.1:                               ; @.str.1
	.asciz	"Loading spirom for phy address 0x%x\n"

	.comm	_MDIO_PMA_REG_TX_POWER_DOWN,4,2 ; @MDIO_PMA_REG_TX_POWER_DOWN
	.comm	_MDIO_PMA_REG_EDC_FFE_MAIN,4,2  ; @MDIO_PMA_REG_EDC_FFE_MAIN
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ; @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.no_dead_strip	_bnx2x_8073_common_init_phy
.subsections_via_symbols
