	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8727_common_init_phy
_bnx2x_8727_common_init_phy:            ## @bnx2x_8727_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PORT_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_NIG_REG_PORT_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_RD
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_NIG_REG_STRAP_OVERRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_RD
	movq	%rax, %rbx
	movq	_MISC_REGISTERS_GPIO_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -52(%rbp)
	movq	(%r12), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%r13, %rdi
	callq	_bnx2x_get_ext_phy_reset_gpio
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	setne	%al
	testq	%rbx, %rbx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %ecx
	xorl	-52(%rbp), %ecx
	movl	%ecx, -52(%rbp)
	movl	-56(%rbp), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_bnx2x_set_gpio
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	-56(%rbp), %esi
	movq	_MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %ecx
	movq	%r13, %rdi
	callq	_bnx2x_set_gpio
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_usleep_range
	movq	_PORT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	_PORT_0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	movslq	-52(%rbp), %rax
	movl	$0, %edx
	cmoveq	%rax, %rdx
	leaq	(%r14,%rax,4), %r9
	movl	%eax, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rcx
	movq	(%r12,%rdx,8), %rdx
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_bnx2x_populate_phy
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 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	%r13, %rdi
	callq	_bnx2x_bits_dis
	movslq	-52(%rbp), %rax
	leaq	(%r14,%rax,4), %rsi
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	$32768, %r8d                    ## imm = 0x8000
	callq	_bnx2x_cl45_write
	movl	-52(%rbp), %eax
	jmp	LBB0_1
LBB0_4:
	movl	$150, %edi
	callq	_msleep
	movq	_PORT_0@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rcx
	testb	$1, (%r14,%rax,4)
	jne	LBB0_6
## %bb.5:
	movq	%rcx, (%r15,%rax,8)
	movq	_PORT_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	(%r14,%rdx,4), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_PORT_1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%r14,%rdx,4), %rsi
	movq	%rsi, (%r15,%rax,8)
LBB0_7:
	movq	_PORT_MAX@GOTPCREL(%rip), %rsi
	movq	%rcx, (%r15,%rdx,8)
	movl	(%rsi), %ecx
	leal	-1(%rcx), %edx
	movl	%edx, -52(%rbp)
	xorl	%r14d, %r14d
	cmpl	%eax, %ecx
	jle	LBB0_15
## %bb.8:
	leaq	L_.str.1(%rip), %r14
	movq	_MDIO_PMA_REG_TX_DISABLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_CHIP_IS_E1x
	testq	%rax, %rax
	movslq	-52(%rbp), %rax
	movq	(%r15,%rax,8), %rcx
	movl	%eax, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rcx), %edx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_DP
	movslq	-52(%rbp), %rax
	movq	(%r15,%rax,8), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_bnx2x_8073_8727_external_rom_boot
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	-52(%rbp), %rax
	movq	(%r15,%rax,8), %rsi
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r13, %rdi
	movl	$1, %r8d
	callq	_bnx2x_cl45_write
	movl	-52(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	_PORT_0@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_9
## %bb.11:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_12:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_14:
	subl	(%rax), %r14d
LBB0_15:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	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	_MISC_REGISTERS_GPIO_1,4,2      ## @MISC_REGISTERS_GPIO_1
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ## @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_HIGH,4,2 ## @MISC_REGISTERS_GPIO_OUTPUT_HIGH
	.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	_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_DISABLE,4,2    ## @MDIO_PMA_REG_TX_DISABLE
	.no_dead_strip	_bnx2x_8727_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_8727_common_init_phy
_bnx2x_8727_common_init_phy:            ; @bnx2x_8727_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
	stur	w3, [x29, #-100]                ; 4-byte Folded Spill
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x8, sp
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
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	x20, _PORT_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PORT_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	x8, x8, #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	x28, x9, x8
	mov	sp, x28
	ldr	w8, [x20]
	lsl	x8, x8, #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	x26, x9, x8
	mov	sp, x26
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
	mov	x24, x0
Lloh15:
	adrp	x8, _MISC_REGISTERS_GPIO_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_1@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	mov	w8, #1
	stp	w9, w8, [x29, #-96]
	ldr	x1, [x22]
	sub	x2, x29, #96
	sub	x3, x29, #92
	mov	x0, x19
	bl	_bnx2x_get_ext_phy_reset_gpio
	cmp	x23, #0
	ccmp	x24, #0, #4, ne
	cset	w8, ne
	ldp	w1, w9, [x29, #-96]
	eor	w3, w9, w8
	stur	w3, [x29, #-92]
Lloh18:
	adrp	x8, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_OUTPUT_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bnx2x_set_gpio
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldp	w1, w3, [x29, #-96]
Lloh21:
	adrp	x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MISC_REGISTERS_GPIO_OUTPUT_HIGH@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bnx2x_set_gpio
	mov	w0, #5000
	mov	w1, #10000
	bl	_usleep_range
	ldr	w8, [x20]
	sub	w9, w8, #1
	stur	w9, [x29, #-92]
Lloh24:
	adrp	x9, _PORT_0@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PORT_0@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.1:
Lloh27:
	adrp	x25, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGE
Lloh28:
	ldr	x25, [x25, _NIG_MASK_SERDES0_LINK_STATUS@GOTPAGEOFF]
Lloh29:
	adrp	x27, _NIG_MASK_MI_INT@GOTPAGE
Lloh30:
	ldr	x27, [x27, _NIG_MASK_MI_INT@GOTPAGEOFF]
Lloh31:
	adrp	x20, _MDIO_PMA_DEVAD@GOTPAGE
Lloh32:
	ldr	x20, [x20, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh33:
	adrp	x24, _MDIO_PMA_REG_CTRL@GOTPAGE
Lloh34:
	ldr	x24, [x24, _MDIO_PMA_REG_CTRL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E1x
	ldursw	x8, [x29, #-92]
	cmp	x0, #0
	csel	x9, x8, xzr, eq
	csel	w23, wzr, w8, eq
	lsl	x9, x9, #3
	ldr	x3, [x21, x9]
	ldr	x2, [x22, x9]
	add	x5, x28, x8, lsl #2
	mov	x0, x19
	ldur	w1, [x29, #-100]                ; 4-byte Folded Reload
	mov	x4, x23
	bl	_bnx2x_populate_phy
	cbnz	x0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh35:
	adrp	x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NIG_REG_MASK_INTERRUPT_PORT0@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	lsl	w9, w23, #2
	add	x1, x8, w9, sxtw
Lloh38:
	adrp	x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NIG_MASK_XGXS0_LINK_STATUS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGE
Lloh42:
	ldr	x9, [x9, _NIG_MASK_XGXS0_LINK10G@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_bnx2x_bits_dis
	ldursw	x8, [x29, #-92]
	add	x1, x28, x8, lsl #2
	ldr	w2, [x20]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w4, #32768
	bl	_bnx2x_cl45_write
	ldur	w8, [x29, #-92]
	sub	w9, w8, #1
	stur	w9, [x29, #-92]
Lloh44:
	adrp	x9, _PORT_0@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PORT_0@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_2
LBB0_4:
	mov	w0, #150
	bl	_msleep
Lloh47:
	adrp	x8, _PORT_0@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PORT_0@GOTPAGEOFF]
Lloh49:
	ldrsw	x8, [x8]
	add	x9, x28, x8, lsl #2
	ldr	w10, [x9]
	tbnz	w10, #0, LBB0_6
; %bb.5:
	str	x9, [x26, x8, lsl #3]
Lloh50:
	adrp	x9, _PORT_1@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PORT_1@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x9]
	add	x9, x28, x10, lsl #2
	b	LBB0_7
LBB0_6:
Lloh53:
	adrp	x10, _PORT_1@GOTPAGE
Lloh54:
	ldr	x10, [x10, _PORT_1@GOTPAGEOFF]
Lloh55:
	ldr	x10, [x10]
	add	x11, x28, x10, lsl #2
	str	x11, [x26, x8, lsl #3]
LBB0_7:
Lloh56:
	adrp	x11, _PORT_MAX@GOTPAGE
Lloh57:
	ldr	x11, [x11, _PORT_MAX@GOTPAGEOFF]
	str	x9, [x26, x10, lsl #3]
Lloh58:
	ldr	w9, [x11]
	sub	w10, w9, #1
	stur	w10, [x29, #-92]
	cmp	w9, w8
	b.le	LBB0_11
; %bb.8:
Lloh59:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh60:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh61:
	adrp	x20, l_.str.1@PAGE
Lloh62:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh63:
	adrp	x23, _MDIO_PMA_DEVAD@GOTPAGE
Lloh64:
	ldr	x23, [x23, _MDIO_PMA_DEVAD@GOTPAGEOFF]
Lloh65:
	adrp	x24, _MDIO_PMA_REG_TX_DISABLE@GOTPAGE
Lloh66:
	ldr	x24, [x24, _MDIO_PMA_REG_TX_DISABLE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_CHIP_IS_E1x
	ldursw	x8, [x29, #-92]
	cmp	x0, #0
	csel	w21, wzr, w8, eq
	ldr	w0, [x22]
	ldr	x8, [x26, x8, lsl #3]
	ldr	w8, [x8]
	str	x8, [sp, #-16]!
	mov	x1, x20
	bl	_DP
	add	sp, sp, #16
	ldursw	x8, [x29, #-92]
	ldr	x1, [x26, x8, lsl #3]
	mov	x0, x19
	mov	x2, x21
	bl	_bnx2x_8073_8727_external_rom_boot
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldursw	x8, [x29, #-92]
	ldr	x1, [x26, x8, lsl #3]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w4, #1
	bl	_bnx2x_cl45_write
	ldur	w8, [x29, #-92]
	sub	w9, w8, #1
	stur	w9, [x29, #-92]
Lloh67:
	adrp	x9, _PORT_0@GOTPAGE
Lloh68:
	ldr	x9, [x9, _PORT_0@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_9
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh70:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh71:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
Lloh73:
	adrp	x1, l_.str@PAGE
Lloh74:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_13:
Lloh75:
	adrp	x8, _EINVAL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh78:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh79:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	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_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.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	_MISC_REGISTERS_GPIO_1,4,2      ; @MISC_REGISTERS_GPIO_1
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_LOW,4,2 ; @MISC_REGISTERS_GPIO_OUTPUT_LOW
	.comm	_MISC_REGISTERS_GPIO_OUTPUT_HIGH,4,2 ; @MISC_REGISTERS_GPIO_OUTPUT_HIGH
	.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	_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_DISABLE,4,2    ; @MDIO_PMA_REG_TX_DISABLE
	.no_dead_strip	_bnx2x_8727_common_init_phy
.subsections_via_symbols
