	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetSectorNumber             ## -- Begin function Cs2GetSectorNumber
	.p2align	4, 0x90
_Cs2GetSectorNumber:                    ## @Cs2GetSectorNumber
	.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	8(%rax), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	40(%rax), %rdx
	shlq	$4, %rcx
	cmpl	$-1, (%rdx,%rcx)
	je	LBB0_1
## %bb.2:
	movq	8(%rdx,%rcx), %rcx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rcx, 32(%rax)
	movl	(%rax), %ecx
	shll	$8, %ecx
	movl	%ecx, 12(%rax)
	movq	$0, 24(%rax)
	movl	$0, 8(%rax)
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
	movq	_CDB_HIRQ_DRDY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, 16(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_DRDY,4,2              ## @CDB_HIRQ_DRDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetSectorNumber             ; -- Begin function Cs2GetSectorNumber
	.p2align	2
_Cs2GetSectorNumber:                    ; @Cs2GetSectorNumber
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Cs2Area@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	asr	w11, w9, #8
	ldr	x10, [x8, #40]
	sbfiz	x11, x11, #4, #32
	ldr	w11, [x10, x11]
	cmn	w11, #1
	b.eq	LBB0_2
; %bb.1:
	sbfx	x9, x9, #8, #24
	add	x9, x10, x9, lsl #4
	ldr	x9, [x9, #8]
	b	LBB0_3
LBB0_2:
	mov	x9, #0
LBB0_3:
	ldr	w10, [x8]
	lsl	w10, w10, #8
	stp	xzr, x9, [x8, #24]
	stp	wzr, w10, [x8, #8]
Lloh3:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh5:
	adrp	x10, _CDB_HIRQ_DRDY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CDB_HIRQ_DRDY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x8, #16]
	orr	w9, w9, w10
	str	w9, [x8, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_DRDY,4,2              ; @CDB_HIRQ_DRDY
.subsections_via_symbols
