	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_change_mtu
_cas_change_mtu:                        ## @cas_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, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_netif_device_present
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	8(%r14), %rdi
	callq	_atomic_inc
	movq	_CAS_PHY_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	leaq	(%r14,%rcx,4), %rdi
	addq	$12, %rdi
	callq	_atomic_inc
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_schedule_work
	movq	%r14, %rdi
	callq	_flush_work
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAS_PHY_SERDES,4,2             ## @CAS_PHY_SERDES
	.comm	_CAS_RESET_ALL,4,2              ## @CAS_RESET_ALL
	.comm	_CAS_RESET_MTU,4,2              ## @CAS_RESET_MTU
	.no_dead_strip	_cas_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_change_mtu
_cas_change_mtu:                        ; @cas_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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	str	w21, [x20]
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_netif_device_present
	cbz	w0, LBB0_3
; %bb.2:
	add	x0, x19, #8
	bl	_atomic_inc
	mov	x20, x19
	ldr	w8, [x20], #4
Lloh0:
	adrp	x9, _CAS_PHY_SERDES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAS_PHY_SERDES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	x10, x19, #12
	add	x11, x19, #16
	tst	w9, w8
	csel	x0, x10, x11, eq
	bl	_atomic_inc
	mov	x0, x20
	bl	_schedule_work
	mov	x0, x20
	bl	_flush_work
LBB0_3:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAS_PHY_SERDES,4,2             ; @CAS_PHY_SERDES
	.comm	_CAS_RESET_ALL,4,2              ; @CAS_RESET_ALL
	.comm	_CAS_RESET_MTU,4,2              ; @CAS_RESET_MTU
	.no_dead_strip	_cas_change_mtu
.subsections_via_symbols
