	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ChangeDirectory             ## -- Begin function Cs2ChangeDirectory
	.p2align	4, 0x90
_Cs2ChangeDirectory:                    ## @Cs2ChangeDirectory
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	sarl	$8, %edx
	movq	_CDB_STAT_REJECT@GOTPCREL(%rip), %rbx
	cmpl	$255, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$9215, %ecx                     ## imm = 0x23FF
	jg	LBB0_4
## %bb.2:
	movslq	%edx, %rdi
	addq	16(%rax), %rdi
	movzbl	%cl, %esi
	shll	$16, %esi
	orl	8(%rax), %esi
	xorl	%edx, %edx
	callq	_Cs2ReadFileSystem
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_CDLOG
	jmp	LBB0_5
LBB0_3:
	movq	(%r14), %rax
LBB0_4:
	addq	$12, %rax
	movq	%rax, %rbx
LBB0_5:
	movl	(%rbx), %edi
	callq	_doCDReport
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rax
	movq	_CDB_HIRQ_EFLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rax
	orl	%ecx, 4(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_STAT_REJECT,4,2            ## @CDB_STAT_REJECT
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_EFLS,4,2              ## @CDB_HIRQ_EFLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs2\t: ReadFileSystem failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2ChangeDirectory             ; -- Begin function Cs2ChangeDirectory
	.p2align	2
_Cs2ChangeDirectory:                    ; @Cs2ChangeDirectory
	.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]
	asr	w10, w9, #8
	cmp	w10, #255
	b.eq	LBB0_4
; %bb.1:
	mov	w11, #9215
	cmp	w9, w11
	b.gt	LBB0_6
; %bb.2:
	ldr	x11, [x8, #16]
	add	x0, x11, w10, sxtw
	ubfiz	w9, w9, #16, #8
	ldr	w8, [x8, #8]
	orr	w1, w8, w9
	mov	w2, #0
	bl	_Cs2ReadFileSystem
	cbz	x0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CDLOG
LBB0_4:
Lloh4:
	adrp	x8, _CDB_STAT_REJECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CDB_STAT_REJECT@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
LBB0_6:
	add	x8, x8, #12
LBB0_7:
	ldr	w0, [x8]
	bl	_doCDReport
Lloh6:
	adrp	x8, _CDB_HIRQ_CMOK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CDB_HIRQ_EFLS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CDB_HIRQ_EFLS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w10, [x9, #4]
	orr	w8, w8, w10
	str	w8, [x9, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_STAT_REJECT,4,2            ; @CDB_STAT_REJECT
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
	.comm	_CDB_HIRQ_EFLS,4,2              ; @CDB_HIRQ_EFLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs2\t: ReadFileSystem failed\n"

.subsections_via_symbols
