	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_chdir           ## -- Begin function _FAT_directory_chdir
	.p2align	4, 0x90
__FAT_directory_chdir:                  ## @_FAT_directory_chdir
	.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	%rsi, %rdx
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	leaq	-24(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	__FAT_directory_entryFromPath
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-24(%rbp), %rsi
	movq	_DIR_ENTRY_attributes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ATTRIB_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rsi,%rax,4)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	__FAT_directory_entryGetCluster
	movl	%eax, (%rbx)
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_attributes,8,3       ## @DIR_ENTRY_attributes
	.comm	_ATTRIB_DIR,4,2                 ## @ATTRIB_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_directory_chdir           ; -- Begin function _FAT_directory_chdir
	.p2align	2
__FAT_directory_chdir:                  ; @_FAT_directory_chdir
	.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
	mov	x2, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x3, #0
	bl	__FAT_directory_entryFromPath
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x1, [sp, #8]
Lloh0:
	adrp	x8, _DIR_ENTRY_attributes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIR_ENTRY_attributes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x1, x8, lsl #2]
Lloh3:
	adrp	x9, _ATTRIB_DIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATTRIB_DIR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	__FAT_directory_entryGetCluster
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_attributes,8,3       ; @DIR_ENTRY_attributes
	.comm	_ATTRIB_DIR,4,2                 ; @ATTRIB_DIR
.subsections_via_symbols
