	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb16_audio_trigger
_sb16_audio_trigger:                    ## @sb16_audio_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
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r12
	movl	(%r12), %ebx
	andl	%esi, %ebx
	movl	4(%r12), %eax
	andl	%eax, %esi
	movl	%esi, %r15d
	orl	%ebx, %r15d
	je	LBB0_1
## %bb.2:
	movl	%edi, %r14d
	testl	%esi, %esi
	je	LBB0_7
## %bb.3:
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	movl	32(%r12), %esi
	movl	24(%r12), %ecx
	movl	28(%r12), %edx
	movl	%r14d, %edi
	callq	_sb16_audio_start_input
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_8:
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.10:
	movl	20(%r12), %esi
	movl	12(%r12), %ecx
	movl	16(%r12), %edx
	movl	%r14d, %edi
	callq	_sb16_audio_start_input
	jmp	LBB0_12
LBB0_1:
	movq	%r12, %rdi
	movl	$208, %esi
	callq	_sb_dsp_command
LBB0_12:
	movl	%r15d, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	32(%r12), %esi
	movl	24(%r12), %ecx
	movl	28(%r12), %edx
	movl	%r14d, %edi
	callq	_sb16_audio_output_block
	testl	%ebx, %ebx
	jne	LBB0_8
	jmp	LBB0_12
LBB0_11:
	movl	20(%r12), %esi
	movl	12(%r12), %ecx
	movl	16(%r12), %edx
	movl	%r14d, %edi
	callq	_sb16_audio_output_block
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.no_dead_strip	_sb16_audio_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb16_audio_trigger
_sb16_audio_trigger:                    ; @sb16_audio_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
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x19, [x8]
	ldp	w9, w8, [x19]
	and	w21, w9, w1
	and	w22, w8, w1
	orr	w9, w22, w21
	cbz	w9, LBB0_9
; %bb.1:
	mov	x20, x0
	cbz	w22, LBB0_5
; %bb.2:
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.4:
	ldp	w2, w1, [x19, #28]
	ldr	w3, [x19, #24]
	mov	x0, x20
	bl	_sb16_audio_start_input
LBB0_5:
	cbz	w21, LBB0_10
LBB0_6:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.8:
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x19, #12]
	mov	x0, x20
	bl	_sb16_audio_start_input
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	w1, #208
	bl	_sb_dsp_command
LBB0_10:
	orr	w8, w22, w21
	str	w8, [x19, #8]
	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
LBB0_11:
	ldp	w2, w1, [x19, #28]
	ldr	w3, [x19, #24]
	mov	x0, x20
	bl	_sb16_audio_output_block
	cbnz	w21, LBB0_6
	b	LBB0_10
LBB0_12:
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x19, #12]
	mov	x0, x20
	bl	_sb16_audio_output_block
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.no_dead_strip	_sb16_audio_trigger
.subsections_via_symbols
