	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_vf_rep_stop
_lio_vf_rep_stop:                       ## @lio_vf_rep_stop
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r12
	leaq	-56(%rbp), %r13
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_LIO_VF_REP_REQ_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	_LIO_VF_REP_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$12, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_lio_vf_rep_send_soft_command
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_LIO_IFSTATE_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	%rbx, %rdi
	callq	_atomic_set
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	%r14, %rdi
	callq	_netif_carrier_off
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_VF_REP_REQ_STATE,4,2       ## @LIO_VF_REP_REQ_STATE
	.comm	_LIO_VF_REP_STATE_DOWN,4,2      ## @LIO_VF_REP_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF_REP dev stop failed with err %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_LIO_IFSTATE_RUNNING,4,2        ## @LIO_IFSTATE_RUNNING
	.no_dead_strip	_lio_vf_rep_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_vf_rep_stop
_lio_vf_rep_stop:                       ; @lio_vf_rep_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _LIO_VF_REP_REQ_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIO_VF_REP_REQ_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _LIO_VF_REP_STATE_DOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LIO_VF_REP_STATE_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	x1, sp
	mov	x0, x21
	mov	w2, #12
	mov	x3, #0
	mov	w4, #0
	bl	_lio_vf_rep_send_soft_command
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_atomic_read
Lloh11:
	adrp	x8, _LIO_IFSTATE_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIO_IFSTATE_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_atomic_set
	mov	x0, x19
	bl	_netif_tx_disable
	mov	x0, x19
	bl	_netif_carrier_off
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_VF_REP_REQ_STATE,4,2       ; @LIO_VF_REP_REQ_STATE
	.comm	_LIO_VF_REP_STATE_DOWN,4,2      ; @LIO_VF_REP_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF_REP dev stop failed with err %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_LIO_IFSTATE_RUNNING,4,2        ; @LIO_IFSTATE_RUNNING
	.no_dead_strip	_lio_vf_rep_stop
.subsections_via_symbols
