	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_set_settings
_jme_set_settings:                      ## @jme_set_settings
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:
	leaq	32(%r15), %rbx
	cmpq	$0, 40(%r15)
	je	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_7:
	movq	(%rbx), %rax
	cmpq	16(%r14), %rax
	setne	%r13b
LBB0_8:
	leaq	28(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mii_ethtool_sset
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	testb	%r13b, %r13b
	je	LBB0_11
## %bb.9:
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_jme_reset_link
LBB0_11:
	testl	%ebx, %ebx
	jne	LBB0_13
## %bb.12:
	movq	_JME_FLAG_SSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	addq	$24, %rsi
	callq	_set_bit
	movups	(%r14), %xmm0
	movups	%xmm0, (%r15)
	movq	16(%r14), %rax
	movq	%rax, 16(%r15)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %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_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_set_settings
_jme_set_settings:                      ; @jme_set_settings
	.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	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x19]
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, [x19, #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, x20, #32
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #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, #0
	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_12
LBB0_6:
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	cset	w23, ne
LBB0_7:
	add	x22, x20, #28
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x19
	bl	_mii_ethtool_sset
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	cbz	w23, LBB0_10
; %bb.8:
	cbnz	w21, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_jme_reset_link
LBB0_10:
	cbnz	w21, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _JME_FLAG_SSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JME_FLAG_SSET@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_set_bit
	ldr	x8, [x19, #16]
	ldr	q0, [x19]
	str	q0, [x20]
	str	x8, [x20, #16]
LBB0_12:
	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_settings
.subsections_via_symbols
