	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_stop_connection
_veth_stop_connection:                  ## @veth_stop_connection
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_VETH_STATE_RESET@GOTPCREL(%rip), %rax
	movq	_VETH_STATE_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_veth_kick_statemachine
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	leaq	8(%rbx), %rdi
	callq	_cancel_delayed_work
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_veth_kick_statemachine
	movq	%r14, %rdi
	callq	_spin_unlock_irq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_flush_scheduled_work           ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VETH_STATE_RESET,4,2           ## @VETH_STATE_RESET
	.comm	_VETH_STATE_SHUTDOWN,4,2        ## @VETH_STATE_SHUTDOWN
	.no_dead_strip	_veth_stop_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_stop_connection
_veth_stop_connection:                  ; @veth_stop_connection
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _VETH_STATE_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VETH_STATE_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VETH_STATE_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VETH_STATE_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	mov	x21, x20
	str	w8, [x21], #8
	mov	x0, x20
	bl	_veth_kick_statemachine
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x21
	bl	_cancel_delayed_work
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_veth_kick_statemachine
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_3:
	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
	b	_flush_scheduled_work
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VETH_STATE_RESET,4,2           ; @VETH_STATE_RESET
	.comm	_VETH_STATE_SHUTDOWN,4,2        ; @VETH_STATE_SHUTDOWN
	.no_dead_strip	_veth_stop_connection
.subsections_via_symbols
