	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_ext_phy_set_pause
_bnx2x_ext_phy_set_pause:               ## @bnx2x_ext_phy_set_pause
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_AN_REG_ADV_PAUSE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	callq	_bnx2x_cl45_read
	movq	_MDIO_AN_REG_ADV_PAUSE_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -44(%rbp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_bnx2x_calc_ieee_aneg_adv
	movl	(%r12), %eax
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, -44(%rbp)
LBB0_2:
	movq	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_MDIO_AN_REG_ADV_PAUSE_PAUSE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	-44(%rbp), %edx
LBB0_5:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	-44(%rbp), %r8d
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bnx2x_cl45_write
	addq	$8, %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_ADV_PAUSE,4,2      ## @MDIO_AN_REG_ADV_PAUSE
	.comm	_MDIO_AN_REG_ADV_PAUSE_BOTH,4,2 ## @MDIO_AN_REG_ADV_PAUSE_BOTH
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC,4,2 ## @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC
	.comm	_MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC,4,2 ## @MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC
	.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_PAUSE,4,2 ## @MDIO_AN_REG_ADV_PAUSE_PAUSE
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ext phy AN advertize 0x%x\n"

	.no_dead_strip	_bnx2x_ext_phy_set_pause
.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_set_pause
_bnx2x_ext_phy_set_pause:               ; @bnx2x_ext_phy_set_pause
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _MDIO_AN_DEVAD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _MDIO_AN_REG_ADV_PAUSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_AN_REG_ADV_PAUSE@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x20
	bl	_bnx2x_cl45_read
Lloh4:
	adrp	x8, _MDIO_AN_REG_ADV_PAUSE_BOTH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_AN_REG_ADV_PAUSE_BOTH@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_bnx2x_calc_ieee_aneg_adv
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	orr	w9, w10, w9
	str	w9, [sp, #12]
LBB0_2:
Lloh13:
	adrp	x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_BOTH@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _MDIO_AN_REG_ADV_PAUSE_PAUSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_AN_REG_ADV_PAUSE_PAUSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	b	LBB0_5
LBB0_4:
	ldr	w2, [sp, #12]
LBB0_5:
Lloh19:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w2, [x23]
	ldr	w3, [x24]
	ldr	w4, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_ADV_PAUSE,4,2      ; @MDIO_AN_REG_ADV_PAUSE
	.comm	_MDIO_AN_REG_ADV_PAUSE_BOTH,4,2 ; @MDIO_AN_REG_ADV_PAUSE_BOTH
	.comm	_MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC,4,2 ; @MDIO_COMBO_IEEE0_AUTO_NEG_ADV_PAUSE_ASYMMETRIC
	.comm	_MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC,4,2 ; @MDIO_AN_REG_ADV_PAUSE_ASYMMETRIC
	.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_PAUSE,4,2 ; @MDIO_AN_REG_ADV_PAUSE_PAUSE
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ext phy AN advertize 0x%x\n"

	.no_dead_strip	_bnx2x_ext_phy_set_pause
.subsections_via_symbols
