	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScspUpdateSlotAddress
_ScspUpdateSlotAddress:                 ## @ScspUpdateSlotAddress
	.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), %ecx
	movl	4(%rdi), %r9d
	movl	%ecx, %esi
	andl	$-2, %esi
	cmpq	$0, 24(%rdi)
	cmovel	%ecx, %esi
	setne	%cl
	movq	_scsp@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%edx, %esi
	movl	%esi, (%rdi)
	movq	_SoundRam@GOTPCREL(%rip), %r8
	movslq	%esi, %rsi
	leaq	(,%rsi,4), %rax
	addq	(%r8), %rax
	movq	%rax, 32(%rdi)
	subl	%esi, %edx
	sarl	%cl, %edx
	cmpl	%edx, %r9d
	jle	LBB0_2
## %bb.1:
	movl	%edx, 4(%rdi)
	movl	%edx, %r9d
LBB0_2:
	movq	_SCSP_FREQ_LOW_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	%cl, %r9d
	movl	%r9d, 8(%rdi)
	movl	12(%rdi), %esi
	cmpl	%edx, %esi
	jle	LBB0_4
## %bb.3:
	movl	%edx, 12(%rdi)
	movl	%edx, %esi
LBB0_4:
	incl	%esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	leal	-1(%rsi), %eax
	movl	%eax, 16(%rdi)
	subl	%r9d, %esi
	movl	%esi, 20(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scsp,4,2                       ## @scsp
	.comm	_SoundRam,8,3                   ## @SoundRam
	.comm	_SCSP_FREQ_LOW_BITS,4,2         ## @SCSP_FREQ_LOW_BITS
	.no_dead_strip	_ScspUpdateSlotAddress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScspUpdateSlotAddress
_ScspUpdateSlotAddress:                 ; @ScspUpdateSlotAddress
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	cmp	x8, #0
	ldp	w8, w9, [x0]
	and	w10, w8, #0xfffffffe
	csel	w8, w8, w10, eq
Lloh0:
	adrp	x10, _scsp@GOTPAGE
Lloh1:
	ldr	x10, [x10, _scsp@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh3:
	adrp	x11, _SoundRam@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SoundRam@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	add	x11, x11, w8, sxtw #2
	str	x11, [x0, #32]
	cset	w11, ne
	str	w8, [x0]
	sub	w8, w10, w8
	asr	w8, w8, w11
	cmp	w9, w8
	b.le	LBB0_2
; %bb.1:
	str	w8, [x0, #4]
	mov	x9, x8
LBB0_2:
Lloh6:
	adrp	x10, _SCSP_FREQ_LOW_BITS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SCSP_FREQ_LOW_BITS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	str	w9, [x0, #8]
	ldr	w11, [x0, #12]
	cmp	w11, w8
	b.le	LBB0_4
; %bb.3:
	str	w8, [x0, #12]
	mov	x11, x8
LBB0_4:
	add	w8, w11, #1
	lsl	w8, w8, w10
	sub	w10, w8, #1
	sub	w8, w8, w9
	stp	w10, w8, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_scsp,4,2                       ; @scsp
	.comm	_SoundRam,8,3                   ; @SoundRam
	.comm	_SCSP_FREQ_LOW_BITS,4,2         ; @SCSP_FREQ_LOW_BITS
	.no_dead_strip	_ScspUpdateSlotAddress
.subsections_via_symbols
