	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2PlayDisc                    ## -- Begin function Cs2PlayDisc
	.p2align	4, 0x90
_Cs2PlayDisc:                           ## @Cs2PlayDisc
	.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	16(%rax), %ecx
	movl	24(%rax), %r15d
	movzbl	%cl, %edi
	shll	$16, %edi
	orl	20(%rax), %edi
	movzbl	%r15b, %r13d
	shll	$16, %r13d
	movl	28(%rax), %r12d
	movl	%r15d, %ebx
	sarl	$8, %ebx
	cmpl	$16777215, %edi                 ## imm = 0xFFFFFF
	je	LBB0_8
## %bb.1:
	cmpl	$255, %ebx
	je	LBB0_8
## %bb.2:
	testl	$8388608, %edi                  ## imm = 0x800000
	jne	LBB0_3
## %bb.5:
	testl	%edi, %edi
	movl	$256, %r14d                     ## imm = 0x100
	cmovnel	%edi, %r14d
	movl	%r14d, %eax
	sarl	$8, %eax
	movslq	%eax, %rdi
	testl	$32768, %r15d                   ## imm = 0x8000
	jne	LBB0_7
## %bb.6:
	movq	%rdi, %r15
	movl	$1, %esi
	callq	_Cs2SetupDefaultPlayStats
	movq	_Cs2Area@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, (%rax)
	movq	%r15, 64(%rax)
	movslq	%r14d, %rcx
	movq	%rdx, %r14
	movq	%rcx, 56(%rax)
	jmp	LBB0_8
LBB0_3:
	andl	$1048575, %edi                  ## imm = 0xFFFFF
	movl	%edi, (%rax)
	callq	_Cs2FADToTrack
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_Cs2SetupDefaultPlayStats
	testl	$32768, %r15d                   ## imm = 0x8000
	jne	LBB0_8
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	jmp	LBB0_8
LBB0_7:
	xorl	%esi, %esi
	callq	_Cs2SetupDefaultPlayStats
	movq	_Cs2Area@GOTPCREL(%rip), %r14
LBB0_8:
	orl	%r12d, %r13d
	andl	$127, %ebx
	cmpl	$127, %ebx
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movl	%ebx, 8(%rax)
LBB0_10:
	cmpl	$16777215, %r13d                ## imm = 0xFFFFFF
	je	LBB0_20
## %bb.11:
	testl	$8388608, %r13d                 ## imm = 0x800000
	jne	LBB0_12
## %bb.13:
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.14:
	addl	$256, %r13d                     ## imm = 0x100
	testb	%r12b, %r12b
	jne	LBB0_16
## %bb.15:
	orl	$99, %r13d
LBB0_16:
	movl	%r13d, %edi
	jmp	LBB0_18
LBB0_12:
	movq	(%r14), %rax
	andl	$1048575, %r13d                 ## imm = 0xFFFFF
	addl	(%rax), %r13d
	jmp	LBB0_19
LBB0_17:
	movl	$65535, %edi                    ## imm = 0xFFFF
LBB0_18:
	callq	_Cs2TrackToFAD
	movq	%rax, %r13
	movq	(%r14), %rax
LBB0_19:
	movl	%r13d, 12(%rax)
LBB0_20:
	movl	$1, %edi
	callq	_Cs2SetTiming
	movq	_CDB_STAT_PLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, 36(%rcx)
	movq	_CDB_PLAYTYPE_SECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rcx)
	movq	40(%rcx), %rax
	movl	4(%rcx), %edi
	callq	*(%rax)
	movq	(%r14), %rax
	movl	36(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 32(%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_SECTOR,4,2        ## @CDB_PLAYTYPE_SECTOR
	.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	_Cs2PlayDisc                    ; -- Begin function Cs2PlayDisc
	.p2align	2
_Cs2PlayDisc:                           ; @Cs2PlayDisc
	.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	x20, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x20]
	ldp	w9, w10, [x8, #16]
	ubfiz	w9, w9, #16, #8
	orr	w9, w9, w10
	ldp	w22, w21, [x8, #24]
	ubfiz	w23, w22, #16, #8
	mov	w10, #16777215
	cmp	w9, w10
	b.eq	LBB0_8
; %bb.1:
	asr	w10, w22, #8
	cmp	w10, #255
	b.eq	LBB0_8
; %bb.2:
	tbnz	w9, #23, LBB0_5
; %bb.3:
	mov	w8, #256
	cmp	w9, #0
	csel	w24, w8, w9, eq
	sbfx	x19, x24, #8, #24
	tbnz	w22, #15, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_Cs2SetupDefaultPlayStats
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	str	w9, [x8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x9, w24
	stp	x9, x19, [x8, #56]
	b	LBB0_8
LBB0_5:
	and	w0, w9, #0xfffff
	str	w0, [x8]
	bl	_Cs2FADToTrack
	mov	w1, #0
	bl	_Cs2SetupDefaultPlayStats
	tbnz	w22, #15, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_Cs2SetupDefaultPlayStats
LBB0_8:
	orr	w8, w23, w21
	ubfx	w9, w22, #8, #7
	cmp	w9, #127
	b.eq	LBB0_10
; %bb.9:
	ldr	x10, [x20]
	str	w9, [x10, #8]
LBB0_10:
	mov	w9, #16777215
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.11:
	tbnz	w8, #23, LBB0_15
; %bb.12:
	cbz	w8, LBB0_16
; %bb.13:
	add	w0, w8, #256
	tst	w21, #0xff
	b.ne	LBB0_17
; %bb.14:
	mov	w8, #99
	orr	w0, w0, w8
	bl	_Cs2TrackToFAD
	ldr	x9, [x20]
	b	LBB0_18
LBB0_15:
	ldr	x9, [x20]
	ldr	w10, [x9]
	and	w8, w8, #0xfffff
	add	w0, w10, w8
	b	LBB0_18
LBB0_16:
	mov	w0, #65535
LBB0_17:
	bl	_Cs2TrackToFAD
	ldr	x9, [x20]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_18:
	str	w0, [x9, #12]
LBB0_19:
	mov	w0, #1
	bl	_Cs2SetTiming
Lloh2:
	adrp	x8, _CDB_STAT_PLAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDB_STAT_PLAY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x20]
Lloh5:
	adrp	x10, _CDB_PLAYTYPE_SECTOR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CDB_PLAYTYPE_SECTOR@GOTPAGEOFF]
	str	w8, [x9, #36]
Lloh7:
	ldr	w8, [x10]
	str	w8, [x9, #48]
	ldr	x8, [x9, #40]
	ldr	x8, [x8]
	ldr	w0, [x9, #4]
	blr	x8
	ldr	x8, [x20]
	ldr	w0, [x8, #36]
	bl	_doCDReport
Lloh8:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9, #32]
	orr	w8, w10, w8
	str	w8, [x9, #32]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_PLAY,4,2              ; @CDB_STAT_PLAY
	.comm	_CDB_PLAYTYPE_SECTOR,4,2        ; @CDB_PLAYTYPE_SECTOR
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
.subsections_via_symbols
