	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssf_gen                        ## -- Begin function ssf_gen
	.p2align	4, 0x90
_ssf_gen:                               ## @ssf_gen
	.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
	pushq	%rax
	movl	$11816, %eax                    ## imm = 0x2E28
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AO_SUCCESS@GOTPCREL(%rip), %rax
	testl	%esi, %esi
	jle	LBB0_14
## %bb.1:
	movq	%rdi, -11848(%rbp)              ## 8-byte Spill
	movl	%esi, %r13d
	leaq	-11840(%rbp), %r15
	leaq	-11836(%rbp), %rbx
	leaq	-11832(%rbp), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -11840(%rbp)
	movl	$0, -11836(%rbp)
	movl	$256, %edi                      ## imm = 0x100
	callq	_M68KExec
	movl	$1, %edi
	callq	_scsp_update_timer
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_scsp_update
	xorl	%eax, %eax
	callq	_scsp_update_monitor
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_ScspConvert32uto16s
	movl	-11832(%rbp), %eax
	movl	-11828(%rbp), %ecx
	movl	%eax, -5936(%rbp,%r14,4)
	movl	%ecx, -11824(%rbp,%r14,4)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_2
## %bb.3:
	movq	_total_samples@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	movq	_decaybegin@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_decayend@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r9, %r10
	subq	%r11, %r10
	shlq	$2, %r13
	movq	%rdi, %rcx
	shlq	$8, %rcx
	movq	%r11, %rax
	shlq	$8, %rax
	subq	%rax, %rcx
	xorl	%esi, %esi
	movq	-11848(%rbp), %rbx              ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-5936(%rbp,%rsi), %eax
	movl	-11824(%rbp,%rsi), %edx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	movq	%rdi, (%r8)
	movl	%eax, (%rbx,%rsi,2)
	movl	%edx, 4(%rbx,%rsi,2)
	addq	$4, %rsi
	addq	$256, %rcx                      ## imm = 0x100
	cmpq	%rsi, %r13
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r11, %rdi
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r9, %rdi
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	orq	%r10, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%r10
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r10d
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$256, %edx                      ## imm = 0x100
	subl	%eax, %edx
	movl	-5936(%rbp,%rsi), %eax
	imull	%edx, %eax
	sarl	$8, %eax
	movl	%eax, -5936(%rbp,%rsi)
	imull	-11824(%rbp,%rsi), %edx
	sarl	$8, %edx
	movl	%edx, -11824(%rbp,%rsi)
	jmp	LBB0_12
LBB0_13:
	movq	_AO_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movl	$0, -5936(%rbp,%rsi)
	movl	$0, -11824(%rbp,%rsi)
	movq	_AO_FAIL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$11816, %rsp                    ## imm = 0x2E28
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_total_samples,8,3              ## @total_samples
	.comm	_decaybegin,8,3                 ## @decaybegin
	.comm	_decayend,8,3                   ## @decayend
	.comm	_AO_FAIL,4,2                    ## @AO_FAIL
	.comm	_AO_SUCCESS,4,2                 ## @AO_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssf_gen                        ; -- Begin function ssf_gen
	.p2align	2
_ssf_gen:                               ; @ssf_gen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w9, #11792
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #3600
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	w20, w1
	add	x21, sp, #24
	add	x22, sp, #1, lsl #12            ; =4096
	add	x22, x22, #1808
	mov	x23, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	mov	w0, #256
	bl	_M68KExec
	mov	w0, #1
	bl	_scsp_update_timer
	add	x0, sp, #12
	add	x1, sp, #8
	mov	w2, #1
	bl	_scsp_update
	bl	_scsp_update_monitor
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #16
	mov	w3, #1
	bl	_ScspConvert32uto16s
	ldp	w8, w9, [sp, #16]
	str	w8, [x22], #4
	str	w9, [x21], #4
	subs	x23, x23, #1
	b.ne	LBB0_2
; %bb.3:
Lloh5:
	adrp	x8, _total_samples@GOTPAGE
Lloh6:
	ldr	x8, [x8, _total_samples@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh7:
	adrp	x10, _decaybegin@GOTPAGE
Lloh8:
	ldr	x10, [x10, _decaybegin@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x10]
Lloh10:
	adrp	x10, _decayend@GOTPAGE
Lloh11:
	ldr	x10, [x10, _decayend@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x10]
	sub	x14, x12, x11
	lsl	x10, x9, #8
	sub	x15, x10, x11, lsl #8
	add	x13, sp, #24
	add	x16, sp, #1, lsl #12            ; =4096
	add	x16, x16, #1808
Lloh13:
	adrp	x10, _AO_SUCCESS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AO_SUCCESS@GOTPAGEOFF]
	mov	w17, #256
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x16]
	ldr	w1, [x13]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	str	x9, [x8]
	add	x13, x13, #4
	stp	w0, w1, [x19], #8
	add	x16, x16, #4
	add	x15, x15, #256
	subs	x20, x20, #1
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x11
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x9, x12
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sdiv	x0, x15, x14
	sub	w1, w17, w0
	ldr	w0, [x16]
	mul	w0, w1, w0
	asr	w0, w0, #8
	str	w0, [x16]
	ldr	w2, [x13]
	mul	w1, w2, w1
	asr	w1, w1, #8
	str	w1, [x13]
	b	LBB0_5
LBB0_9:
Lloh15:
	adrp	x10, _AO_SUCCESS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AO_SUCCESS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	str	wzr, [x16]
	str	wzr, [x13]
Lloh17:
	adrp	x10, _AO_FAIL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _AO_FAIL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x10]
	ldur	x8, [x29, #-56]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #3600
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_total_samples,8,3              ; @total_samples
	.comm	_decaybegin,8,3                 ; @decaybegin
	.comm	_decayend,8,3                   ; @decayend
	.comm	_AO_FAIL,4,2                    ; @AO_FAIL
	.comm	_AO_SUCCESS,4,2                 ; @AO_SUCCESS
.subsections_via_symbols
