	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_change_mtu
_e1000_change_mtu:                      ## @e1000_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	addl	%r15d, %r13d
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r13d
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, %eax
	jge	LBB0_4
## %bb.1:
	movq	_FLAG_HAS_JUMBO_FRAMES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_2
LBB0_4:
	movq	24(%r12), %rcx
	movq	_e1000_pch2lan@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_8
## %bb.5:
	movq	_FLAG2_CRC_STRIPPING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r12)
	jne	LBB0_8
## %bb.6:
	cmpl	%r15d, %eax
	jge	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	addq	$16, %rbx
	movq	___E1000_RESETTING@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_usleep_range
	jmp	LBB0_10
LBB0_11:
	movl	%r13d, 8(%r12)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %edx
	callq	_e_info
	movl	%r15d, (%r12)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r12), %edi
	callq	_pm_runtime_get_sync
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_e1000e_down
LBB0_13:
	xorl	%eax, %eax
	cmpl	$2049, %r13d                    ## imm = 0x801
	setge	%al
	shll	$11, %eax
	addl	$2048, %eax                     ## imm = 0x800
	movl	%eax, 12(%r15)
	movq	_VLAN_ETH_FRAME_LEN@GOTPCREL(%rip), %rcx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	(%rcx), %edx
	cmpl	%edx, %r13d
	cmovgl	%eax, %edx
	movl	%edx, 12(%r15)
	movq	%r12, %rdi
	callq	_netif_running
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	callq	_e1000e_up
	jmp	LBB0_16
LBB0_15:
	callq	_e1000e_reset
LBB0_16:
	movl	4(%r12), %edi
	callq	_pm_runtime_put_sync
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	callq	_e_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_ETH_HLEN,4,2              ## @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ## @FLAG_HAS_JUMBO_FRAMES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Jumbo Frames not supported.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_e1000_pch2lan,8,3              ## @e1000_pch2lan
	.comm	_FLAG2_CRC_STRIPPING,4,2        ## @FLAG2_CRC_STRIPPING
L_.str.1:                               ## @.str.1
	.asciz	"Jumbo Frames not supported on this device when CRC stripping is disabled.\n"

	.comm	___E1000_RESETTING,4,2          ## @__E1000_RESETTING
L_.str.2:                               ## @.str.2
	.asciz	"changing MTU from %d to %d\n"

	.comm	_VLAN_ETH_FRAME_LEN,4,2         ## @VLAN_ETH_FRAME_LEN
	.no_dead_strip	_e1000_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_change_mtu
_e1000_change_mtu:                      ; @e1000_change_mtu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _VLAN_ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ETH_FCS_LEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w8, [x23]
Lloh5:
	adrp	x10, _ETH_DATA_LEN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w10, w22
	b.ge	LBB0_2
; %bb.1:
	ldr	w11, [x20]
Lloh8:
	adrp	x12, _FLAG_HAS_JUMBO_FRAMES@GOTPAGE
Lloh9:
	ldr	x12, [x12, _FLAG_HAS_JUMBO_FRAMES@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_13
LBB0_2:
	ldr	x11, [x20, #24]
Lloh11:
	adrp	x12, _e1000_pch2lan@GOTPAGE
Lloh12:
	ldr	x12, [x12, _e1000_pch2lan@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	cmp	x11, x12
	b.lt	LBB0_4
; %bb.3:
	ldr	w11, [x20, #4]
Lloh14:
	adrp	x12, _FLAG2_CRC_STRIPPING@GOTPAGE
Lloh15:
	ldr	x12, [x12, _FLAG2_CRC_STRIPPING@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	and	w11, w12, w11
	cmp	w11, #0
	ccmp	w10, w22, #0, eq
	b.lt	LBB0_14
LBB0_4:
	add	w9, w9, w22
	add	w25, w9, w8
	add	x21, x20, #16
Lloh17:
	adrp	x24, ___E1000_RESETTING@GOTPAGE
Lloh18:
	ldr	x24, [x24, ___E1000_RESETTING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1000
	mov	w1, #1100
	bl	_usleep_range
	b	LBB0_5
LBB0_7:
	str	w25, [x20, #8]
	ldr	w1, [x19]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_e_info
	str	w22, [x19]
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #1
	bl	_e1000e_down
LBB0_9:
	mov	w8, #2048
	mov	w9, #4096
	cmp	w25, #2048
	csel	w8, w9, w8, gt
Lloh21:
	adrp	x9, _VLAN_ETH_FRAME_LEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VLAN_ETH_FRAME_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x23]
	add	w9, w10, w9
	cmp	w25, w9
	csel	w8, w8, w9, gt
	str	w8, [x20, #12]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_e1000e_up
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_e1000e_reset
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_sync
	ldr	w0, [x24]
	mov	x1, x21
	bl	_clear_bit
	mov	w0, #0
	b	LBB0_16
LBB0_13:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_e_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_ETH_HLEN,4,2              ; @VLAN_ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_FLAG_HAS_JUMBO_FRAMES,4,2      ; @FLAG_HAS_JUMBO_FRAMES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Jumbo Frames not supported.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_e1000_pch2lan,8,3              ; @e1000_pch2lan
	.comm	_FLAG2_CRC_STRIPPING,4,2        ; @FLAG2_CRC_STRIPPING
l_.str.1:                               ; @.str.1
	.asciz	"Jumbo Frames not supported on this device when CRC stripping is disabled.\n"

	.comm	___E1000_RESETTING,4,2          ; @__E1000_RESETTING
l_.str.2:                               ; @.str.2
	.asciz	"changing MTU from %d to %d\n"

	.comm	_VLAN_ETH_FRAME_LEN,4,2         ; @VLAN_ETH_FRAME_LEN
	.no_dead_strip	_e1000_change_mtu
.subsections_via_symbols
