	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1e_change_mtu
_atl1e_change_mtu:                      ## @atl1e_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
	pushq	%rax
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	%r15d, %ebx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %ebx
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
## %bb.1:
	movq	_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_2
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	%r15d, (%r12)
	je	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	___AT_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_6
LBB0_2:
	movq	16(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_7:
	movl	%r15d, (%r12)
	movl	%r15d, 4(%r13)
	addl	$7, %ebx
	sarl	$3, %ebx
	movl	%ebx, 8(%r13)
	movq	%r13, %rdi
	callq	_atl1e_down
	movq	%r13, %rdi
	callq	_atl1e_up
	movq	___AT_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_MAX_JUMBO_FRAME_SIZE,4,2       ## @MAX_JUMBO_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid MTU setting\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	___AT_RESETTING,4,2             ## @__AT_RESETTING
	.no_dead_strip	_atl1e_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1e_change_mtu
_atl1e_change_mtu:                      ; @atl1e_change_mtu
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
	add	w8, w8, w20
	add	w8, w8, w9
Lloh8:
	ldr	w10, [x10]
	add	w22, w8, w10
Lloh9:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w22, w8
	ccmp	w22, w10, #0, ge
	b.le	LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_9
; %bb.4:
Lloh20:
	adrp	x23, ___AT_RESETTING@GOTPAGE
Lloh21:
	ldr	x23, [x23, ___AT_RESETTING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_5
LBB0_7:
	str	w20, [x21]
	add	w8, w22, #7
	asr	w8, w8, #3
	stp	w20, w8, [x19, #4]
	mov	x0, x19
	bl	_atl1e_down
	mov	x0, x19
	bl	_atl1e_up
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_MAX_JUMBO_FRAME_SIZE,4,2       ; @MAX_JUMBO_FRAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid MTU setting\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	___AT_RESETTING,4,2             ; @__AT_RESETTING
	.no_dead_strip	_atl1e_change_mtu
.subsections_via_symbols
