	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _cs46xx_playback_open_channel
__cs46xx_playback_open_channel:         ## @_cs46xx_playback_open_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
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r15), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	28(%r14), %edi
	callq	_snd_dma_pci_data
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rcx
	addq	$24, %rcx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_snd_dma_alloc_pages
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	_snd_cs46xx_playback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%rbx, 8(%r13)
	movq	_snd_cs46xx_pcm_free_substream@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r15, 16(%rbx)
	movq	%rbx, 16(%r14)
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	_SNDRV_PCM_INFO_MMAP_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	orl	%eax, (%rcx)
LBB0_6:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*(%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	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	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_snd_cs46xx_playback,4,2        ## @snd_cs46xx_playback
	.comm	_snd_cs46xx_pcm_free_substream,4,2 ## @snd_cs46xx_pcm_free_substream
	.comm	_SNDRV_PCM_INFO_MMAP_VALID,4,2  ## @SNDRV_PCM_INFO_MMAP_VALID
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_period_sizes,4,2 ## @hw_constraints_period_sizes
	.no_dead_strip	__cs46xx_playback_open_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _cs46xx_playback_open_channel
__cs46xx_playback_open_channel:         ; @_cs46xx_playback_open_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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x23, [x20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w0, [x19, #28]
	bl	_snd_dma_pci_data
	mov	x1, x0
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, x21, #24
	mov	x0, x22
	bl	_snd_dma_alloc_pages
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _snd_cs46xx_playback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _snd_cs46xx_playback@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x23]
Lloh12:
	adrp	x8, _snd_cs46xx_pcm_free_substream@GOTPAGE
Lloh13:
	ldr	x8, [x8, _snd_cs46xx_pcm_free_substream@GOTPAGEOFF]
	str	x21, [x23, #8]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	str	x20, [x21, #16]
	str	x21, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _SNDRV_PCM_INFO_MMAP_VALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SNDRV_PCM_INFO_MMAP_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_4:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_kfree
LBB0_6:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_snd_cs46xx_playback,4,2        ; @snd_cs46xx_playback
	.comm	_snd_cs46xx_pcm_free_substream,4,2 ; @snd_cs46xx_pcm_free_substream
	.comm	_SNDRV_PCM_INFO_MMAP_VALID,4,2  ; @SNDRV_PCM_INFO_MMAP_VALID
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.comm	_hw_constraints_period_sizes,4,2 ; @hw_constraints_period_sizes
	.no_dead_strip	__cs46xx_playback_open_channel
.subsections_via_symbols
