	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetSectorInfo               ## -- Begin function Cs2GetSectorInfo
	.p2align	4, 0x90
_Cs2GetSectorInfo:                      ## @Cs2GetSectorInfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_Cs2Area@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	_MAX_SELECTORS@GOTPCREL(%rip), %rdx
	cmpq	%rcx, (%rdx)
	jbe	LBB0_4
## %bb.1:
	movzbl	4(%rax), %edx
	movq	24(%rax), %rsi
	shlq	$4, %rcx
	cmpq	%rdx, (%rsi,%rcx)
	jbe	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	shll	$8, %edi
	movq	8(%rsi,%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %edx
	movl	%edx, %esi
	shrl	$16, %esi
	movzbl	%sil, %esi
	orl	%edi, %esi
	movl	%esi, 12(%rax)
	movl	%edx, 4(%rax)
	movl	4(%rcx), %edx
	shll	$8, %edx
	orl	8(%rcx), %edx
	movl	%edx, 8(%rax)
	movl	12(%rcx), %edx
	shll	$8, %edx
	orl	16(%rcx), %edx
	movl	%edx, 16(%rax)
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_CDLOG
	movq	(%rbx), %rax
LBB0_4:
	movq	_CDB_STAT_REJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	movzbl	12(%rax), %edx
	orl	%ecx, %edx
	movl	%edx, 12(%rax)
LBB0_5:
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
	movq	_CDB_HIRQ_ESEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, 20(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_MAX_SELECTORS,8,3              ## @MAX_SELECTORS
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ## @CDB_HIRQ_ESEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs2\t: getSectorInfo: Unsupported Partition Number\n"

	.comm	_CDB_STAT_REJECT,4,2            ## @CDB_STAT_REJECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetSectorInfo               ; -- Begin function Cs2GetSectorInfo
	.p2align	2
_Cs2GetSectorInfo:                      ; @Cs2GetSectorInfo
	.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, #8]
	sbfx	x9, x9, #8, #24
Lloh2:
	adrp	x10, _MAX_SELECTORS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_SELECTORS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ls	LBB0_4
; %bb.1:
	ldrb	w10, [x8, #4]
	ldr	x11, [x8, #24]
	lsl	x12, x9, #4
	ldr	x12, [x11, x12]
	cmp	x12, x10
	b.ls	LBB0_3
; %bb.2:
	add	x9, x11, x9, lsl #4
	ldr	x9, [x9, #8]
	ldr	x9, [x9, x10, lsl #3]
	ldp	w10, w11, [x9]
	ldp	w12, w13, [x9, #8]
	orr	w11, w12, w11, lsl #8
	ldr	w12, [x8]
	lsl	w12, w12, #8
	bfxil	w12, w10, #16, #8
	stp	w10, w11, [x8, #4]
	ldr	w9, [x9, #16]
	orr	w9, w9, w13, lsl #8
	stp	w12, w9, [x8, #12]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CDLOG
	ldr	x8, [x19]
LBB0_4:
Lloh7:
	adrp	x9, _CDB_STAT_REJECT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CDB_STAT_REJECT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldrb	w10, [x8, #12]
	bfi	w10, w9, #8, #24
	str	w10, [x8, #12]
LBB0_5:
Lloh10:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh12:
	adrp	x10, _CDB_HIRQ_ESEL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CDB_HIRQ_ESEL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x8, #20]
	orr	w9, w9, w10
	str	w9, [x8, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_MAX_SELECTORS,8,3              ; @MAX_SELECTORS
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ; @CDB_HIRQ_ESEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs2\t: getSectorInfo: Unsupported Partition Number\n"

	.comm	_CDB_STAT_REJECT,4,2            ; @CDB_STAT_REJECT
.subsections_via_symbols
