	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cs46xx_dsp_spos_create
LCPI0_0:
	.long	48000                           ## 0xbb80
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cs46xx_dsp_spos_create
	.p2align	4, 0x90
_cs46xx_dsp_spos_create:                ## @cs46xx_dsp_spos_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	$0, 104(%rax)
	movq	_DSP_MAX_SYMBOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_vmalloc
	movq	%rax, 88(%rbx)
	movq	$0, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movq	_DSP_CODE_BYTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_kmalloc
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	_DSP_MAX_MODULES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movl	(%r15), %esi
	callq	_kmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [48000,32768,32768,32768]
	movups	%xmm0, (%rbx)
	movl	$32768, 16(%rbx)                ## imm = 0x8000
	movq	_SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPCREL(%rip), %r12
	movzbl	(%r12), %edi
	callq	__wrap_all_bits
	movq	%rax, %r14
	shll	$24, %r14d
	movzbl	1(%r12), %edi
	callq	__wrap_all_bits
	movq	%rax, %r15
	shll	$16, %r15d
	orl	%r14d, %r15d
	movzbl	3(%r12), %edi
	callq	__wrap_all_bits
	orl	%r15d, %eax
	orl	$12288, %eax                    ## imm = 0x3000
	movl	%eax, 24(%rbx)
	movl	%eax, 20(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_cs46xx_dsp_spos_destroy
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DSP_MAX_SYMBOLS,4,2            ## @DSP_MAX_SYMBOLS
	.comm	_DSP_CODE_BYTE_SIZE,4,2         ## @DSP_CODE_BYTE_SIZE
	.comm	_DSP_MAX_MODULES,4,2            ## @DSP_MAX_MODULES
	.comm	_SNDRV_PCM_DEFAULT_CON_SPDIF,4,2 ## @SNDRV_PCM_DEFAULT_CON_SPDIF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cs46xx_dsp_spos_create
lCPI0_0:
	.long	48000                           ; 0xbb80
	.long	32768                           ; 0x8000
	.long	32768                           ; 0x8000
	.long	32768                           ; 0x8000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cs46xx_dsp_spos_create
	.p2align	2
_cs46xx_dsp_spos_create:                ; @cs46xx_dsp_spos_create
	.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	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #112
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	str	xzr, [x19, #104]
Lloh2:
	adrp	x8, _DSP_MAX_SYMBOLS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSP_MAX_SYMBOLS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	bl	_vmalloc
	stp	x0, xzr, [x19, #88]
	cbz	x0, LBB0_5
; %bb.2:
	stp	xzr, xzr, [x19, #72]
Lloh5:
	adrp	x8, _DSP_CODE_BYTE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSP_CODE_BYTE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_5
; %bb.3:
	stp	xzr, xzr, [x19, #40]
	str	xzr, [x19, #56]
Lloh8:
	adrp	x8, _DSP_MAX_MODULES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DSP_MAX_MODULES@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w0, w8, #2
	ldr	w1, [x21]
	bl	_kmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19]
	mov	w8, #32768
	str	w8, [x19, #16]
Lloh13:
	adrp	x21, _SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SNDRV_PCM_DEFAULT_CON_SPDIF@GOTPAGEOFF]
	ldrb	w0, [x21]
	bl	__wrap_all_bits
	lsl	w22, w0, #24
	ldrb	w0, [x21, #1]
	bl	__wrap_all_bits
	mov	x20, x0
	ldrb	w0, [x21, #3]
	bl	__wrap_all_bits
	orr	w8, w22, w20, lsl #16
	orr	w8, w8, w0
	orr	w8, w8, #0x3000
	stp	w8, w8, [x19, #20]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_cs46xx_dsp_spos_destroy
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdr	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DSP_MAX_SYMBOLS,4,2            ; @DSP_MAX_SYMBOLS
	.comm	_DSP_CODE_BYTE_SIZE,4,2         ; @DSP_CODE_BYTE_SIZE
	.comm	_DSP_MAX_MODULES,4,2            ; @DSP_MAX_MODULES
	.comm	_SNDRV_PCM_DEFAULT_CON_SPDIF,4,2 ; @SNDRV_PCM_DEFAULT_CON_SPDIF
.subsections_via_symbols
