	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsp_update_timer              ## -- Begin function scsp_update_timer
	.p2align	4, 0x90
_scsp_update_timer:                     ## @scsp_update_timer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_scsp@GOTPCREL(%rip), %r15
	movb	$8, %cl
	subb	4(%r15), %cl
	movb	$8, %bl
	movl	%edi, %eax
	shll	%cl, %eax
	addl	(%r15), %eax
	movl	%eax, (%r15)
	cmpl	$65280, %eax                    ## imm = 0xFF00
	jl	LBB0_6
## %bb.1:
	testb	$64, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movl	$64, %edi
	callq	_scsp_sound_interrupt
LBB0_3:
	testb	$64, 12(%r15)
	jne	LBB0_5
## %bb.4:
	movl	$64, %edi
	callq	_scsp_main_interrupt
LBB0_5:
	addl	$-65280, (%r15)                 ## imm = 0xFFFF0100
LBB0_6:
	subb	20(%r15), %bl
	movl	%r14d, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	addl	16(%r15), %eax
	movl	%eax, 16(%r15)
	cmpl	$65280, %eax                    ## imm = 0xFF00
	jl	LBB0_12
## %bb.7:
	testb	$-128, 8(%r15)
	jne	LBB0_9
## %bb.8:
	movl	$128, %edi
	callq	_scsp_sound_interrupt
LBB0_9:
	testb	$-128, 12(%r15)
	jne	LBB0_11
## %bb.10:
	movl	$128, %edi
	callq	_scsp_main_interrupt
LBB0_11:
	addl	$-65280, 16(%r15)               ## imm = 0xFFFF0100
LBB0_12:
	movb	$8, %cl
	subb	28(%r15), %cl
	movl	%r14d, %eax
	shll	%cl, %eax
	addl	24(%r15), %eax
	movl	%eax, 24(%r15)
	cmpl	$65280, %eax                    ## imm = 0xFF00
	jl	LBB0_18
## %bb.13:
	testb	$1, 9(%r15)
	jne	LBB0_15
## %bb.14:
	movl	$256, %edi                      ## imm = 0x100
	callq	_scsp_sound_interrupt
LBB0_15:
	testb	$1, 13(%r15)
	jne	LBB0_17
## %bb.16:
	movl	$256, %edi                      ## imm = 0x100
	callq	_scsp_main_interrupt
LBB0_17:
	addl	$-65280, 24(%r15)               ## imm = 0xFFFF0100
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.19:
	testb	$4, 9(%r15)
	jne	LBB0_21
## %bb.20:
	movl	$1024, %edi                     ## imm = 0x400
	callq	_scsp_sound_interrupt
LBB0_21:
	testb	$4, 13(%r15)
	jne	LBB0_22
## %bb.23:
	movl	$1024, %edi                     ## imm = 0x400
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_main_interrupt            ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scsp,32,2                      ## @scsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsp_update_timer              ; -- Begin function scsp_update_timer
	.p2align	2
_scsp_update_timer:                     ; @scsp_update_timer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _scsp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _scsp@GOTPAGEOFF]
	mov	w21, #8
	ldp	w9, w8, [x20]
	sub	w8, w21, w8
	lsl	w8, w0, w8
	mov	w22, #65280
	add	w8, w8, w9
	cmp	w8, w22
	str	w8, [x20]
	b.lt	LBB0_6
; %bb.1:
	ldrb	w8, [x20, #8]
	tbnz	w8, #6, LBB0_3
; %bb.2:
	mov	w0, #64
	bl	_scsp_sound_interrupt
LBB0_3:
	ldrb	w8, [x20, #12]
	tbnz	w8, #6, LBB0_5
; %bb.4:
	mov	w0, #64
	bl	_scsp_main_interrupt
LBB0_5:
	ldr	w8, [x20]
	mov	w9, #-65280
	add	w8, w8, w9
	str	w8, [x20]
LBB0_6:
	ldp	w9, w8, [x20, #16]
	sub	w8, w21, w8
	lsl	w8, w19, w8
	add	w8, w8, w9
	cmp	w8, w22
	str	w8, [x20, #16]
	b.lt	LBB0_12
; %bb.7:
	ldrb	w8, [x20, #8]
	tbnz	w8, #7, LBB0_9
; %bb.8:
	mov	w0, #128
	bl	_scsp_sound_interrupt
LBB0_9:
	ldrb	w8, [x20, #12]
	tbnz	w8, #7, LBB0_11
; %bb.10:
	mov	w0, #128
	bl	_scsp_main_interrupt
LBB0_11:
	ldr	w8, [x20, #16]
	mov	w9, #-65280
	add	w8, w8, w9
	str	w8, [x20, #16]
LBB0_12:
	mov	w8, #8
	ldp	w10, w9, [x20, #24]
	sub	w8, w8, w9
	lsl	w8, w19, w8
	mov	w9, #65280
	add	w8, w8, w10
	cmp	w8, w9
	str	w8, [x20, #24]
	b.lt	LBB0_18
; %bb.13:
	ldrb	w8, [x20, #9]
	tbnz	w8, #0, LBB0_15
; %bb.14:
	mov	w0, #256
	bl	_scsp_sound_interrupt
LBB0_15:
	ldrb	w8, [x20, #13]
	tbnz	w8, #0, LBB0_17
; %bb.16:
	mov	w0, #256
	bl	_scsp_main_interrupt
LBB0_17:
	ldr	w8, [x20, #24]
	mov	w9, #-65280
	add	w8, w8, w9
	str	w8, [x20, #24]
LBB0_18:
	cbz	w19, LBB0_23
; %bb.19:
	ldrb	w8, [x20, #9]
	tbnz	w8, #2, LBB0_21
; %bb.20:
	mov	w0, #1024
	bl	_scsp_sound_interrupt
LBB0_21:
	ldrb	w8, [x20, #13]
	tbnz	w8, #2, LBB0_23
; %bb.22:
	mov	w0, #1024
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_scsp_main_interrupt
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_scsp,32,2                      ; @scsp
.subsections_via_symbols
