	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_capture_apu
_init_capture_apu:                      ## @init_capture_apu
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movl	(%rax,%r15,4), %r14d
	movl	%r9d, (%rcx,%r15,4)
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	$1, %r8d
	callq	_snd_es1968_program_wavecache
	subl	(%rbx), %r13d
	movl	%r13d, %eax
	shrl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzwl	%ax, %ecx
	movq	16(%r12), %rax
	movl	%ecx, (%rax,%r15,4)
	movl	%ecx, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$5, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$9, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$10, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$11, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$12, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$13, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$14, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	movl	$8, %ecx
	callq	_apu_set_register
	shrl	$9, %r13d
	andl	$48896, %r13d                   ## imm = 0xBF00
	orl	$16384, %r13d                   ## imm = 0x4000
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	movl	%r13d, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$5, %edx
	movl	%r15d, %ecx
	callq	_apu_set_register
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r15d, %eax
	movzwl	%ax, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$6, %edx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$7, %edx
	movl	%r15d, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	movl	$240, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$9, %edx
	xorl	%ecx, %ecx
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$10, %edx
	movl	$36616, %ecx                    ## imm = 0x8F08
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$11, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_apu_set_register
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$16399, %ecx                    ## imm = 0x400F
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apu_set_register               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_init_capture_apu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_capture_apu
_init_capture_apu:                      ; @init_capture_apu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x22, x4
	mov	x23, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x24, x1
	mov	x20, x0
	sbfiz	x26, x2, #2, #32
	ldp	x8, x9, [x1]
	ldr	w21, [x8, x26]
	str	w5, [x9, x26]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w4, #1
	bl	_snd_es1968_program_wavecache
	ldr	w8, [x20]
	sub	w25, w23, w8
	ubfx	w23, w25, #1, #16
	ldr	x8, [x24, #16]
	str	w23, [x8, x26]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #3
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #5
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #6
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #7
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #9
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #10
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #11
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #12
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #13
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #14
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #15
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	mov	w3, #8
	bl	_apu_set_register
	lsr	w8, w25, #9
	and	w8, w8, #0xff00
	orr	w3, w8, #0x4000
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #5
	mov	x3, x23
	bl	_apu_set_register
	add	w8, w22, w25, lsr #1
	and	w3, w8, #0xffff
	mov	x0, x20
	mov	x1, x21
	mov	w2, #6
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #7
	mov	x3, x22
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	mov	w3, #240
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #9
	mov	w3, #0
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #10
	mov	w3, #36616
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #11
	mov	x3, x19
	bl	_apu_set_register
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #16399
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_apu_set_register
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_init_capture_apu
.subsections_via_symbols
