	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_wtdma_stopfifo
_vortex_wtdma_stopfifo:                 ## @vortex_wtdma_stopfifo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	(%r14,%rbx,8), %rcx
	movq	_FIFO_START@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_2
## %bb.1:
	movl	16(%r14,%rbx,8), %edx
	movl	$0, (%rsp)
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vortex_fifo_setwtctrl
	movq	_FIFO_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_FIFO_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_4
LBB0_3:
	leaq	(%r14,%rbx,8), %rcx
	movq	%rax, (%rcx)
	movq	$0, 8(%r14,%rbx,8)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_START,8,3                 ## @FIFO_START
	.comm	_FIFO_STOP,8,3                  ## @FIFO_STOP
	.no_dead_strip	_vortex_wtdma_stopfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_wtdma_stopfifo
_vortex_wtdma_stopfifo:                 ; @vortex_wtdma_stopfifo
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x19, [x0]
	sxtw	x20, w1
	mov	w8, #24
	smaddl	x21, w1, w8, x19
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _FIFO_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_START@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x20, x8, x19
	ldr	w2, [x8, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_vortex_fifo_setwtctrl
Lloh3:
	adrp	x8, _FIFO_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIFO_STOP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _FIFO_STOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIFO_STOP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_4
LBB0_3:
	str	x8, [x21]
	mov	w8, #24
	madd	x8, x20, x8, x19
	str	xzr, [x8, #8]
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_START,8,3                 ; @FIFO_START
	.comm	_FIFO_STOP,8,3                  ; @FIFO_STOP
	.no_dead_strip	_vortex_wtdma_stopfifo
.subsections_via_symbols
