	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw686x_pcm_trigger
_tw686x_pcm_trigger:                    ## @tw686x_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	%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, %r15d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	16(%rax), %r12
	movq	(%rbx), %rbx
	cmpl	$128, %r15d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r15d
	jne	LBB0_7
## %bb.2:
	leaq	(%rbx,%rbx,2), %rbx
	movq	8(%r12,%rbx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r14)
	movq	_AUDIO_CHANNEL_OFFSET@GOTPCREL(%rip), %rax
	movq	16(%r12,%rbx,8), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_tw686x_enable_channel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	addq	$8, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%r14)
	movq	_AUDIO_CHANNEL_OFFSET@GOTPCREL(%rip), %rax
	leaq	(%rbx,%rbx,2), %rbx
	leaq	(%r12,%rbx,8), %r15
	movq	16(%r12,%rbx,8), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_tw686x_disable_channel
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12,%rbx,8), %rax
	movq	$0, (%rax)
	movq	8(%r12,%rbx,8), %rax
	movq	$0, 8(%rax)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_CHANNEL_OFFSET,8,3       ## @AUDIO_CHANNEL_OFFSET
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tw686x_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw686x_pcm_trigger
_tw686x_pcm_trigger:                    ; @tw686x_pcm_trigger
	.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	x20, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	x23, [x21]
	cmp	w20, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_6
; %bb.2:
	mov	w8, #24
	madd	x8, x23, x8, x22
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.4:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	mov	x21, x19
	str	w8, [x21], #8
Lloh0:
	adrp	x8, _AUDIO_CHANNEL_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUDIO_CHANNEL_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x9, x23, x9, x22
	ldr	x9, [x9, #16]
	add	x1, x9, x8
	mov	x0, x19
	bl	_tw686x_enable_channel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x1, x0, x19
	mov	x0, x21
	bl	_mod_timer
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _AUDIO_CHANNEL_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUDIO_CHANNEL_OFFSET@GOTPAGEOFF]
	str	wzr, [x19]
Lloh8:
	ldr	x8, [x8]
	mov	w9, #24
	madd	x21, x23, x9, x22
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	mov	x0, x19
	bl	_tw686x_disable_channel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
	str	xzr, [x8]
	ldr	x8, [x21, #8]
	str	xzr, [x8, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_CHANNEL_OFFSET,8,3       ; @AUDIO_CHANNEL_OFFSET
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tw686x_pcm_trigger
.subsections_via_symbols
