	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_change_mtu
_velocity_change_mtu:                   ## @velocity_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, %r13d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	cmpl	%r13d, (%rbx)
	je	LBB0_8
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, 32(%rax)
	movl	28(%r14), %eax
	movl	%eax, 28(%r15)
	movl	24(%r14), %eax
	movl	%eax, 24(%r15)
	movl	20(%r14), %eax
	movl	%eax, 20(%r15)
	movl	12(%r14), %eax
	movl	%eax, 12(%r15)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_velocity_init_rings
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_napi_disable
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	%r14, %rdi
	callq	_velocity_shutdown
	movq	12(%r14), %rax
	movl	16(%r15), %ecx
	movl	%ecx, 16(%r14)
	movl	12(%r15), %ecx
	movl	%ecx, 12(%r14)
	movq	%rax, 12(%r15)
	movl	%r13d, (%rbx)
	movq	_VELOCITY_INIT_COLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_velocity_init_registers
	movq	%r14, %rdi
	callq	_velocity_give_many_rx_descs
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_napi_enable
	movl	4(%r14), %edi
	callq	_mac_enable_int
	movq	%rbx, %rdi
	callq	_netif_start_queue
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_velocity_free_rings
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movl	%r13d, (%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VELOCITY_INIT_COLD,4,2         ## @VELOCITY_INIT_COLD
	.no_dead_strip	_velocity_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_change_mtu
_velocity_change_mtu:                   ; @velocity_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	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_9
LBB0_3:
	mov	w22, #0
	str	w23, [x19]
	b	LBB0_9
LBB0_4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	str	x19, [x0, #32]
	ldr	w8, [x20, #28]
	str	w8, [x0, #28]
	ldur	d0, [x20, #20]
	stur	d0, [x0, #20]
	ldr	w8, [x20, #12]
	str	w8, [x0, #12]
	mov	x1, x23
	bl	_velocity_init_rings
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.6:
	add	x24, x20, #8
	mov	x0, x24
	bl	_napi_disable
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_velocity_shutdown
	ldr	w8, [x21, #16]
	ldur	d0, [x20, #12]
	str	w8, [x20, #16]
	ldr	w8, [x21, #12]
	str	w8, [x20, #12]
	stur	d0, [x21, #12]
	str	w23, [x19]
Lloh3:
	adrp	x8, _VELOCITY_INIT_COLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VELOCITY_INIT_COLD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_velocity_init_registers
	mov	x0, x20
	bl	_velocity_give_many_rx_descs
	mov	x0, x24
	bl	_napi_enable
	ldr	w0, [x20, #4]
	bl	_mac_enable_int
	mov	x0, x19
	bl	_netif_start_queue
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_velocity_free_rings
LBB0_7:
	mov	x0, x21
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VELOCITY_INIT_COLD,4,2         ; @VELOCITY_INIT_COLD
	.no_dead_strip	_velocity_change_mtu
.subsections_via_symbols
