	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_reset_unicore
_bnx2x_reset_unicore:                   ## @bnx2x_reset_unicore
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_MDIO_REG_BANK_COMBO_IEEE0@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_COMBO_IEEE0_MII_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	callq	_CL22_RD_OVER_CL45
	movl	(%r13), %edx
	movl	(%r12), %ecx
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	orq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_CL22_WR_OVER_CL45
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_set_serdes_access
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_MDIO_ACCESS_TIMEOUT@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jle	LBB0_7
## %bb.3:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movq	_MDIO_REG_BANK_COMBO_IEEE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_COMBO_IEEE0_MII_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -56(%rbp)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	cmpq	(%r14), %r13
	jl	LBB0_5
LBB0_7:
	movl	(%rbx), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	movl	$5, %edi
	callq	_udelay
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_REG_BANK_COMBO_IEEE0,4,2  ## @MDIO_REG_BANK_COMBO_IEEE0
	.comm	_MDIO_COMBO_IEEE0_MII_CONTROL,4,2 ## @MDIO_COMBO_IEEE0_MII_CONTROL
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_RESET,8,3 ## @MDIO_COMBO_IEEO_MII_CONTROL_RESET
	.comm	_MDIO_ACCESS_TIMEOUT,8,3        ## @MDIO_ACCESS_TIMEOUT
	.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	"BUG! XGXS is still in reset!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_reset_unicore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_reset_unicore
_bnx2x_reset_unicore:                   ; @bnx2x_reset_unicore
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x23, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #8
	mov	x0, x21
	bl	_CL22_RD_OVER_CL45
	ldr	w2, [x23]
	ldr	w3, [x24]
	ldr	x8, [sp, #8]
Lloh4:
	adrp	x25, _MDIO_COMBO_IEEO_MII_CONTROL_RESET@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MDIO_COMBO_IEEO_MII_CONTROL_RESET@GOTPAGEOFF]
	ldr	x9, [x25]
	orr	x4, x9, x8
	mov	x0, x21
	mov	x1, x20
	bl	_CL22_WR_OVER_CL45
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x21
	bl	_bnx2x_set_serdes_access
LBB0_2:
Lloh6:
	adrp	x22, _MDIO_ACCESS_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MDIO_ACCESS_TIMEOUT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x26, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w2, [x23]
	ldr	w3, [x24]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_CL22_RD_OVER_CL45
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	tst	x9, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [x22]
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w0, [x21]
	ldr	w2, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh10:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #5
	bl	_udelay
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_REG_BANK_COMBO_IEEE0,4,2  ; @MDIO_REG_BANK_COMBO_IEEE0
	.comm	_MDIO_COMBO_IEEE0_MII_CONTROL,4,2 ; @MDIO_COMBO_IEEE0_MII_CONTROL
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_RESET,8,3 ; @MDIO_COMBO_IEEO_MII_CONTROL_RESET
	.comm	_MDIO_ACCESS_TIMEOUT,8,3        ; @MDIO_ACCESS_TIMEOUT
	.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	"BUG! XGXS is still in reset!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_reset_unicore
.subsections_via_symbols
