	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8073_xaui_wa
_bnx2x_8073_xaui_wa:                    ## @bnx2x_8073_xaui_wa
	.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, %r15
	movq	%rdi, %r13
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_8073_CHIP_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)
	jg	LBB0_12
## %bb.1:
	movl	$1000, %r14d                    ## imm = 0x3E8
	movq	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPCREL(%rip), %rbx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	notl	%ecx
	testl	$24576, %ecx                    ## imm = 0x6000
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	decl	%r14d
	jne	LBB0_2
	jmp	LBB0_11
LBB0_3:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_MDIO_PMA_REG_8073_XAUI_WA@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	testb	$-128, -43(%rbp)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	decl	%ebx
	jne	LBB0_7
LBB0_11:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_8:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	callq	_DP
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8073_CHIP_REV,4,2 ## @MDIO_PMA_REG_8073_CHIP_REV
	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ## @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XAUI work-around not required\n"

L_.str.1:                               ## @.str.1
	.asciz	"bit 15 went off\n"

	.comm	_MDIO_PMA_REG_8073_XAUI_WA,4,2  ## @MDIO_PMA_REG_8073_XAUI_WA
L_.str.2:                               ## @.str.2
	.asciz	"XAUI workaround has completed\n"

L_.str.3:                               ## @.str.3
	.asciz	"Warning: XAUI work-around timeout !!!\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8073_xaui_wa
_bnx2x_8073_xaui_wa:                    ; @bnx2x_8073_xaui_wa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x8, _MDIO_PMA_REG_8073_CHIP_REV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_REG_8073_CHIP_REV@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, sp, #12
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.gt	LBB0_12
; %bb.1:
	mov	w22, #1000
Lloh5:
	adrp	x23, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	mvn	w9, w8
	tst	w9, #0x6000
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w8, #15, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #3000
	mov	w1, #6000
	bl	_usleep_range
	subs	w22, w22, #1
	b.ne	LBB0_2
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x22, _NETIF_MSG_LINK@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	w23, #1000
Lloh16:
	adrp	x24, _MDIO_PMA_REG_8073_XAUI_WA@GOTPAGE
Lloh17:
	ldr	x24, [x24, _MDIO_PMA_REG_8073_XAUI_WA@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #13]
	tbnz	w8, #7, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #3000
	mov	w1, #6000
	bl	_usleep_range
	subs	w23, w23, #1
	b.ne	LBB0_7
LBB0_9:
Lloh18:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
	ldr	w0, [x22]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_DP
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_8073_CHIP_REV,4,2 ; @MDIO_PMA_REG_8073_CHIP_REV
	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ; @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XAUI work-around not required\n"

l_.str.1:                               ; @.str.1
	.asciz	"bit 15 went off\n"

	.comm	_MDIO_PMA_REG_8073_XAUI_WA,4,2  ; @MDIO_PMA_REG_8073_XAUI_WA
l_.str.2:                               ; @.str.2
	.asciz	"XAUI workaround has completed\n"

l_.str.3:                               ; @.str.3
	.asciz	"Warning: XAUI work-around timeout !!!\n"

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