	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_set_link_ksettings
_jme_set_link_ksettings:                ## @jme_set_link_ksettings
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r12), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	leaq	40(%r14), %r15
	movb	$1, %r13b
	cmpq	$0, 48(%r14)
	je	LBB0_6
## %bb.4:
	movq	8(%r12), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	cmpq	16(%r12), %rax
	sete	%r13b
LBB0_6:
	movq	%r14, %rbx
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mii_ethtool_set_link_ksettings
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.7:
	testb	%r13b, %r13b
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_jme_reset_link
LBB0_9:
	movq	16(%r12), %rax
	movq	%rax, 24(%r14)
	movups	(%r12), %xmm0
	movups	%xmm0, 8(%r14)
	movq	_JME_FLAG_SSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_JME_FLAG_SSET,4,2              ## @JME_FLAG_SSET
	.no_dead_strip	_jme_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_set_link_ksettings
_jme_set_link_ksettings:                ; @jme_set_link_ksettings
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	add	x21, x19, #40
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_4:
	mov	w23, #1
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
	ldr	x8, [x21]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w23, eq
LBB0_7:
	add	x22, x19, #32
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x20
	bl	_mii_ethtool_set_link_ksettings
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	cbnz	w21, LBB0_11
; %bb.8:
	tbnz	w23, #0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_jme_reset_link
LBB0_10:
	ldr	q0, [x20]
	ldr	x8, [x20, #16]
	str	x8, [x19, #24]
	stur	q0, [x19, #8]
Lloh12:
	adrp	x8, _JME_FLAG_SSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JME_FLAG_SSET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	w21, #0
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_JME_FLAG_SSET,4,2              ; @JME_FLAG_SSET
	.no_dead_strip	_jme_set_link_ksettings
.subsections_via_symbols
