	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdspm_playback_open
_snd_hdspm_playback_open:               ## @snd_hdspm_playback_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_snd_pcm_set_sync
	movq	_snd_hdspm_playback_subinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	cmpq	$0, 32(%r15)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_hdspm_stop_audio
LBB0_2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%rbx, 16(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	movl	$24, %ecx
	callq	_snd_pcm_hw_constraint_msbits
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hw_constraints_period_sizes@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hdspm_hw_constraints_aes32_sample_rates@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
	jmp	LBB0_5
LBB0_4:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_snd_hdspm_hw_rule_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	movl	(%r12), %edx
	movq	_snd_hdspm_hw_rule_channels_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	callq	_snd_pcm_hw_rule_add
	movl	(%rbx), %edx
	movq	_snd_hdspm_hw_rule_rate_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r9d
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	callq	_snd_pcm_hw_rule_add
LBB0_5:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_hdspm_playback_subinfo,4,2 ## @snd_hdspm_playback_subinfo
	.comm	_current,8,3                    ## @current
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_hw_constraints_period_sizes,4,2 ## @hw_constraints_period_sizes
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hdspm_hw_constraints_aes32_sample_rates,4,2 ## @hdspm_hw_constraints_aes32_sample_rates
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_hdspm_hw_rule_channels,4,2 ## @snd_hdspm_hw_rule_channels
	.comm	_snd_hdspm_hw_rule_channels_rate,4,2 ## @snd_hdspm_hw_rule_channels_rate
	.comm	_snd_hdspm_hw_rule_rate_channels,4,2 ## @snd_hdspm_hw_rule_rate_channels
	.no_dead_strip	_snd_hdspm_playback_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdspm_playback_open
_snd_hdspm_playback_open:               ; @snd_hdspm_playback_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
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x19, [x21]
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irq
	mov	x0, x21
	bl	_snd_pcm_set_sync
Lloh0:
	adrp	x8, _snd_hdspm_playback_subinfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_hdspm_playback_subinfo@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_hdspm_stop_audio
LBB0_2:
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #24]
	str	x21, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	mov	w3, #24
	bl	_snd_pcm_hw_constraint_msbits
Lloh6:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, _hw_constraints_period_sizes@GOTPAGE
Lloh10:
	ldr	x3, [x3, _hw_constraints_period_sizes@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, _hdspm_hw_constraints_aes32_sample_rates@GOTPAGE
Lloh15:
	ldr	x3, [x3, _hdspm_hw_constraints_aes32_sample_rates@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x21, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh18:
	adrp	x8, _snd_hdspm_hw_rule_channels@GOTPAGE
Lloh19:
	ldr	x8, [x8, _snd_hdspm_hw_rule_channels@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x4, x20
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	ldr	w2, [x21]
Lloh21:
	adrp	x8, _snd_hdspm_hw_rule_channels_rate@GOTPAGE
Lloh22:
	ldr	x8, [x8, _snd_hdspm_hw_rule_channels_rate@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x22, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
	ldr	w5, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x4, x20
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	ldr	w2, [x22]
Lloh26:
	adrp	x8, _snd_hdspm_hw_rule_rate_channels@GOTPAGE
Lloh27:
	ldr	x8, [x8, _snd_hdspm_hw_rule_rate_channels@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	x4, x20
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
LBB0_5:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_hdspm_playback_subinfo,4,2 ; @snd_hdspm_playback_subinfo
	.comm	_current,8,3                    ; @current
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_hw_constraints_period_sizes,4,2 ; @hw_constraints_period_sizes
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hdspm_hw_constraints_aes32_sample_rates,4,2 ; @hdspm_hw_constraints_aes32_sample_rates
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_hdspm_hw_rule_channels,4,2 ; @snd_hdspm_hw_rule_channels
	.comm	_snd_hdspm_hw_rule_channels_rate,4,2 ; @snd_hdspm_hw_rule_channels_rate
	.comm	_snd_hdspm_hw_rule_rate_channels,4,2 ; @snd_hdspm_hw_rule_rate_channels
	.no_dead_strip	_snd_hdspm_playback_open
.subsections_via_symbols
