	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis_capture_open
_sis_capture_open:                      ## @sis_capture_open
	.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
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	(%r14), %r15
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	16(%rbx), %eax
	movq	_VOICE_IN_USE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %r13
	addq	$16, %r13
	orl	%eax, %ecx
	movl	%ecx, 16(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, 24(%rbx)
	movq	%r13, 8(%r15)
	movq	_sis_capture_hw_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_AC97_RATES_ADC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_snd_pcm_limit_hw_rates
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$9, %edx
	movl	$65529, %ecx                    ## imm = 0xFFF9
	callq	_snd_pcm_hw_constraint_minmax
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$9, %edx
	movl	$65529, %ecx                    ## imm = 0xFFF9
	callq	_snd_pcm_hw_constraint_minmax
	movq	%r14, %rdi
	callq	_snd_pcm_set_sync
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VOICE_IN_USE,4,2               ## @VOICE_IN_USE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_sis_capture_hw_info,4,2        ## @sis_capture_hw_info
	.comm	_AC97_RATES_ADC,8,3             ## @AC97_RATES_ADC
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_sis_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis_capture_open
_sis_capture_open:                      ; @sis_capture_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldr	x20, [x19]
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x23, x21
	ldr	w8, [x23, #16]!
Lloh0:
	adrp	x9, _VOICE_IN_USE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VOICE_IN_USE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	orr	w8, w9, w8
	str	w8, [x21, #16]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	str	x19, [x21, #24]
Lloh6:
	adrp	x8, _sis_capture_hw_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sis_capture_hw_info@GOTPAGEOFF]
	str	x23, [x20, #8]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _AC97_RATES_ADC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AC97_RATES_ADC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x20]
	mov	x0, x20
	bl	_snd_pcm_limit_hw_rates
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #65529
	bl	_snd_pcm_hw_constraint_minmax
Lloh15:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #65529
	bl	_snd_pcm_hw_constraint_minmax
	mov	x0, x19
	bl	_snd_pcm_set_sync
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VOICE_IN_USE,4,2               ; @VOICE_IN_USE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_sis_capture_hw_info,4,2        ; @sis_capture_hw_info
	.comm	_AC97_RATES_ADC,8,3             ; @AC97_RATES_ADC
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.no_dead_strip	_sis_capture_open
.subsections_via_symbols
