	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca0132_init_chip
_ca0132_init_chip:                      ## @ca0132_init_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	leaq	64(%r14), %rdi
	callq	_mutex_init
	movq	_SPEAKER_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_DIGITAL_MIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	$0, 48(%r14)
	movq	_VNODES_COUNT@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	jle	LBB0_3
## %bb.1:
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	40(%r14), %rsi
	movq	32(%r14), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$90, (%rcx,%rbx,4)
	movl	$90, (%rdx,%rbx,4)
	movq	$0, (%rsi,%rbx,8)
	movq	$0, (%rdi,%rbx,8)
	incq	%rbx
	movslq	(%r8), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_OUT_EFFECTS_COUNT@GOTPCREL(%rip), %rax
	movq	_IN_EFFECTS_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_4
## %bb.5:
	movq	_ca0132_effects@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r14), %rax
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_4:
	movq	16(%r14), %rax
	jmp	LBB0_11
LBB0_7:
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rbx
	xorl	%edx, %edx
	cmpl	$0, (%rbx)
	setne	%dl
	movl	%edx, (%rax,%rsi,4)
	movq	8(%rcx,%rsi,8), %rdx
	xorl	%ebx, %ebx
	cmpl	$0, (%rdx)
	setne	%bl
	movl	%ebx, 4(%rax,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	cmpl	$0, (%rcx)
	setne	%dl
	movl	%edx, (%rax,%rsi,4)
LBB0_11:
	movq	$0, 24(%r14)
	movq	_PLAY_ENHANCEMENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EFFECT_START_NID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %rcx
	movl	$1, (%rax,%rcx,4)
	movq	_CRYSTAL_VOICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subq	%rdx, %rcx
	movl	$0, (%rax,%rcx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEAKER_OUT,4,2                ## @SPEAKER_OUT
	.comm	_DIGITAL_MIC,4,2                ## @DIGITAL_MIC
	.comm	_VNODES_COUNT,4,2               ## @VNODES_COUNT
	.comm	_OUT_EFFECTS_COUNT,4,2          ## @OUT_EFFECTS_COUNT
	.comm	_IN_EFFECTS_COUNT,4,2           ## @IN_EFFECTS_COUNT
	.comm	_ca0132_effects,8,3             ## @ca0132_effects
	.comm	_PLAY_ENHANCEMENT,8,3           ## @PLAY_ENHANCEMENT
	.comm	_EFFECT_START_NID,8,3           ## @EFFECT_START_NID
	.comm	_CRYSTAL_VOICE,8,3              ## @CRYSTAL_VOICE
	.no_dead_strip	_ca0132_init_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca0132_init_chip
_ca0132_init_chip:                      ; @ca0132_init_chip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	add	x0, x19, #64
	bl	_mutex_init
Lloh0:
	adrp	x8, _SPEAKER_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEAKER_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DIGITAL_MIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIGITAL_MIC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	str	xzr, [x19, #48]
Lloh6:
	adrp	x8, _VNODES_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VNODES_COUNT@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldp	x10, x11, [x19]
	mov	w12, #90
	ldp	x14, x13, [x19, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x15, x9, #2
	str	w12, [x10, x15]
	str	w12, [x11, x15]
	lsl	x15, x9, #3
	str	xzr, [x13, x15]
	str	xzr, [x14, x15]
	add	x9, x9, #1
	ldrsw	x15, [x8]
	cmp	x9, x15
	b.lt	LBB0_2
LBB0_3:
Lloh8:
	adrp	x8, _OUT_EFFECTS_COUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OUT_EFFECTS_COUNT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IN_EFFECTS_COUNT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IN_EFFECTS_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	add	w9, w9, w8
	cmp	w9, #0
	b.le	LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _ca0132_effects@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ca0132_effects@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x8]
	ldr	x8, [x19, #16]
	cmp	w9, #4
	b.hs	LBB0_7
; %bb.5:
	mov	x11, #0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #16]
	b	LBB0_11
LBB0_7:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #16
	movi.4s	v0, #1
	mov	x13, x11
	mov	x14, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x15, x16, [x12, #-16]
	ldp	x17, x0, [x12], #32
	ldr	s1, [x15]
	ld1.s	{ v1 }[1], [x16]
	ld1.s	{ v1 }[2], [x17]
	ld1.s	{ v1 }[3], [x0]
	cmeq.4s	v1, v1, #0
	bic.16b	v1, v0, v1
	str	q1, [x14], #16
	subs	x13, x13, #4
	b.ne	LBB0_8
; %bb.9:
	cmp	x11, x9
	b.eq	LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x11, lsl #3]
	ldr	w12, [x12]
	cmp	w12, #0
	cset	w12, ne
	str	w12, [x8, x11, lsl #2]
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_10
LBB0_11:
	str	xzr, [x19, #24]
Lloh17:
	adrp	x9, _PLAY_ENHANCEMENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PLAY_ENHANCEMENT@GOTPAGEOFF]
Lloh19:
	adrp	x10, _EFFECT_START_NID@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EFFECT_START_NID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	ldr	x10, [x10]
	sub	x9, x9, x10
	mov	w11, #1
	str	w11, [x8, x9, lsl #2]
Lloh23:
	adrp	x9, _CRYSTAL_VOICE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CRYSTAL_VOICE@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	sub	x9, x9, x10
	str	wzr, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEAKER_OUT,4,2                ; @SPEAKER_OUT
	.comm	_DIGITAL_MIC,4,2                ; @DIGITAL_MIC
	.comm	_VNODES_COUNT,4,2               ; @VNODES_COUNT
	.comm	_OUT_EFFECTS_COUNT,4,2          ; @OUT_EFFECTS_COUNT
	.comm	_IN_EFFECTS_COUNT,4,2           ; @IN_EFFECTS_COUNT
	.comm	_ca0132_effects,8,3             ; @ca0132_effects
	.comm	_PLAY_ENHANCEMENT,8,3           ; @PLAY_ENHANCEMENT
	.comm	_EFFECT_START_NID,8,3           ; @EFFECT_START_NID
	.comm	_CRYSTAL_VOICE,8,3              ; @CRYSTAL_VOICE
	.no_dead_strip	_ca0132_init_chip
.subsections_via_symbols
