	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_playback_open
_snd_hdsp_playback_open:                ## @snd_hdsp_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	%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, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	%rax, %rdi
	callq	_hdsp_check_for_iobox
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_hdsp_check_for_firmware
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %r12
	addq	$56, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_snd_pcm_set_sync
	movq	_snd_hdsp_playback_subinfo@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	movl	16(%rax), %eax
	movl	%eax, 16(%r14)
	movl	76(%r15), %eax
	movl	%eax, 24(%r14)
	movq	_HDSP_DMA_AREA_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	%rbx, 64(%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	_hdsp_hw_constraints_period_sizes@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
	cmpq	$0, 48(%r15)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	movl	%eax, 4(%r14)
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_5:
	movq	8(%r15), %rax
	movq	_H9632@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	$192000, 4(%r14)                ## imm = 0x2EE00
	movq	_SNDRV_PCM_RATE_KNOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hdsp_hw_constraints_9632_sample_rates@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_list
LBB0_7:
	movq	8(%r15), %rax
	movq	_H9632@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	40(%r15), %eax
	movl	%eax, 12(%r14)
	movl	36(%r15), %eax
	movl	%eax, 8(%r14)
LBB0_9:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_snd_hdsp_hw_rule_out_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	movl	%edx, %r9d
	callq	_snd_pcm_hw_rule_add
	movl	(%r12), %edx
	movq	_snd_hdsp_hw_rule_out_channels_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	movl	$-1, (%rsp)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %r8
	callq	_snd_pcm_hw_rule_add
	movl	(%r13), %edx
	movq	_snd_hdsp_hw_rule_rate_out_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
	movl	28(%r15), %eax
	movl	%eax, 32(%r15)
	movq	_SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%r15), %rdx
	movq	8(%rdx), %rcx
	andl	%eax, (%rcx)
	movl	24(%r15), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %rax
	movq	_SNDRV_CTL_EVENT_MASK_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_snd_ctl_notify
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_snd_hdsp_playback_subinfo,20,2 ## @snd_hdsp_playback_subinfo
	.comm	_HDSP_DMA_AREA_BYTES,4,2        ## @HDSP_DMA_AREA_BYTES
	.comm	_current,8,3                    ## @current
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_hdsp_hw_constraints_period_sizes,4,2 ## @hdsp_hw_constraints_period_sizes
	.comm	_H9632,8,3                      ## @H9632
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ## @SNDRV_PCM_RATE_KNOT
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hdsp_hw_constraints_9632_sample_rates,4,2 ## @hdsp_hw_constraints_9632_sample_rates
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_hdsp_hw_rule_out_channels,4,2 ## @snd_hdsp_hw_rule_out_channels
	.comm	_snd_hdsp_hw_rule_out_channels_rate,4,2 ## @snd_hdsp_hw_rule_out_channels_rate
	.comm	_snd_hdsp_hw_rule_rate_out_channels,4,2 ## @snd_hdsp_hw_rule_rate_out_channels
	.comm	_SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,2 ## @SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_SNDRV_CTL_EVENT_MASK_INFO,4,2  ## @SNDRV_CTL_EVENT_MASK_INFO
	.no_dead_strip	_snd_hdsp_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_hdsp_playback_open
_snd_hdsp_playback_open:                ; @snd_hdsp_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	x19, x0
	ldr	x20, [x21]
	bl	_hdsp_check_for_iobox
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_hdsp_check_for_firmware
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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_4:
	add	x22, x19, #56
	mov	x0, x22
	bl	_spin_lock_irq
	mov	x0, x21
	bl	_snd_pcm_set_sync
Lloh3:
	adrp	x8, _snd_hdsp_playback_subinfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_hdsp_playback_subinfo@GOTPAGEOFF]
	ldr	w9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x20]
	str	w9, [x20, #16]
	ldr	w8, [x19, #76]
Lloh5:
	adrp	x9, _HDSP_DMA_AREA_BYTES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDSP_DMA_AREA_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
Lloh8:
	adrp	x8, _current@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #72]
	str	x21, [x19, #64]
	mov	x0, x22
	bl	_spin_unlock_irq
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	mov	w3, #24
	bl	_snd_pcm_hw_constraint_msbits
Lloh11:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, _hdsp_hw_constraints_period_sizes@GOTPAGE
Lloh15:
	ldr	x3, [x3, _hdsp_hw_constraints_period_sizes@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
	ldr	x8, [x19, #48]
Lloh16:
	adrp	x22, _H9632@GOTPAGE
Lloh17:
	ldr	x22, [x22, _H9632@GOTPAGEOFF]
Lloh18:
	adrp	x21, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	stp	w8, w8, [x20]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #60928
	movk	w8, #2, lsl #16
	str	w8, [x20, #4]
Lloh20:
	adrp	x8, _SNDRV_PCM_RATE_KNOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SNDRV_PCM_RATE_KNOT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	w2, [x21]
Lloh23:
	adrp	x3, _hdsp_hw_constraints_9632_sample_rates@GOTPAGE
Lloh24:
	ldr	x3, [x3, _hdsp_hw_constraints_9632_sample_rates@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_list
LBB0_8:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldur	d0, [x19, #36]
	str	d0, [x20, #8]
LBB0_10:
Lloh25:
	adrp	x22, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh26:
	ldr	x22, [x22, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh27:
	adrp	x8, _snd_hdsp_hw_rule_out_channels@GOTPAGE
Lloh28:
	ldr	x8, [x8, _snd_hdsp_hw_rule_out_channels@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x19
	mov	x5, x2
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	ldr	w2, [x22]
Lloh30:
	adrp	x8, _snd_hdsp_hw_rule_out_channels_rate@GOTPAGE
Lloh31:
	ldr	x8, [x8, _snd_hdsp_hw_rule_out_channels_rate@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	ldr	w5, [x21]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x19
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	ldr	w2, [x21]
Lloh33:
	adrp	x8, _snd_hdsp_hw_rule_rate_out_channels@GOTPAGE
Lloh34:
	ldr	x8, [x8, _snd_hdsp_hw_rule_rate_out_channels@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	ldr	w5, [x22]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x19
	mov	w6, #-1
	bl	_snd_pcm_hw_rule_add
	ldp	w0, w8, [x19, #24]
	str	w8, [x19, #32]
Lloh36:
	adrp	x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SNDRV_CTL_ELEM_ACCESS_INACTIVE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	x2, [x19, #16]
	ldr	x9, [x2, #8]
	ldr	w10, [x9]
	bic	w8, w10, w8
Lloh39:
	adrp	x10, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh40:
	ldr	x10, [x10, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
	str	w8, [x9]
Lloh41:
	ldr	w8, [x10]
Lloh42:
	adrp	x9, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGE
Lloh43:
	ldr	x9, [x9, _SNDRV_CTL_EVENT_MASK_INFO@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_snd_ctl_notify
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_snd_hdsp_playback_subinfo,20,2 ; @snd_hdsp_playback_subinfo
	.comm	_HDSP_DMA_AREA_BYTES,4,2        ; @HDSP_DMA_AREA_BYTES
	.comm	_current,8,3                    ; @current
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_hdsp_hw_constraints_period_sizes,4,2 ; @hdsp_hw_constraints_period_sizes
	.comm	_H9632,8,3                      ; @H9632
	.comm	_SNDRV_PCM_RATE_KNOT,4,2        ; @SNDRV_PCM_RATE_KNOT
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_hdsp_hw_constraints_9632_sample_rates,4,2 ; @hdsp_hw_constraints_9632_sample_rates
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_snd_hdsp_hw_rule_out_channels,4,2 ; @snd_hdsp_hw_rule_out_channels
	.comm	_snd_hdsp_hw_rule_out_channels_rate,4,2 ; @snd_hdsp_hw_rule_out_channels_rate
	.comm	_snd_hdsp_hw_rule_rate_out_channels,4,2 ; @snd_hdsp_hw_rule_rate_out_channels
	.comm	_SNDRV_CTL_ELEM_ACCESS_INACTIVE,4,2 ; @SNDRV_CTL_ELEM_ACCESS_INACTIVE
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_SNDRV_CTL_EVENT_MASK_INFO,4,2  ; @SNDRV_CTL_EVENT_MASK_INFO
	.no_dead_strip	_snd_hdsp_playback_open
.subsections_via_symbols
