	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_wait_reset_complete
_bnx2x_wait_reset_complete:             ## @bnx2x_wait_reset_complete
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_MDIO_PMA_REG_CTRL@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rcx
	callq	_bnx2x_cl22_read
	testb	$-128, -43(%rbp)
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %r8
	callq	_bnx2x_cl45_read
	testb	$-128, -43(%rbp)
	je	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	incl	%ebx
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	jne	LBB0_1
## %bb.6:
	movl	(%r15), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movl	$1000, %ebx                     ## imm = 0x3E8
LBB0_7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_DP
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE
	.comm	_MDIO_PMA_REG_CTRL,4,2          ## @MDIO_PMA_REG_CTRL
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: PHY was not initialized, Port %d\n"

	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
L_.str.1:                               ## @.str.1
	.asciz	"control reg 0x%x (after %d ms)\n"

	.no_dead_strip	_bnx2x_wait_reset_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_wait_reset_complete
_bnx2x_wait_reset_complete:             ; @bnx2x_wait_reset_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w19, #0
Lloh0:
	adrp	x23, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _MDIO_PMA_REG_CTRL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_PMA_REG_CTRL@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MDIO_PMA_DEVAD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MDIO_PMA_DEVAD@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x24]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2x_cl22_read
	ldrb	w8, [sp, #13]
	tbnz	w8, #7, LBB0_4
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w2, [x25]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #13]
	tbz	w8, #7, LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	w19, w19, #1
	cmp	w19, #1000
	b.ne	LBB0_1
; %bb.5:
	ldr	w0, [x21]
	ldr	w2, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_6:
Lloh8:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_DP
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE
	.comm	_MDIO_PMA_REG_CTRL,4,2          ; @MDIO_PMA_REG_CTRL
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: PHY was not initialized, Port %d\n"

	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
l_.str.1:                               ; @.str.1
	.asciz	"control reg 0x%x (after %d ms)\n"

	.no_dead_strip	_bnx2x_wait_reset_complete
.subsections_via_symbols
