	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetHardwareInfo             ## -- Begin function Cs2GetHardwareInfo
	.p2align	4, 0x90
_Cs2GetHardwareInfo:                    ## @Cs2GetHardwareInfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Cs2Area@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, %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	$0, 32(%rax)
LBB0_3:
	shll	$8, %ecx
	movl	%ecx, 4(%rax)
	movl	$513, 8(%rax)                   ## imm = 0x201
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rax)
	setne	%cl
	movl	%ecx, 12(%rax)
	movl	$1024, 16(%rax)                 ## imm = 0x400
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 20(%rax)
	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_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	_Cs2GetHardwareInfo             ; -- Begin function Cs2GetHardwareInfo
	.p2align	2
_Cs2GetHardwareInfo:                    ; @Cs2GetHardwareInfo
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Cs2Area@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
	and	w10, w9, #0xf
Lloh3:
	adrp	x11, _CDB_STAT_OPEN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CDB_STAT_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _CDB_STAT_NODISC@GOTPAGE
Lloh7:
	ldr	x12, [x12, _CDB_STAT_NODISC@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	w10, w11
	ccmp	w10, w12, #4, ne
	b.eq	LBB0_2
; %bb.1:
	str	xzr, [x8, #32]
LBB0_2:
	lsl	w9, w9, #8
	mov	w10, #513
	stp	w9, w10, [x8, #4]
	ldr	x9, [x8, #24]
	cmp	x9, #0
	cset	w9, ne
	mov	w10, #1024
	stp	w9, w10, [x8, #12]
Lloh9:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	w10, [x8, #20]
	orr	w9, w10, w9
	str	w9, [x8, #20]
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
.subsections_via_symbols
