	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ReadFile                    ## -- Begin function Cs2ReadFile
	.p2align	4, 0x90
_Cs2ReadFile:                           ## @Cs2ReadFile
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	shll	$8, %edx
	movzwl	%dx, %edx
	movslq	12(%rax), %r12
	orq	%rdx, %r12
	movl	16(%rax), %edx
	movl	%edx, %esi
	sarl	$8, %esi
	movslq	%esi, %r15
	shll	$8, %edx
	movzwl	%dx, %edx
	movslq	20(%rax), %rbx
	orq	%rdx, %rbx
	movq	88(%rax), %rsi
	shlq	$4, %rbx
	movl	(%rsi,%rbx), %eax
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movslq	%eax, %r13
	movq	8(%rsi,%rbx), %rdi
	addq	%r12, %rdi
	callq	_Cs2FADToTrack
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_Cs2SetupDefaultPlayStats
	movq	(%r14), %rax
	movq	$0, 96(%rax)
	movq	88(%rax), %rcx
	movq	8(%rcx,%rbx), %rcx
	addq	%rcx, %r12
	movq	%r12, 32(%rax)
	movq	%r12, 72(%rax)
	addq	%rcx, %r13
	movq	%r13, 80(%rax)
	movl	$8, 4(%rax)
	movl	$1, %edi
	callq	_Cs2SetTiming
	movq	(%r14), %rax
	addq	56(%rax), %r15
	movq	%r15, 64(%rax)
	movq	_CDB_STAT_PLAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movq	_CDB_PLAYTYPE_FILE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	32(%rax), %rdi
	movq	40(%rax), %rax
	callq	*(%rax)
	movq	(%r14), %rax
	movl	28(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 24(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_STAT_PLAY,4,2              ## @CDB_STAT_PLAY
	.comm	_CDB_PLAYTYPE_FILE,4,2          ## @CDB_PLAYTYPE_FILE
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ReadFile                    ; -- Begin function Cs2ReadFile
	.p2align	2
_Cs2ReadFile:                           ; @Cs2ReadFile
	.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
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldp	w9, w10, [x8, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	lsl	w9, w9, #8
	and	x9, x9, #0xff00
	orr	x20, x9, x10
	ldp	w9, w10, [x8, #16]
	asr	w21, w9, #8
	ubfiz	w9, w9, #8, #8
	orr	w9, w9, w10
	ldr	x10, [x8, #88]
	sbfiz	x22, x9, #4, #32
	add	x9, x10, x22
	ldr	w10, [x9]
	ldr	w8, [x8]
	add	w10, w10, w8
	sub	w10, w10, #1
	sdiv	w23, w10, w8
	ldr	x8, [x9, #8]
	add	x0, x8, x20
	bl	_Cs2FADToTrack
	mov	w1, #0
	bl	_Cs2SetupDefaultPlayStats
	ldr	x8, [x19]
	str	xzr, [x8, #96]
	ldr	x9, [x8, #88]
	add	x9, x9, x22
	ldr	x9, [x9, #8]
	add	x10, x9, x20
	str	x10, [x8, #32]
	add	x9, x9, w23, sxtw
	stp	x10, x9, [x8, #72]
	mov	w9, #8
	str	w9, [x8, #4]
	mov	w0, #1
	bl	_Cs2SetTiming
	ldr	x8, [x19]
	ldr	x9, [x8, #56]
	add	x9, x9, w21, sxtw
	str	x9, [x8, #64]
Lloh2:
	adrp	x9, _CDB_STAT_PLAY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CDB_STAT_PLAY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _CDB_PLAYTYPE_FILE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CDB_PLAYTYPE_FILE@GOTPAGEOFF]
	str	w9, [x8, #28]
Lloh7:
	ldr	w9, [x10]
	str	w9, [x8, #48]
	ldp	x0, x9, [x8, #32]
	ldr	x8, [x9]
	blr	x8
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	bl	_doCDReport
Lloh8:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #24]
	orr	w8, w10, w8
	str	w8, [x9, #24]
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_PLAY,4,2              ; @CDB_STAT_PLAY
	.comm	_CDB_PLAYTYPE_FILE,4,2          ; @CDB_PLAYTYPE_FILE
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
.subsections_via_symbols
