	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_dirreset_r                ## -- Begin function _FAT_dirreset_r
	.p2align	4, 0x90
__FAT_dirreset_r:                       ## @_FAT_dirreset_r
	.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	%rdi, %r14
	movq	(%rsi), %rbx
	movq	(%rbx), %rdi
	callq	__FAT_lock
	cmpl	$0, 20(%rbx)
	movq	(%rbx), %rdi
	je	LBB0_1
## %bb.2:
	leaq	12(%rbx), %rsi
	movl	8(%rbx), %edx
	callq	__FAT_directory_getFirstEntry
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rdi
	callq	__FAT_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	callq	__FAT_unlock
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBADF,4,2                      ## @EBADF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_dirreset_r                ; -- Begin function _FAT_dirreset_r
	.p2align	2
__FAT_dirreset_r:                       ; @_FAT_dirreset_r
	.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
	mov	x19, x0
	ldr	x20, [x1]
	ldr	x0, [x20]
	bl	__FAT_lock
	ldr	w8, [x20, #20]
	ldr	x0, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	add	x1, x20, #12
	ldr	w2, [x20, #8]
	bl	__FAT_directory_getFirstEntry
	str	w0, [x20, #16]
	ldr	x0, [x20]
	bl	__FAT_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	bl	__FAT_unlock
Lloh0:
	adrp	x8, _EBADF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBADF,4,2                      ; @EBADF
.subsections_via_symbols
