	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ext_phy_10G_an_resolve
_bnx2x_ext_phy_10G_an_resolve:          ## @bnx2x_ext_phy_10G_an_resolve
	.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, %r15
	movq	%rdi, %rbx
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_AN_REG_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-44(%rbp), %r12
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movl	(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %r8
	callq	_bnx2x_cl45_read
	movl	-44(%rbp), %eax
	testb	$32, %al
	je	LBB0_2
## %bb.1:
	movq	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	orl	%ecx, (%rdx)
LBB0_2:
	testb	$1, %al
	jne	LBB0_4
## %bb.3:
	movq	_LINK_STATUS_PARALLEL_DETECTION_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_STATUS,4,2         ## @MDIO_AN_REG_STATUS
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ## @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_LINK_STATUS_PARALLEL_DETECTION_USED,4,2 ## @LINK_STATUS_PARALLEL_DETECTION_USED
	.no_dead_strip	_bnx2x_ext_phy_10G_an_resolve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_ext_phy_10G_an_resolve
_bnx2x_ext_phy_10G_an_resolve:          ; @bnx2x_ext_phy_10G_an_resolve
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _MDIO_AN_DEVAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _MDIO_AN_REG_STATUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MDIO_AN_REG_STATUS@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	bl	_bnx2x_cl45_read
	ldr	w2, [x22]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
	tbz	w8, #5, LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LINK_STATUS_AUTO_NEGOTIATE_COMPLETE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_2:
	tbnz	w8, #0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _LINK_STATUS_PARALLEL_DETECTION_USED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LINK_STATUS_PARALLEL_DETECTION_USED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_STATUS,4,2         ; @MDIO_AN_REG_STATUS
	.comm	_LINK_STATUS_AUTO_NEGOTIATE_COMPLETE,4,2 ; @LINK_STATUS_AUTO_NEGOTIATE_COMPLETE
	.comm	_LINK_STATUS_PARALLEL_DETECTION_USED,4,2 ; @LINK_STATUS_PARALLEL_DETECTION_USED
	.no_dead_strip	_bnx2x_ext_phy_10G_an_resolve
.subsections_via_symbols
