	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sb16_audio_start_input
_sb16_audio_start_input:                ## @sb16_audio_start_input
	.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), %rbx
	cmpl	$0, 48(%rbx)
	movq	(%rbx), %rax
	movq	_AFMT_S16_LE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_IMODE_INPUT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	je	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.3:
	movq	%rsi, 32(%rbx)
	movl	$1, 12(%rbx)
	movq	%rax, %rcx
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, 40(%rbx)
	movl	$1, 8(%rbx)
LBB0_4:
	movslq	%edx, %rdx
	cmpq	%rcx, %rax
	sete	%cl
	shrq	%cl, %rdx
	decl	%edx
	movq	%rdx, %r12
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	$66, %esi
	callq	_sb_dsp_command
	movzbl	17(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movzbl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movq	(%rbx), %rax
	xorl	%esi, %esi
	cmpq	(%r15), %rax
	setne	%sil
	shll	$4, %esi
	addl	$190, %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	cmpl	$2, 20(%rbx)
	sete	%al
	shlb	$5, %al
	movq	(%rbx), %rcx
	cmpq	(%r15), %rcx
	sete	%cl
	shlb	$4, %cl
	orb	%al, %cl
	movzbl	%cl, %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movzbl	%r12b, %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movq	%r12, %rax
	movzbl	%ah, %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_AFMT_S16_LE,8,3                ## @AFMT_S16_LE
	.comm	_IMODE_INPUT,8,3                ## @IMODE_INPUT
	.no_dead_strip	_sb16_audio_start_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sb16_audio_start_input
_sb16_audio_start_input:                ; @sb16_audio_start_input
	.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
                                        ; kill: def $w2 killed $w2 def $x2
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]
	ldr	w11, [x19, #48]
	ldr	x8, [x19]
Lloh3:
	adrp	x21, _AFMT_S16_LE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AFMT_S16_LE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _IMODE_INPUT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IMODE_INPUT@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	w11, #0
	ccmp	x8, x9, #0, ne
	b.eq	LBB0_2
; %bb.1:
	str	x10, [x19, #40]
	mov	w10, #1
	str	w10, [x19, #8]
	b	LBB0_3
LBB0_2:
	str	x10, [x19, #32]
	mov	w9, #1
	str	w9, [x19, #12]
	mov	x9, x8
LBB0_3:
	sxtw	x10, w2
	cmp	x8, x9
	cset	w8, eq
	lsr	x8, x10, x8
	sub	w22, w8, #1
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #66
	bl	_sb_dsp_command
	ldrb	w1, [x19, #17]
	mov	x0, x19
	bl	_sb_dsp_command
	ldrb	w1, [x19, #16]
	mov	x0, x19
	bl	_sb_dsp_command
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	mov	w8, #206
	mov	w9, #190
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_sb_dsp_command
	ldr	w8, [x19, #20]
	cmp	w8, #2
	cset	w8, eq
	lsl	w1, w8, #5
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w8, eq
	bfi	w1, w8, #4, #1
	mov	x0, x19
	bl	_sb_dsp_command
	and	w1, w22, #0xff
	mov	x0, x19
	bl	_sb_dsp_command
	ubfx	w1, w22, #8, #8
	mov	x0, x19
	bl	_sb_dsp_command
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_AFMT_S16_LE,8,3                ; @AFMT_S16_LE
	.comm	_IMODE_INPUT,8,3                ; @IMODE_INPUT
	.no_dead_strip	_sb16_audio_start_input
.subsections_via_symbols
