	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_als300_trigger
_snd_als300_trigger:                    ## @snd_als300_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, %r12d
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	movzwl	(%rbx), %r13d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_snd_als300_dbgcallenter
	movq	%r14, %rdi
	callq	_spin_lock
	addl	$-128, %r12d
	cmpl	$5, %r12d
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	4(%r14), %edi
	movzwl	%r13w, %ebx
	movl	%ebx, %esi
	callq	_snd_als300_gcr_read
	movl	4(%r14), %edi
	movq	_TRANSFER_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%ebx, %esi
	callq	_snd_als300_gcr_write
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	movl	4(%r14), %edi
	movzwl	%r13w, %r15d
	movl	%r15d, %esi
	callq	_snd_als300_gcr_read
	movl	$1, 4(%rbx)
	movl	4(%r14), %edi
	movq	_TRANSFER_START@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_snd_als300_gcr_write
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	callq	_snd_als300_dbgplay
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	movl	4(%r14), %edi
	movzwl	%r13w, %ebx
	movl	%ebx, %esi
	callq	_snd_als300_gcr_read
	movl	4(%r14), %edi
	movq	_FIFO_PAUSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_snd_als300_gcr_write
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movl	4(%r14), %edi
	movzwl	%r13w, %ebx
	movl	%ebx, %esi
	callq	_snd_als300_gcr_read
	movl	4(%r14), %edi
	movq	_FIFO_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%ebx, %esi
	callq	_snd_als300_gcr_write
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	callq	_snd_als300_dbgplay
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_snd_als300_dbgcallleave
	movl	%r15d, %eax
	addq	$8, %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_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_TRANSFER_START,4,2             ## @TRANSFER_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TRIGGER START\n"

L_.str.1:                               ## @.str.1
	.asciz	"TRIGGER STOP\n"

	.comm	_FIFO_PAUSE,4,2                 ## @FIFO_PAUSE
L_.str.2:                               ## @.str.2
	.asciz	"TRIGGER PAUSE\n"

L_.str.3:                               ## @.str.3
	.asciz	"TRIGGER RELEASE\n"

L_.str.4:                               ## @.str.4
	.asciz	"TRIGGER INVALID\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_als300_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_als300_trigger
_snd_als300_trigger:                    ; @snd_als300_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	x21, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x22, [x8]
	ldrh	w20, [x22]
	bl	_snd_als300_dbgcallenter
	mov	x0, x19
	bl	_spin_lock
	sub	w8, w21, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_snd_als300_gcr_read
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _TRANSFER_START@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRANSFER_START@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bic	w2, w0, w9
	mov	x0, x8
	mov	x1, x20
	bl	_snd_als300_gcr_write
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_snd_als300_gcr_read
	mov	w8, #1
	str	w8, [x22, #4]
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _TRANSFER_START@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TRANSFER_START@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w0
	mov	x0, x8
	mov	x1, x20
	bl	_snd_als300_gcr_write
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_snd_als300_dbgplay
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_snd_als300_gcr_read
	ldr	w8, [x19, #4]
Lloh17:
	adrp	x9, _FIFO_PAUSE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FIFO_PAUSE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w0
	mov	x0, x8
	mov	x1, x20
	bl	_snd_als300_gcr_write
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_snd_als300_gcr_read
	ldr	w8, [x19, #4]
Lloh22:
	adrp	x9, _FIFO_PAUSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FIFO_PAUSE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	bic	w2, w0, w9
	mov	x0, x8
	mov	x1, x20
	bl	_snd_als300_gcr_write
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	bl	_snd_als300_dbgplay
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock
	bl	_snd_als300_dbgcallleave
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_TRANSFER_START,4,2             ; @TRANSFER_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRIGGER START\n"

l_.str.1:                               ; @.str.1
	.asciz	"TRIGGER STOP\n"

	.comm	_FIFO_PAUSE,4,2                 ; @FIFO_PAUSE
l_.str.2:                               ; @.str.2
	.asciz	"TRIGGER PAUSE\n"

l_.str.3:                               ; @.str.3
	.asciz	"TRIGGER RELEASE\n"

l_.str.4:                               ; @.str.4
	.asciz	"TRIGGER INVALID\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_als300_trigger
.subsections_via_symbols
