	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_directory_incrementDirEntryPosition
__FAT_directory_incrementDirEntryPosition: ## @_FAT_directory_incrementDirEntryPosition
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %ecx
	movl	4(%rsi), %r13d
	movq	8(%rsi), %rsi
	movq	16(%rbx), %r14
	incl	%ecx
	movl	(%rdi), %eax
	movq	_DIR_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	cmpl	%eax, %ecx
	jne	LBB0_10
## %bb.1:
	incq	%rsi
	movq	_FAT16_ROOT_DIR_CLUSTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	8(%r15), %rsi
	jne	LBB0_7
## %bb.2:
	cmpq	%rax, %r14
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	__FAT_fat_nextCluster
	movq	_CLUSTER_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	__FAT_fat_linkFreeClusterCleared
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	__FAT_fat_isValidCluster
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_7:
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.8:
	movq	16(%r15), %rax
	subq	24(%r15), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, %rsi
	jne	LBB0_10
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
	movq	%rax, %r14
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, (%rbx)
	movl	%r13d, 4(%rbx)
	movq	%rsi, 8(%rbx)
	movq	%r14, 16(%rbx)
	movl	$1, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ## @DIR_ENTRY_DATA_SIZE
	.comm	_FAT16_ROOT_DIR_CLUSTER,8,3     ## @FAT16_ROOT_DIR_CLUSTER
	.comm	_CLUSTER_EOF,8,3                ## @CLUSTER_EOF
	.no_dead_strip	__FAT_directory_incrementDirEntryPosition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_directory_incrementDirEntryPosition
__FAT_directory_incrementDirEntryPosition: ; @_FAT_directory_incrementDirEntryPosition
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	ldp	w8, w23, [x1]
	ldp	x9, x20, [x1, #8]
	add	w0, w8, #1
	ldr	w8, [x21]
Lloh0:
	adrp	x10, _DIR_ENTRY_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DIR_ENTRY_DATA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w8, w8, w10
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.1:
	add	x9, x9, #1
	ldr	x10, [x21, #8]
Lloh3:
	adrp	x8, _FAT16_ROOT_DIR_CLUSTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAT16_ROOT_DIR_CLUSTER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.2:
	cmp	x20, x8
	b.eq	LBB0_7
; %bb.3:
	mov	x22, x2
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_fat_nextCluster
Lloh6:
	adrp	x9, _CLUSTER_EOF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CLUSTER_EOF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_9
; %bb.4:
	cbz	w22, LBB0_13
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_fat_linkFreeClusterCleared
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	__FAT_fat_isValidCluster
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_12
; %bb.6:
	mov	x9, #0
	b	LBB0_11
LBB0_7:
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.8:
	mov	w0, #0
	ldp	x8, x10, [x21, #16]
	sub	x8, x8, x10
	cmp	x9, x8
	b.ne	LBB0_11
	b	LBB0_12
LBB0_9:
	mov	x8, x0
	mov	x9, #0
	mov	w0, #0
	mov	x20, x8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	stp	w0, w23, [x19]
	mov	w0, #1
	stp	x9, x20, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DIR_ENTRY_DATA_SIZE,4,2        ; @DIR_ENTRY_DATA_SIZE
	.comm	_FAT16_ROOT_DIR_CLUSTER,8,3     ; @FAT16_ROOT_DIR_CLUSTER
	.comm	_CLUSTER_EOF,8,3                ; @CLUSTER_EOF
	.no_dead_strip	__FAT_directory_incrementDirEntryPosition
.subsections_via_symbols
