	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_change_mtu
_atl1c_change_mtu:                      ## @atl1c_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, %rbx
	movq	16(%rax), %rax
	movq	_athr_l2c@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_athr_l2c_b@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_athr_l2c_b2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	(%r12), %eax
	sete	%cl
	orb	%dl, %cl
	cmpb	$1, %cl
	jne	LBB0_2
## %bb.1:
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jge	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_netif_msg_link
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r15d, %ecx
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%edx, %ecx
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rsi
	addl	(%rsi), %ecx
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rsi
	addl	(%rsi), %edx
	cmpl	%edx, %ecx
	jl	LBB0_4
## %bb.3:
	movq	_MAX_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jg	LBB0_4
## %bb.7:
	xorl	%r14d, %r14d
	cmpl	%r15d, %eax
	je	LBB0_16
## %bb.8:
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	___AT_RESETTING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_11
LBB0_12:
	movl	%r15d, (%r12)
	movl	%r15d, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_atl1c_set_rxbufsize
	movq	_MAX_TSO_FRAME_SIZE@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, (%rcx)
	jge	LBB0_14
## %bb.13:
	notl	%eax
	movq	8(%rbx), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%rcx)
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%rcx)
	jmp	LBB0_15
LBB0_14:
	movq	8(%rbx), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rcx)
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_15:
	movq	%rbx, %rdi
	callq	_atl1c_down
	movq	%rbx, %rdi
	callq	_atl1c_up
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_16
	.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	_athr_l2c,8,3                   ## @athr_l2c
	.comm	_athr_l2c_b,8,3                 ## @athr_l2c_b
	.comm	_athr_l2c_b2,8,3                ## @athr_l2c_b2
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.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
	.comm	_MAX_TSO_FRAME_SIZE,4,2         ## @MAX_TSO_FRAME_SIZE
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.no_dead_strip	_atl1c_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_change_mtu
_atl1c_change_mtu:                      ; @atl1c_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
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _athr_l2c@GOTPAGE
Lloh1:
	ldr	x9, [x9, _athr_l2c@GOTPAGEOFF]
Lloh2:
	adrp	x10, _athr_l2c_b@GOTPAGE
Lloh3:
	ldr	x10, [x10, _athr_l2c_b@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _athr_l2c_b2@GOTPAGE
Lloh7:
	ldr	x11, [x11, _athr_l2c_b2@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ccmp	w8, w20, #0, eq
	b.lt	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _ETH_FCS_LEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
	add	w8, w8, w20
	add	w8, w8, w9
Lloh20:
	ldr	w10, [x10]
	add	w8, w8, w10
Lloh21:
	adrp	x10, _ETH_ZLEN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ETH_ZLEN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _MAX_JUMBO_FRAME_SIZE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _MAX_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	add	w9, w10, w9
	cmp	w8, w9
	ccmp	w8, w11, #0, ge
	b.le	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_netif_msg_link
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #32]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_4:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_14
; %bb.6:
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_15
; %bb.7:
Lloh32:
	adrp	x22, ___AT_RESETTING@GOTPAGE
Lloh33:
	ldr	x22, [x22, ___AT_RESETTING@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_8
LBB0_10:
	str	w20, [x21]
	str	w20, [x19, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_atl1c_set_rxbufsize
Lloh34:
	adrp	x8, _MAX_TSO_FRAME_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MAX_TSO_FRAME_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x8]
Lloh37:
	adrp	x8, _NETIF_F_TSO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NETIF_F_TSO@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w9, w20
	b.ge	LBB0_12
; %bb.11:
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
Lloh40:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh41:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	bic	w8, w8, w10
	b	LBB0_13
LBB0_12:
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh43:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh44:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	orr	w8, w10, w8
LBB0_13:
	str	w8, [x9]
	mov	x0, x19
	bl	_atl1c_down
	mov	x0, x19
	bl	_atl1c_up
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
LBB0_14:
	mov	w0, #0
LBB0_15:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.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	_athr_l2c,8,3                   ; @athr_l2c
	.comm	_athr_l2c_b,8,3                 ; @athr_l2c_b
	.comm	_athr_l2c_b2,8,3                ; @athr_l2c_b2
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.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
	.comm	_MAX_TSO_FRAME_SIZE,4,2         ; @MAX_TSO_FRAME_SIZE
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.no_dead_strip	_atl1c_change_mtu
.subsections_via_symbols
