	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ext_phy_update_adv_fc
_bnx2x_ext_phy_update_adv_fc:           ## @bnx2x_ext_phy_update_adv_fc
	.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, %r14
	movq	%rdi, %r12
	movq	(%rsi), %r15
	movq	(%rdi), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_bnx2x_cl22_read
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$5, %edx
	callq	_bnx2x_cl22_read
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %rbx
	movq	%r15, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_SINGLE_MEDIA_DIRECT
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_get_warpcore_lane
	movl	%eax, %ebx
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_WC_REG_GP2_STATUS_GP_2_4@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL@GOTPCREL(%rip), %rax
	movq	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	movl	-52(%rbp), %eax
	notl	%eax
	movl	(%r13), %edx
	testl	%eax, %esi
	jne	LBB0_6
## %bb.5:
	movq	_MDIO_AN_REG_ADV_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	jmp	LBB0_8
LBB0_7:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_MDIO_AN_REG_ADV_PAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	movl	(%rbx), %edx
LBB0_8:
	movq	_MDIO_AN_REG_LP_AUTO_NEG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	jmp	LBB0_9
LBB0_6:
	movq	_MDIO_AN_REG_CL37_FC_LD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	movl	(%r13), %edx
	movq	_MDIO_AN_REG_CL37_FC_LP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-48(%rbp), %ecx
	andl	%eax, %ecx
	shll	$3, %ecx
	movl	%ecx, -48(%rbp)
	andl	-44(%rbp), %eax
	shll	$3, %eax
	movl	%eax, -44(%rbp)
LBB0_9:
	movq	_MDIO_AN_REG_ADV_PAUSE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-48(%rbp), %eax
	andl	%ebx, %eax
	sarl	$8, %eax
	andl	-44(%rbp), %ebx
	sarl	$10, %ebx
	orl	%eax, %ebx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DP
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnx2x_pause_resolve
	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_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4,4,2 ## @MDIO_WC_REG_GP2_STATUS_GP_2_4
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL,4,2 ## @MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP,4,2 ## @MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP
	.comm	_MDIO_AN_REG_ADV_PAUSE,4,2      ## @MDIO_AN_REG_ADV_PAUSE
	.comm	_MDIO_AN_REG_LP_AUTO_NEG,4,2    ## @MDIO_AN_REG_LP_AUTO_NEG
	.comm	_MDIO_AN_REG_CL37_FC_LD,4,2     ## @MDIO_AN_REG_CL37_FC_LD
	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ## @MDIO_AN_REG_CL37_FC_LP
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH,4,2 ## @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH
	.comm	_MDIO_AN_REG_ADV_PAUSE_MASK,4,2 ## @MDIO_AN_REG_ADV_PAUSE_MASK
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ext PHY pause result 0x%x\n"

	.no_dead_strip	_bnx2x_ext_phy_update_adv_fc
.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_update_adv_fc
_bnx2x_ext_phy_update_adv_fc:           ; @bnx2x_ext_phy_update_adv_fc
	.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, x0
	ldr	x21, [x1]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54618SE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	mov	w2, #4
	bl	_bnx2x_cl22_read
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	w2, #5
	bl	_bnx2x_cl22_read
	b	LBB0_9
LBB0_2:
	mov	x22, x1
	mov	x0, x21
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_SINGLE_MEDIA_DIRECT
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_bnx2x_get_warpcore_lane
	mov	x22, x0
Lloh3:
	adrp	x23, _MDIO_AN_DEVAD@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _MDIO_WC_REG_GP2_STATUS_GP_2_4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MDIO_WC_REG_GP2_STATUS_GP_2_4@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
Lloh8:
	adrp	x8, _MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w8, w8, w22
	ldr	w9, [sp, #4]
	ldr	w2, [x23]
	bics	wzr, w8, w9
	b.ne	LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _MDIO_AN_REG_ADV_PAUSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MDIO_AN_REG_ADV_PAUSE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x22, _MDIO_AN_DEVAD@GOTPAGE
Lloh18:
	ldr	x22, [x22, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh19:
	adrp	x8, _MDIO_AN_REG_ADV_PAUSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MDIO_AN_REG_ADV_PAUSE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x22]
LBB0_7:
Lloh22:
	adrp	x8, _MDIO_AN_REG_LP_AUTO_NEG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MDIO_AN_REG_LP_AUTO_NEG@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	b	LBB0_9
LBB0_8:
Lloh25:
	adrp	x8, _MDIO_AN_REG_CL37_FC_LD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_FC_LD@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w2, [x23]
Lloh28:
	adrp	x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_FC_LP@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #12]
Lloh31:
	adrp	x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	and	w8, w9, w8
	lsl	w10, w8, #3
	ldr	w8, [sp, #8]
	and	w8, w8, w9
	lsl	w8, w8, #3
	stp	w8, w10, [sp, #8]
LBB0_9:
	ldp	w10, w8, [sp, #8]
Lloh34:
	adrp	x9, _MDIO_AN_REG_ADV_PAUSE_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MDIO_AN_REG_ADV_PAUSE_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w8, w9, w8
	and	w9, w10, w9
	asr	w9, w9, #10
	orr	w20, w9, w8, asr #8
Lloh37:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DP
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_pause_resolve
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.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_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4,4,2 ; @MDIO_WC_REG_GP2_STATUS_GP_2_4
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL,4,2 ; @MDIO_WC_REG_GP2_STATUS_GP_2_4_CL73_AN_CMPL
	.comm	_MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP,4,2 ; @MDIO_WC_REG_GP2_STATUS_GP_2_4_CL37_LP_AN_CAP
	.comm	_MDIO_AN_REG_ADV_PAUSE,4,2      ; @MDIO_AN_REG_ADV_PAUSE
	.comm	_MDIO_AN_REG_LP_AUTO_NEG,4,2    ; @MDIO_AN_REG_LP_AUTO_NEG
	.comm	_MDIO_AN_REG_CL37_FC_LD,4,2     ; @MDIO_AN_REG_CL37_FC_LD
	.comm	_MDIO_AN_REG_CL37_FC_LP,4,2     ; @MDIO_AN_REG_CL37_FC_LP
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH,4,2 ; @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH
	.comm	_MDIO_AN_REG_ADV_PAUSE_MASK,4,2 ; @MDIO_AN_REG_ADV_PAUSE_MASK
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ext PHY pause result 0x%x\n"

	.no_dead_strip	_bnx2x_ext_phy_update_adv_fc
.subsections_via_symbols
