	.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, %r14d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	_tg3_phy_stop
	movq	%r15, %rdi
	callq	_tg3_netif_stop
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_tg3_set_mtu
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_tg3_full_lock
	movq	_RESET_KIND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tg3_halt
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_57766@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5717@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5719@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5720@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_5:
	movl	$1, %esi
LBB0_6:
	movq	%r15, %rdi
	callq	_tg3_restart_hw
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_tg3_full_unlock
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_tg3_set_mtu
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_tg3_netif_start
	movq	%r15, %rdi
	callq	_tg3_full_unlock
	movq	%r15, %rdi
	callq	_tg3_phy_start
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_KIND_SHUTDOWN,4,2        ## @RESET_KIND_SHUTDOWN
	.comm	_ASIC_REV_57766,8,3             ## @ASIC_REV_57766
	.comm	_ASIC_REV_5717,8,3              ## @ASIC_REV_5717
	.comm	_ASIC_REV_5719,8,3              ## @ASIC_REV_5719
	.comm	_ASIC_REV_5720,8,3              ## @ASIC_REV_5720
	.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
	mov	x19, x0
	mov	x0, x21
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_tg3_phy_stop
	mov	x0, x19
	bl	_tg3_netif_stop
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_tg3_set_mtu
	mov	x0, x19
	mov	w1, #1
	bl	_tg3_full_lock
Lloh0:
	adrp	x8, _RESET_KIND_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_KIND_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tg3_halt
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh3:
	adrp	x8, _ASIC_REV_57766@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_REV_57766@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh6:
	adrp	x8, _ASIC_REV_5717@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ASIC_REV_5717@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh9:
	adrp	x8, _ASIC_REV_5719@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASIC_REV_5719@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh12:
	adrp	x8, _ASIC_REV_5720@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ASIC_REV_5720@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_5:
	mov	w1, #1
LBB0_6:
	mov	x0, x19
	bl	_tg3_restart_hw
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_tg3_full_unlock
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_tg3_set_mtu
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_tg3_netif_start
	mov	x0, x19
	bl	_tg3_full_unlock
	mov	x0, x19
	bl	_tg3_phy_start
LBB0_10:
	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_11:
	mov	w1, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_KIND_SHUTDOWN,4,2        ; @RESET_KIND_SHUTDOWN
	.comm	_ASIC_REV_57766,8,3             ; @ASIC_REV_57766
	.comm	_ASIC_REV_5717,8,3              ; @ASIC_REV_5717
	.comm	_ASIC_REV_5719,8,3              ; @ASIC_REV_5719
	.comm	_ASIC_REV_5720,8,3              ; @ASIC_REV_5720
	.no_dead_strip	_tg3_change_mtu
.subsections_via_symbols
