	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_mixer_get_mem
_ct_mixer_get_mem:                      ## @ct_mixer_get_mem
	.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	$0, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_NUM_CT_AMIXERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHN_NUM@GOTPCREL(%rip), %r12
	imull	(%r12), %edi
	shll	$3, %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_NUM_CT_SUMS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%r12), %edi
	shll	$3, %edi
	movl	(%rbx), %esi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%r15, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rdi
	callq	_kfree
LBB0_6:
	negl	%ebx
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NUM_CT_AMIXERS,4,2             ## @NUM_CT_AMIXERS
	.comm	_CHN_NUM,4,2                    ## @CHN_NUM
	.comm	_NUM_CT_SUMS,4,2                ## @NUM_CT_SUMS
	.no_dead_strip	_ct_mixer_get_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ct_mixer_get_mem
_ct_mixer_get_mem:                      ; @ct_mixer_get_mem
	.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
	str	xzr, [x0]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _NUM_CT_AMIXERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_CT_AMIXERS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x22, _CHN_NUM@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CHN_NUM@GOTPAGEOFF]
	ldr	w9, [x22]
	mul	w8, w8, w9
	lsl	w0, w8, #3
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _NUM_CT_SUMS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NUM_CT_SUMS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x22]
	mul	w8, w8, w9
	lsl	w0, w8, #3
	ldr	w1, [x21]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	w21, #0
	str	x19, [x20]
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_kfree
LBB0_7:
	neg	w21, w20
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NUM_CT_AMIXERS,4,2             ; @NUM_CT_AMIXERS
	.comm	_CHN_NUM,4,2                    ; @CHN_NUM
	.comm	_NUM_CT_SUMS,4,2                ; @NUM_CT_SUMS
	.no_dead_strip	_ct_mixer_get_mem
.subsections_via_symbols
