	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111e_change_mtu
_amd8111e_change_mtu:                   ## @amd8111e_change_mtu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_AMD8111E_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_AMD8111E_MAX_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMD0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_amd8111e_restart
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_netif_start_queue
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%ebx, (%r15)
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD8111E_MIN_MTU,4,2           ## @AMD8111E_MIN_MTU
	.comm	_AMD8111E_MAX_MTU,4,2           ## @AMD8111E_MAX_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RUN,4,2                        ## @RUN
	.comm	_CMD0,8,3                       ## @CMD0
	.no_dead_strip	_amd8111e_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111e_change_mtu
_amd8111e_change_mtu:                   ; @amd8111e_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _AMD8111E_MIN_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD8111E_MIN_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMD8111E_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMD8111E_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_spin_lock_irq
Lloh9:
	adrp	x8, _RUN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RUN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _CMD0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CMD0@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	str	w21, [x19]
	mov	x0, x19
	bl	_amd8111e_restart
	mov	x22, x0
	mov	x0, x20
	bl	_spin_unlock_irq
	cbnz	w22, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_netif_start_queue
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	str	w21, [x19]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD8111E_MIN_MTU,4,2           ; @AMD8111E_MIN_MTU
	.comm	_AMD8111E_MAX_MTU,4,2           ; @AMD8111E_MAX_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RUN,4,2                        ; @RUN
	.comm	_CMD0,8,3                       ; @CMD0
	.no_dead_strip	_amd8111e_change_mtu
.subsections_via_symbols
