	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2GetSectorData               ## -- Begin function Cs2GetSectorData
	.p2align	4, 0x90
_Cs2GetSectorData:                      ## @Cs2GetSectorData
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, -32(%rbp)
	movl	8(%rax), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rbx
	movq	16(%rax), %rcx
	movq	%rcx, -24(%rbp)
	movq	_MAX_SELECTORS@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jbe	LBB0_1
## %bb.2:
	movq	80(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_3
## %bb.4:
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_CalcSectorOffsetNumber
	movq	(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%rax)
	leaq	(,%rbx,8), %rcx
	addq	80(%rax), %rcx
	movq	%rcx, 88(%rax)
	movq	%rbx, 72(%rax)
	movups	%xmm0, 56(%rax)
	movq	-32(%rbp), %rcx
	movq	%rcx, 48(%rax)
	movq	-24(%rbp), %rcx
	movq	%rcx, 40(%rax)
	movl	32(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
	movq	_CDB_HIRQ_DRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_CDB_HIRQ_EHST@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_CDLOG
LBB0_1:
	movq	_CDB_STAT_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_EHST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	movq	(%r14), %rcx
	orl	%eax, 24(%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_MAX_SELECTORS,8,3              ## @MAX_SELECTORS
	.comm	_CDB_STAT_REJECT,4,2            ## @CDB_STAT_REJECT
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_EHST,4,2              ## @CDB_HIRQ_EHST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No sectors available\n"

	.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	_Cs2GetSectorData               ; -- Begin function Cs2GetSectorData
	.p2align	2
_Cs2GetSectorData:                      ; @Cs2GetSectorData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x10, [x8]
	ldr	w9, [x8, #8]
	sbfx	x19, x9, #8, #24
	ldr	x9, [x8, #16]
	stp	x9, x10, [sp]
Lloh2:
	adrp	x9, _MAX_SELECTORS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_SELECTORS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x19
	b.ls	LBB0_4
; %bb.1:
	ldr	x8, [x8, #80]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_CalcSectorOffsetNumber
	ldr	x8, [x20]
	stp	xzr, xzr, [x8, #96]
	ldr	x9, [x8, #80]
	add	x9, x9, x19, lsl #3
	str	x9, [x8, #88]
	stp	xzr, x19, [x8, #64]
	ldp	x10, x9, [sp]
	stp	x9, xzr, [x8, #48]
	str	x10, [x8, #40]
	ldr	w0, [x8, #32]
	bl	_doCDReport
Lloh5:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CDB_HIRQ_DRDY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CDB_HIRQ_DRDY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _CDB_HIRQ_EHST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CDB_HIRQ_EHST@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CDLOG
LBB0_4:
Lloh15:
	adrp	x8, _CDB_STAT_REJECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CDB_STAT_REJECT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_doCDReport
Lloh18:
	adrp	x8, _CDB_HIRQ_EHST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CDB_HIRQ_EHST@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x20]
	ldr	w10, [x9, #24]
	orr	w8, w8, w10
	str	w8, [x9, #24]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_MAX_SELECTORS,8,3              ; @MAX_SELECTORS
	.comm	_CDB_STAT_REJECT,4,2            ; @CDB_STAT_REJECT
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_EHST,4,2              ; @CDB_HIRQ_EHST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No sectors available\n"

	.comm	_CDB_HIRQ_DRDY,4,2              ; @CDB_HIRQ_DRDY
.subsections_via_symbols
