	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2DeleteSectorData            ## -- Begin function Cs2DeleteSectorData
	.p2align	4, 0x90
_Cs2DeleteSectorData:                   ## @Cs2DeleteSectorData
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -40(%rbp)
	movl	16(%rax), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rdi
	movq	24(%rax), %rcx
	movq	%rcx, -32(%rbp)
	movq	_MAX_SELECTORS@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jbe	LBB0_1
## %bb.2:
	movq	56(%rax), %rax
	movq	%rdi, %r15
	shlq	$5, %r15
	cmpq	$0, (%rax,%r15)
	je	LBB0_3
## %bb.4:
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_CalcSectorOffsetNumber
	movq	-40(%rbp), %rbx
	movq	-32(%rbp), %rax
	addq	%rbx, %rax
	movq	(%r14), %rcx
	movq	56(%rcx), %rdi
	cmpq	%rax, %rbx
	jae	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi,%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %ecx
	subl	%ecx, 24(%rdi,%r15)
	movq	%rax, %rdi
	callq	_Cs2FreeBlock
	movq	(%r14), %rax
	movq	56(%rax), %rax
	movq	16(%rax,%r15), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r14), %rax
	movq	56(%rax), %rdi
	movq	8(%rdi,%r15), %rax
	movl	$255, (%rax,%rbx,4)
	incq	%rbx
	movq	-32(%rbp), %rax
	addq	-40(%rbp), %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_7:
	addq	%r15, %rdi
	callq	_Cs2SortBlocks
	movq	-32(%rbp), %rcx
	movq	(%r14), %rax
	movq	56(%rax), %rdx
	subq	%rcx, (%rdx,%r15)
	cmpl	$200, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	$0, 48(%rax)
LBB0_9:
	movl	40(%rax), %edi
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_CDLOG
LBB0_1:
	movq	_CDB_STAT_REJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_10:
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movq	_CDB_HIRQ_EHST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rax
	orl	%ecx, 32(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2DeleteSectorData            ; -- Begin function Cs2DeleteSectorData
	.p2align	2
_Cs2DeleteSectorData:                   ; @Cs2DeleteSectorData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x10, [x8, #8]
	ldr	w9, [x8, #16]
	sbfx	x0, x9, #8, #24
	ldr	x9, [x8, #24]
	stp	x9, x10, [sp]
Lloh2:
	adrp	x9, _MAX_SELECTORS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_SELECTORS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x0
	b.ls	LBB0_9
; %bb.1:
	ldr	x8, [x8, #56]
	lsl	x20, x0, #5
	ldr	x8, [x8, x20]
	cbz	x8, LBB0_8
; %bb.2:
	add	x1, sp, #8
	mov	x2, sp
	bl	_CalcSectorOffsetNumber
	ldp	x9, x21, [sp]
	ldr	x8, [x19]
	ldr	x8, [x8, #56]
	add	x9, x9, x21
	cmp	x21, x9
	b.hs	LBB0_5
; %bb.3:
	mov	w22, #255
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldr	x9, [x8, #16]
	lsl	x23, x21, #3
	ldr	x0, [x9, x23]
	ldr	w9, [x0]
	ldr	w10, [x8, #24]
	sub	w9, w10, w9
	str	w9, [x8, #24]
	bl	_Cs2FreeBlock
	ldr	x8, [x19]
	ldr	x8, [x8, #56]
	add	x8, x8, x20
	ldr	x8, [x8, #16]
	str	xzr, [x8, x23]
	ldr	x8, [x19]
	ldr	x8, [x8, #56]
	add	x9, x8, x20
	ldr	x9, [x9, #8]
	str	w22, [x9, x21, lsl #2]
	add	x21, x21, #1
	ldp	x10, x9, [sp]
	add	x9, x10, x9
	cmp	x21, x9
	b.lo	LBB0_4
LBB0_5:
	add	x0, x8, x20
	bl	_Cs2SortBlocks
	ldr	x8, [x19]
	ldr	x9, [x8, #56]
	ldr	x10, [x9, x20]
	ldr	x11, [sp]
	sub	x10, x10, x11
	str	x10, [x9, x20]
	ldr	w9, [x8]
	cmp	w9, #200
	b.ne	LBB0_7
; %bb.6:
	str	xzr, [x8, #48]
LBB0_7:
	ldr	w0, [x8, #40]
	b	LBB0_10
LBB0_8:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CDLOG
LBB0_9:
Lloh7:
	adrp	x8, _CDB_STAT_REJECT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CDB_STAT_REJECT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_10:
	bl	_doCDReport
Lloh10:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _CDB_HIRQ_EHST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CDB_HIRQ_EHST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9, #32]
	orr	w8, w8, w10
	str	w8, [x9, #32]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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"

.subsections_via_symbols
