	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ca0106_pcm_open_playback_channel
_snd_ca0106_pcm_open_playback_channel:  ## @snd_ca0106_pcm_open_playback_channel
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	16(%rax), %r14
	movq	(%r12), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movslq	%r13d, %r13
	movq	%r15, 16(%rax)
	movq	%r12, 8(%rax)
	movl	%r13d, (%rax)
	movq	%rax, 8(%rbx)
	movq	_snd_ca0106_pcm_free_substream@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_snd_ca0106_playback_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	leaq	(%r13,%r13,2), %rcx
	movq	%r15, 16(%r14,%rcx,8)
	movl	%r13d, (%r14,%rcx,8)
	movl	$1, 4(%r14,%rcx,8)
	movq	%rax, 8(%r14,%rcx,8)
	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_8
## %bb.3:
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %ecx
	callq	_snd_pcm_hw_constraint_step
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	%r12, %rdi
	callq	_snd_pcm_set_sync
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_PCM_FRONT_CHANNEL@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_spi_dacd_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r13,4), %rax
	movq	_spi_dacd_bit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r13,4), %esi
	notl	%esi
	movq	(%r15), %rcx
	andl	(%rcx,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	movq	%r15, %rdi
	callq	_snd_ca0106_spi_write
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_restore_spdif_bits
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_snd_ca0106_pcm_free_substream,4,2 ## @snd_ca0106_pcm_free_substream
	.comm	_snd_ca0106_playback_hw,4,2     ## @snd_ca0106_playback_hw
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ## @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_PCM_FRONT_CHANNEL,4,2          ## @PCM_FRONT_CHANNEL
	.comm	_spi_dacd_reg,8,3               ## @spi_dacd_reg
	.comm	_spi_dacd_bit,8,3               ## @spi_dacd_bit
	.no_dead_strip	_snd_ca0106_pcm_open_playback_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ca0106_pcm_open_playback_channel
_snd_ca0106_pcm_open_playback_channel:  ; @snd_ca0106_pcm_open_playback_channel
	.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, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x24, [x0, #16]
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	sxtw	x23, w19
	stp	x21, x20, [x0, #8]
	str	w19, [x0]
	str	x0, [x22, #8]
Lloh3:
	adrp	x8, _snd_ca0106_pcm_free_substream@GOTPAGE
Lloh4:
	ldr	x8, [x8, _snd_ca0106_pcm_free_substream@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _snd_ca0106_playback_hw@GOTPAGE
Lloh7:
	ldr	x9, [x9, _snd_ca0106_playback_hw@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x22]
	mov	w8, #24
	madd	x8, x23, x8, x24
	mov	w9, #1
	stp	w19, w9, [x8]
	stp	x0, x20, [x8, #8]
Lloh9:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIODS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_snd_pcm_hw_constraint_integer
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh12:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_BYTES@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	w3, #64
	bl	_snd_pcm_hw_constraint_step
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_snd_pcm_set_sync
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _PCM_FRONT_CHANNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCM_FRONT_CHANNEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _spi_dacd_reg@GOTPAGE
Lloh19:
	ldr	x8, [x8, _spi_dacd_reg@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	lsl	x9, x23, #2
	ldrsw	x8, [x8, x9]
Lloh21:
	adrp	x10, _spi_dacd_bit@GOTPAGE
Lloh22:
	ldr	x10, [x10, _spi_dacd_bit@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	ldr	w9, [x10, x9]
	ldr	x10, [x20]
	lsl	x8, x8, #2
	ldr	w11, [x10, x8]
	bic	w1, w11, w9
	str	w1, [x10, x8]
	mov	x0, x20
	bl	_snd_ca0106_spi_write
	tbnz	w0, #31, LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_restore_spdif_bits
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_snd_ca0106_pcm_free_substream,4,2 ; @snd_ca0106_pcm_free_substream
	.comm	_snd_ca0106_playback_hw,4,2     ; @snd_ca0106_playback_hw
	.comm	_SNDRV_PCM_HW_PARAM_PERIODS,4,2 ; @SNDRV_PCM_HW_PARAM_PERIODS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_PCM_FRONT_CHANNEL,4,2          ; @PCM_FRONT_CHANNEL
	.comm	_spi_dacd_reg,8,3               ; @spi_dacd_reg
	.comm	_spi_dacd_bit,8,3               ; @spi_dacd_bit
	.no_dead_strip	_snd_ca0106_pcm_open_playback_channel
.subsections_via_symbols
