	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2SetSectorLength             ## -- Begin function Cs2SetSectorLength
	.p2align	4, 0x90
_Cs2SetSectorLength:                    ## @Cs2SetSectorLength
	.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
	movb	8(%rax), %dl
	leaq	L_switch.table.Cs2SetSectorLength.1(%rip), %rcx
	cmpb	$3, %dl
	ja	LBB0_2
## %bb.1:
	movsbq	%dl, %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, (%rax)
LBB0_2:
	movl	12(%rax), %edx
	cmpl	$1023, %edx                     ## imm = 0x3FF
	ja	LBB0_4
## %bb.3:
	sarl	$8, %edx
	movslq	%edx, %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 4(%rax)
LBB0_4:
	movl	20(%rax), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movq	_CDB_HIRQ_ESEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%rbx), %rax
	orl	%ecx, 16(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ## @CDB_HIRQ_ESEL
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.Cs2SetSectorLength.1
L_switch.table.Cs2SetSectorLength.1:
	.long	2048                            ## 0x800
	.long	2336                            ## 0x920
	.long	2340                            ## 0x924
	.long	2352                            ## 0x930

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2SetSectorLength             ; -- Begin function Cs2SetSectorLength
	.p2align	2
_Cs2SetSectorLength:                    ; @Cs2SetSectorLength
	.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	w10, [x8, #8]
	and	w11, w10, #0xff
Lloh2:
	adrp	x9, l_switch.table.Cs2SetSectorLength.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.Cs2SetSectorLength.1@PAGEOFF
	cmp	w11, #3
	b.hi	LBB0_2
; %bb.1:
	sxtb	x10, w10
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x8]
LBB0_2:
	ldr	w10, [x8, #12]
	cmp	w10, #1023
	b.hi	LBB0_4
; %bb.3:
	asr	w10, w10, #8
	ldr	w9, [x9, w10, sxtw #2]
	str	w9, [x8, #4]
LBB0_4:
	ldr	w0, [x8, #20]
	bl	_doCDReport
Lloh4:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _CDB_HIRQ_ESEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CDB_HIRQ_ESEL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9, #16]
	orr	w8, w8, w10
	str	w8, [x9, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_ESEL,4,2              ; @CDB_HIRQ_ESEL
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.Cs2SetSectorLength.1
l_switch.table.Cs2SetSectorLength.1:
	.long	2048                            ; 0x800
	.long	2336                            ; 0x920
	.long	2340                            ; 0x924
	.long	2352                            ; 0x930

.subsections_via_symbols
