	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_change_mtu
_tg3_change_mtu:                        ## @tg3_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	_TG3_MIN_MTU@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_TG3_MAX_MTU
	cmpl	%ebx, %eax
	jge	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_tg3_phy_stop
	movq	%r14, %rdi
	callq	_tg3_netif_stop
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tg3_full_lock
	movq	_RESET_KIND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tg3_halt
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_tg3_set_mtu
	movq	%r14, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_57766@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	%r14, %rdi
	callq	_tg3_restart_hw
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_tg3_full_unlock
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_tg3_set_mtu
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_tg3_netif_start
	movq	%r14, %rdi
	callq	_tg3_full_unlock
	movq	%r14, %rdi
	callq	_tg3_phy_start
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_MIN_MTU,4,2                ## @TG3_MIN_MTU
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RESET_KIND_SHUTDOWN,4,2        ## @RESET_KIND_SHUTDOWN
	.comm	_ASIC_REV_57766,8,3             ## @ASIC_REV_57766
	.no_dead_strip	_tg3_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_change_mtu
_tg3_change_mtu:                        ; @tg3_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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _TG3_MIN_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TG3_MIN_MTU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.gt	LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_TG3_MAX_MTU
	cmp	w0, w20
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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
LBB0_4:
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_tg3_phy_stop
	mov	x0, x19
	bl	_tg3_netif_stop
	mov	x0, x19
	mov	w1, #1
	bl	_tg3_full_lock
Lloh6:
	adrp	x8, _RESET_KIND_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESET_KIND_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tg3_halt
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_tg3_set_mtu
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh9:
	adrp	x8, _ASIC_REV_57766@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASIC_REV_57766@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w1, eq
	mov	x0, x19
	bl	_tg3_restart_hw
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_tg3_full_unlock
	b	LBB0_3
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_tg3_set_mtu
	mov	w20, #0
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_tg3_netif_start
	mov	x0, x19
	bl	_tg3_full_unlock
	mov	x0, x19
	bl	_tg3_phy_start
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_MIN_MTU,4,2                ; @TG3_MIN_MTU
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RESET_KIND_SHUTDOWN,4,2        ; @RESET_KIND_SHUTDOWN
	.comm	_ASIC_REV_57766,8,3             ; @ASIC_REV_57766
	.no_dead_strip	_tg3_change_mtu
.subsections_via_symbols
