	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1x_pcm_trigger
_snd_emu10k1x_pcm_trigger:              ## @snd_emu10k1x_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, %r14d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	8(%rax), %rbx
	movq	8(%rbx), %rcx
	movl	(%rcx), %r15d
	cmpl	$128, %r14d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r14d
	jne	LBB0_7
## %bb.2:
	xorl	%r14d, %r14d
	cmpl	$2, (%rax)
	movq	_INTE_CH_0_LOOP@GOTPCREL(%rip), %rax
	movl	$0, %esi
	jne	LBB0_4
## %bb.3:
	movq	_INTE_CH_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	(%rax), %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	movq	%r12, %rdi
	callq	_snd_emu10k1x_intr_enable
	movl	$1, (%rbx)
	movq	_TRIGGER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_snd_emu10k1x_ptr_read
	movq	_TRIGGER_CHANNEL_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	orl	%eax, %ebx
	jmp	LBB0_5
LBB0_6:
	movl	$0, (%rbx)
	movq	_INTE_CH_0_LOOP@GOTPCREL(%rip), %rax
	movq	_INTE_CH_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	movq	%r12, %rdi
	callq	_snd_emu10k1x_intr_disable
	movq	_TRIGGER_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_snd_emu10k1x_ptr_read
	movq	_TRIGGER_CHANNEL_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
LBB0_5:
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_snd_emu10k1x_ptr_write
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTE_CH_0_LOOP,4,2             ## @INTE_CH_0_LOOP
	.comm	_INTE_CH_0_HALF_LOOP,4,2        ## @INTE_CH_0_HALF_LOOP
	.comm	_TRIGGER_CHANNEL,4,2            ## @TRIGGER_CHANNEL
	.comm	_TRIGGER_CHANNEL_0,4,2          ## @TRIGGER_CHANNEL_0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_emu10k1x_pcm_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1x_pcm_trigger
_snd_emu10k1x_pcm_trigger:              ; @snd_emu10k1x_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
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x22, [x8, #8]
	ldr	x9, [x22, #8]
	ldr	w21, [x9]
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _INTE_CH_0_LOOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTE_CH_0_LOOP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _INTE_CH_0_HALF_LOOP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _INTE_CH_0_HALF_LOOP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #2
	csel	w8, w10, wzr, eq
	orr	w8, w9, w8
	lsl	w1, w8, w21
	mov	x0, x19
	bl	_snd_emu10k1x_intr_enable
	mov	w8, #1
	str	w8, [x22]
Lloh6:
	adrp	x8, _TRIGGER_CHANNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRIGGER_CHANNEL@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_snd_emu10k1x_ptr_read
Lloh9:
	adrp	x8, _TRIGGER_CHANNEL_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRIGGER_CHANNEL_0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, w21
	orr	w3, w8, w0
	b	LBB0_4
LBB0_3:
	str	wzr, [x22]
Lloh12:
	adrp	x8, _INTE_CH_0_LOOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTE_CH_0_LOOP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _INTE_CH_0_HALF_LOOP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INTE_CH_0_HALF_LOOP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	lsl	w1, w8, w21
	mov	x0, x19
	bl	_snd_emu10k1x_intr_disable
Lloh18:
	adrp	x8, _TRIGGER_CHANNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRIGGER_CHANNEL@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_snd_emu10k1x_ptr_read
Lloh21:
	adrp	x8, _TRIGGER_CHANNEL_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRIGGER_CHANNEL_0@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	lsl	w8, w8, w21
	bic	w3, w0, w8
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_snd_emu10k1x_ptr_write
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_INTE_CH_0_LOOP,4,2             ; @INTE_CH_0_LOOP
	.comm	_INTE_CH_0_HALF_LOOP,4,2        ; @INTE_CH_0_HALF_LOOP
	.comm	_TRIGGER_CHANNEL,4,2            ; @TRIGGER_CHANNEL
	.comm	_TRIGGER_CHANNEL_0,4,2          ; @TRIGGER_CHANNEL_0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_emu10k1x_pcm_trigger
.subsections_via_symbols
