	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_ethtool_spauseparam_an  ## -- Begin function mdio45_ethtool_spauseparam_an
	.p2align	4, 0x90
_mdio45_ethtool_spauseparam_an:         ## @mdio45_ethtool_spauseparam_an
	.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, %r14
	movq	_MDIO_DEVS_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_WARN_ON
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_AN_ADVERTISE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	callq	*8(%r14)
	movl	%eax, %r12d
	movq	_ADVERTISE_PAUSE_CAP@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.1:
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	movl	$0, %eax
	je	LBB0_3
## %bb.2:
	movq	_FLOW_CTRL_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_FLOW_CTRL_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_5:
	orl	%eax, %edi
	callq	_mii_advertise_flowctrl
	orl	%eax, %ebx
LBB0_6:
	cmpl	%r12d, %ebx
	jne	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	16(%r14), %esi
	movl	20(%r14), %edi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %ecx
	movl	%ebx, %r8d
	callq	*24(%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio45_nway_restart            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_DEVS_AN,4,2               ## @MDIO_DEVS_AN
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_ADVERTISE,4,2          ## @MDIO_AN_ADVERTISE
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ## @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ## @ADVERTISE_PAUSE_ASYM
	.comm	_FLOW_CTRL_RX,4,2               ## @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ## @FLOW_CTRL_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_ethtool_spauseparam_an  ; -- Begin function mdio45_ethtool_spauseparam_an
	.p2align	2
_mdio45_ethtool_spauseparam_an:         ; @mdio45_ethtool_spauseparam_an
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MDIO_DEVS_AN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MDIO_DEVS_AN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x19, #16]
Lloh3:
	adrp	x23, _MDIO_MMD_AN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MDIO_MMD_AN@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh5:
	adrp	x24, _MDIO_AN_ADVERTISE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MDIO_AN_ADVERTISE@GOTPAGEOFF]
	ldr	w3, [x24]
	blr	x8
	mov	x22, x0
Lloh7:
	adrp	x8, _ADVERTISE_PAUSE_CAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADVERTISE_PAUSE_CAP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ADVERTISE_PAUSE_ASYM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADVERTISE_PAUSE_ASYM@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _FLOW_CTRL_RX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FLOW_CTRL_RX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldp	x10, x9, [x21]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh16:
	adrp	x9, _FLOW_CTRL_TX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FLOW_CTRL_TX@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	bl	_mii_advertise_flowctrl
	orr	w20, w0, w20
LBB0_2:
	cmp	w20, w22
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #24]
	ldp	w1, w0, [x19, #16]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x4, x20
	blr	x8
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mdio45_nway_restart
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_DEVS_AN,4,2               ; @MDIO_DEVS_AN
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_ADVERTISE,4,2          ; @MDIO_AN_ADVERTISE
	.comm	_ADVERTISE_PAUSE_CAP,4,2        ; @ADVERTISE_PAUSE_CAP
	.comm	_ADVERTISE_PAUSE_ASYM,4,2       ; @ADVERTISE_PAUSE_ASYM
	.comm	_FLOW_CTRL_RX,4,2               ; @FLOW_CTRL_RX
	.comm	_FLOW_CTRL_TX,4,2               ; @FLOW_CTRL_TX
.subsections_via_symbols
