	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_mixer_create                ## -- Begin function ct_mixer_create
	.p2align	4, 0x90
_ct_mixer_create:                       ## @ct_mixer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, (%rsi)
	leaq	-32(%rbp), %rdi
	callq	_ct_mixer_get_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-32(%rbp), %rdi
	movq	$0, 24(%rdi)
	movq	%r15, 16(%rdi)
	movq	_mixer_get_output_ports@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_mixer_set_input_left@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_mixer_set_input_right@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_ct_mixer_get_resources
	movq	-32(%rbp), %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	callq	_ct_mixer_destroy
	jmp	LBB0_4
LBB0_2:
	callq	_ct_mixer_topology_build
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mixer_get_output_ports,4,2     ## @mixer_get_output_ports
	.comm	_mixer_set_input_left,4,2       ## @mixer_set_input_left
	.comm	_mixer_set_input_right,4,2      ## @mixer_set_input_right
	.comm	_mixer_resume,4,2               ## @mixer_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_mixer_create                ; -- Begin function ct_mixer_create
	.p2align	2
_ct_mixer_create:                       ; @ct_mixer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	str	xzr, [x1]
	add	x0, sp, #8
	bl	_ct_mixer_get_mem
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	stp	x21, xzr, [x0, #16]
Lloh0:
	adrp	x8, _mixer_get_output_ports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mixer_get_output_ports@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh3:
	adrp	x8, _mixer_set_input_left@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mixer_set_input_left@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _mixer_set_input_right@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mixer_set_input_right@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	bl	_ct_mixer_get_resources
	mov	x20, x0
	ldr	x0, [sp, #8]
	cbz	w20, LBB0_3
; %bb.2:
	bl	_ct_mixer_destroy
	b	LBB0_4
LBB0_3:
	bl	_ct_mixer_topology_build
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mixer_get_output_ports,4,2     ; @mixer_get_output_ports
	.comm	_mixer_set_input_left,4,2       ; @mixer_set_input_left
	.comm	_mixer_set_input_right,4,2      ; @mixer_set_input_right
	.comm	_mixer_resume,4,2               ; @mixer_resume
.subsections_via_symbols
