	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6000_pcm_open
_s6000_pcm_open:                        ## @s6000_pcm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_s6000_pcm_hardware@GOTPCREL(%rip), %rsi
	callq	_snd_soc_set_runtime_hwparams
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %ecx
	callq	_snd_pcm_hw_constraint_step
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %ecx
	callq	_snd_pcm_hw_constraint_step
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_SNDRV_PCM_HW_PARAM_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_pcm_hw_constraint_integer
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%r14), %r14d
	movq	%r15, %rdi
	callq	_spin_unlock
	cmpl	$-1, %r14d
	je	LBB0_6
## %bb.5:
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	callq	_snd_pcm_hw_constraint_minmax
	testl	%eax, %eax
	js	LBB0_9
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_init
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_s6000_pcm_hardware,4,2         ## @s6000_pcm_hardware
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_s6000_pcm_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6000_pcm_open
_s6000_pcm_open:                        ; @s6000_pcm_open
	.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
	ldp	x19, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh0:
	adrp	x1, _s6000_pcm_hardware@GOTPAGE
Lloh1:
	ldr	x1, [x1, _s6000_pcm_hardware@GOTPAGEOFF]
	bl	_snd_soc_set_runtime_hwparams
Lloh2:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #16
	bl	_snd_pcm_hw_constraint_step
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh5:
	adrp	x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_BUFFER_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w3, #16
	bl	_snd_pcm_hw_constraint_step
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh8:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	w20, [x20]
	mov	x0, x21
	bl	_spin_unlock
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x20
	bl	_snd_pcm_hw_constraint_minmax
	tbnz	w0, #31, LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x20, x0
	bl	_spin_lock_init
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_s6000_pcm_hardware,4,2         ; @s6000_pcm_hardware
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_BUFFER_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_BUFFER_BYTES
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_s6000_pcm_open
.subsections_via_symbols
