	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_pcm_trigger
_vx_pcm_trigger:                        ## @vx_pcm_trigger
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_3:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_11
## %bb.4:
	movq	(%r12), %rax
	movq	(%rax), %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_vx_toggle_pipe
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vx_stop_pipe
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vx_stop_stream
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_5:
	cmpl	$0, 8(%r14)
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_vx_pcm_playback_transfer
LBB0_7:
	leaq	4(%r14), %rdi
	callq	_tasklet_schedule
	movl	$1, %eax
	movl	$1, %ebx
LBB0_13:
	addl	%eax, 4(%r15)
	movl	%ebx, (%r14)
	jmp	LBB0_14
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
LBB0_9:
	callq	_vx_toggle_pipe
	testl	%eax, %eax
	js	LBB0_15
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vx_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_pcm_trigger
_vx_pcm_trigger:                        ; @vx_pcm_trigger
	.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	x20, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_IS_STALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_3:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.4:
	mov	x19, x0
	ldr	x9, [x21]
	ldr	x20, [x9]
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_vx_toggle_pipe
	mov	x0, x19
	mov	x1, x20
	bl	_vx_stop_pipe
	mov	x0, x19
	mov	x1, x20
	bl	_vx_stop_stream
	mov	w8, #0
	mov	w9, #-1
	b	LBB0_9
LBB0_6:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #2
	bl	_vx_pcm_playback_transfer
LBB0_8:
	add	x0, x20, #4
	bl	_tasklet_schedule
	mov	w9, #1
	mov	w8, #1
LBB0_9:
	ldr	w10, [x19, #4]
	add	w9, w10, w9
	str	w9, [x19, #4]
	str	w8, [x20]
	b	LBB0_14
LBB0_10:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
LBB0_13:
	bl	_vx_toggle_pipe
	tbnz	w0, #31, LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vx_pcm_trigger
.subsections_via_symbols
