	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2InitializeCDSystem          ## -- Begin function Cs2InitializeCDSystem
	.p2align	4, 0x90
_Cs2InitializeCDSystem:                 ## @Cs2InitializeCDSystem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	12(%rax), %ecx
	movl	%edi, %edx
	andl	$15, %edx
	movq	_CDB_STAT_OPEN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_3
## %bb.1:
	movq	_CDB_STAT_NODISC@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_3
## %bb.2:
	movq	_CDB_STAT_PAUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, (%rax)
	movl	$150, 4(%rax)
LBB0_3:
	shrl	$4, %ecx
	andl	$1, %ecx
	movl	%ecx, 8(%rax)
	movl	$65509, %ecx                    ## imm = 0xFFE5
	andl	16(%rax), %ecx
	movq	$0, 32(%rax)
	movq	_CDB_HIRQ_DCHG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	%ebx, %edx
	orl	%ecx, %edx
	notl	%ebx
	andl	%ecx, %ebx
	cmpq	$0, 24(%rax)
	cmovnel	%edx, %ebx
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CDB_HIRQ_ESEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r14), %rax
	movl	%ebx, 16(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_STAT_OPEN,4,2              ## @CDB_STAT_OPEN
	.comm	_CDB_STAT_NODISC,4,2            ## @CDB_STAT_NODISC
	.comm	_CDB_STAT_PAUSE,4,2             ## @CDB_STAT_PAUSE
	.comm	_CDB_HIRQ_DCHG,4,2              ## @CDB_HIRQ_DCHG
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ## @CDB_HIRQ_ESEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2InitializeCDSystem          ; -- Begin function Cs2InitializeCDSystem
	.p2align	2
_Cs2InitializeCDSystem:                 ; @Cs2InitializeCDSystem
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	ldr	w0, [x8]
	and	w10, w0, #0xf
Lloh2:
	adrp	x11, _CDB_STAT_OPEN@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CDB_STAT_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
Lloh5:
	adrp	x12, _CDB_STAT_NODISC@GOTPAGE
Lloh6:
	ldr	x12, [x12, _CDB_STAT_NODISC@GOTPAGEOFF]
Lloh7:
	ldr	w12, [x12]
	cmp	w10, w11
	ccmp	w10, w12, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x10, _CDB_STAT_PAUSE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CDB_STAT_PAUSE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x10]
	mov	w10, #150
	stp	w0, w10, [x8]
LBB0_2:
	ubfx	w9, w9, #4, #1
	str	w9, [x8, #8]
	ldr	w9, [x8, #16]
	mov	w10, #65509
	and	w9, w9, w10
	str	xzr, [x8, #32]
Lloh11:
	adrp	x10, _CDB_HIRQ_DCHG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CDB_HIRQ_DCHG@GOTPAGEOFF]
	ldr	x8, [x8, #24]
Lloh13:
	ldr	w10, [x10]
	orr	w11, w10, w9
	bic	w9, w9, w10
	cmp	x8, #0
	csel	w20, w9, w11, eq
	bl	_doCDReport
Lloh14:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh17:
	adrp	x9, _CDB_HIRQ_ESEL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CDB_HIRQ_ESEL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19]
	str	w8, [x9, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_OPEN,4,2              ; @CDB_STAT_OPEN
	.comm	_CDB_STAT_NODISC,4,2            ; @CDB_STAT_NODISC
	.comm	_CDB_STAT_PAUSE,4,2             ; @CDB_STAT_PAUSE
	.comm	_CDB_HIRQ_DCHG,4,2              ; @CDB_HIRQ_DCHG
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ; @CDB_HIRQ_ESEL
.subsections_via_symbols
