	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8726_external_rom_boot
_bnx2x_8726_external_rom_boot:          ## @bnx2x_8726_external_rom_boot
	.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, %r14
	movq	%rdi, %r15
	movq	8(%rsi), %rbx
	movl	$100, %edi
	callq	_msleep
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_GEN_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$395, %r8d                      ## imm = 0x18B
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	_MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_MISC_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	_MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_write
	movl	$150, %edi
	callq	_msleep
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_MISC_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	$200, %edi
	callq	_msleep
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_save_bcm_spirom_ver      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_GEN_CTRL,4,2      ## @MDIO_PMA_REG_GEN_CTRL
	.comm	_MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET,4,2 ## @MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET
	.comm	_MDIO_PMA_REG_MISC_CTRL1,4,2    ## @MDIO_PMA_REG_MISC_CTRL1
	.comm	_MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP,4,2 ## @MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP
	.no_dead_strip	_bnx2x_8726_external_rom_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8726_external_rom_boot
_bnx2x_8726_external_rom_boot:          ; @bnx2x_8726_external_rom_boot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1, #8]
	mov	w0, #100
	bl	_msleep
Lloh0:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _MDIO_PMA_REG_GEN_CTRL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MDIO_PMA_REG_GEN_CTRL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x1, x19
	mov	w4, #395
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	ldr	w3, [x23]
Lloh4:
	adrp	x8, _MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh7:
	adrp	x24, _MDIO_PMA_REG_MISC_CTRL1@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MDIO_PMA_REG_MISC_CTRL1@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x19
	mov	w4, #1
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	ldr	w3, [x23]
Lloh9:
	adrp	x8, _MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_cl45_write
	mov	w0, #150
	bl	_msleep
	ldr	w2, [x22]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	mov	w0, #200
	bl	_msleep
	ldr	w2, [x20]
	mov	x0, x21
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bnx2x_save_bcm_spirom_ver
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_GEN_CTRL,4,2      ; @MDIO_PMA_REG_GEN_CTRL
	.comm	_MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET,4,2 ; @MDIO_PMA_REG_GEN_CTRL_ROM_MICRO_RESET
	.comm	_MDIO_PMA_REG_MISC_CTRL1,4,2    ; @MDIO_PMA_REG_MISC_CTRL1
	.comm	_MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP,4,2 ; @MDIO_PMA_REG_GEN_CTRL_ROM_RESET_INTERNAL_MP
	.no_dead_strip	_bnx2x_8726_external_rom_boot
.subsections_via_symbols
