	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_pcm_trigger
_snd_cmipci_pcm_trigger:                ## @snd_cmipci_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	_CM_CH0_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	%r13d, %ecx
	shll	%cl, %r14d
	movq	_CM_CHEN0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	%cl, %ebx
	movq	_CM_RST_CH0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_CM_PAUSE0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shll	%cl, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	addl	$-128, %r12d
	cmpl	$5, %r12d
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	orl	(%rdi), %r15d
	jmp	LBB0_4
LBB0_3:
	notl	%r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	andl	(%rdi), %r15d
LBB0_4:
	movl	%r15d, (%rdi)
	movq	_CM_REG_FUNCTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movl	%r13d, %ecx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	shll	%cl, %r13d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	$0, 4(%r12)
	movq	_CM_REG_INT_HLDCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_cmipci_clear_bit
	notl	%ebx
	andl	(%r15), %ebx
	movl	%ebx, (%r15)
	movq	_CM_REG_FUNCTRL0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_snd_cmipci_write
	movl	(%r14), %esi
	notl	%r13d
	andl	(%r15), %r13d
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_snd_cmipci_write
	movl	8(%r12), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_9
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 4(%rax)
	movq	_CM_REG_INT_HLDCLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_snd_cmipci_set_bit
	orl	(%r15), %ebx
	movl	%ebx, (%r15)
	movq	_CM_REG_FUNCTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
LBB0_8:
	callq	_snd_cmipci_write
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_CM_CH0_INT_EN,4,2              ## @CM_CH0_INT_EN
	.comm	_CM_CHEN0,4,2                   ## @CM_CHEN0
	.comm	_CM_RST_CH0,4,2                 ## @CM_RST_CH0
	.comm	_CM_PAUSE0,4,2                  ## @CM_PAUSE0
	.comm	_CM_REG_INT_HLDCLR,4,2          ## @CM_REG_INT_HLDCLR
	.comm	_CM_REG_FUNCTRL0,4,2            ## @CM_REG_FUNCTRL0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_cmipci_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_cmipci_pcm_trigger
_snd_cmipci_pcm_trigger:                ; @snd_cmipci_pcm_trigger
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CM_CH0_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_CH0_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	w23, [x1]
Lloh3:
	adrp	x8, _CM_CHEN0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_CHEN0@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CM_RST_CH0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CM_RST_CH0@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
Lloh8:
	ldr	w24, [x9]
Lloh9:
	adrp	x8, _CM_PAUSE0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_PAUSE0@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	lsl	w2, w25, w23
	lsl	w22, w26, w23
	lsl	w9, w27, w23
Lloh12:
	adrp	x10, lJTI0_0@PAGE
Lloh13:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w8, [x20]
	orr	w2, w8, w9
	b	LBB0_7
LBB0_3:
	ldr	w8, [x20]
	bic	w2, w8, w9
	b	LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
	lsl	w23, w24, w23
	str	wzr, [x21, #4]
Lloh17:
	adrp	x8, _CM_REG_INT_HLDCLR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CM_REG_INT_HLDCLR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_cmipci_clear_bit
	ldr	w8, [x20]
	bic	w8, w8, w22
	str	w8, [x20]
Lloh20:
	adrp	x22, _CM_REG_FUNCTRL0@GOTPAGE
Lloh21:
	ldr	x22, [x22, _CM_REG_FUNCTRL0@GOTPAGEOFF]
	ldr	w1, [x22]
	orr	w2, w8, w23
	mov	x0, x20
	bl	_snd_cmipci_write
	ldr	w1, [x22]
	ldr	w8, [x20]
	bic	w2, w8, w23
	mov	x0, x20
	bl	_snd_cmipci_write
	mov	w20, #0
	ldr	w8, [x21, #8]
	str	w8, [x21, #12]
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x21, #4]
Lloh22:
	adrp	x8, _CM_REG_INT_HLDCLR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CM_REG_INT_HLDCLR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_cmipci_set_bit
	ldr	w8, [x20]
	orr	w2, w8, w22
LBB0_7:
	str	w2, [x20]
Lloh25:
	adrp	x8, _CM_REG_FUNCTRL0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CM_REG_FUNCTRL0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_cmipci_write
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_CM_CH0_INT_EN,4,2              ; @CM_CH0_INT_EN
	.comm	_CM_CHEN0,4,2                   ; @CM_CHEN0
	.comm	_CM_RST_CH0,4,2                 ; @CM_RST_CH0
	.comm	_CM_PAUSE0,4,2                  ; @CM_PAUSE0
	.comm	_CM_REG_INT_HLDCLR,4,2          ; @CM_REG_INT_HLDCLR
	.comm	_CM_REG_FUNCTRL0,4,2            ; @CM_REG_FUNCTRL0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_cmipci_pcm_trigger
.subsections_via_symbols
