	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_update_sample_idx
_channel_update_sample_idx:             ## @channel_update_sample_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_FP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %r8b
	leal	-3(%r8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%edx, %ecx
	movq	16(%rdi), %r10
	sarl	$3, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r9d
	imull	%esi, %r9d
	addl	4(%rdi), %r9d
	movl	%r9d, %eax
	movl	%r8d, %ecx
	sarl	%cl, %eax
	cltq
	addq	8(%rdi), %rax
	movq	%rax, 8(%rdi)
	movq	(%r10), %rcx
	subq	%rcx, %rax
	jle	LBB0_7
## %bb.1:
	movl	8(%r10), %esi
	cmpl	$2, %esi
	jl	LBB0_6
## %bb.2:
	movq	%rax, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rsi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	addq	%rdx, %rcx
LBB0_6:
	movq	%rcx, 8(%rdi)
LBB0_7:
	movq	_FP_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r9d
	movl	%r9d, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FP_SHIFT,4,2                   ## @FP_SHIFT
	.comm	_FP_MASK,4,2                    ## @FP_MASK
	.no_dead_strip	_channel_update_sample_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_update_sample_idx
_channel_update_sample_idx:             ; @channel_update_sample_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FP_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FP_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	sub	w8, w9, #3
	ldp	w10, w11, [x0]
	lsl	w8, w10, w8
	asr	w10, w2, #3
	sdiv	w8, w8, w10
	madd	w8, w8, w1, w11
	asr	w9, w8, w9
	ldp	x10, x11, [x0, #8]
	add	x10, x10, w9, sxtw
	str	x10, [x0, #8]
	ldr	x9, [x11]
	subs	x10, x10, x9
	b.le	LBB0_4
; %bb.1:
	ldr	w11, [x11, #8]
	cmp	w11, #2
	b.lt	LBB0_3
; %bb.2:
	sdiv	x12, x10, x11
	msub	x10, x12, x11, x10
	add	x9, x10, x9
LBB0_3:
	str	x9, [x0, #8]
LBB0_4:
Lloh3:
	adrp	x9, _FP_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FP_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x0, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FP_SHIFT,4,2                   ; @FP_SHIFT
	.comm	_FP_MASK,4,2                    ; @FP_MASK
	.no_dead_strip	_channel_update_sample_idx
.subsections_via_symbols
