	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_mix_get_chunk_sample     ## -- Begin function audio_mix_get_chunk_sample
	.p2align	4, 0x90
_audio_mix_get_chunk_sample:            ## @audio_mix_get_chunk_sample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.2:
	movl	(%r8), %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	xorl	%r9d, %r9d
	cmpq	$0, 24(%rdi)
	setne	%r9b
	cltq
	imulq	%rax, %rdx
	movslq	4(%r8), %rcx
	imulq	%rdx, %rcx
	shlq	$3, %rcx
	addq	8(%rdi,%r9,8), %rcx
	imull	%esi, %eax
	movq	(%rcx,%rax,8), %rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audio_mix_get_chunk_sample     ; -- Begin function audio_mix_get_chunk_sample
	.p2align	2
_audio_mix_get_chunk_sample:            ; @audio_mix_get_chunk_sample
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldp	w9, w8, [x8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w10, w9, #3
	ldr	x11, [x0, #24]
	mov	w12, #16
	mov	w13, #8
	cmp	x11, #0
	csel	x11, x13, x12, eq
	ldr	x11, [x0, x11]
	sbfx	x9, x9, #3, #29
	mul	x9, x9, x2
	mul	x8, x9, x8
	add	x8, x11, x8, lsl #3
	mul	w9, w10, w1
	ldr	x0, [x8, w9, uxtw #3]
LBB0_3:
	ret
LBB0_4:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
