	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_cache_writePartialSector  ## -- Begin function _FAT_cache_writePartialSector
	.p2align	4, 0x90
__FAT_cache_writePartialSector:         ## @_FAT_cache_writePartialSector
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%ecx, %eax
	addq	%r8, %rax
	movl	(%rdi), %ecx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rax
	ja	LBB0_3
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%edx, %esi
	callq	__FAT_cache_getPage
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	subl	(%rax), %ebx
	imull	(%r13), %ebx
	addl	%r12d, %ebx
	addq	8(%rax), %rbx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	movl	$1, 4(%r14)
	movl	$1, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_cache_writePartialSector  ; -- Begin function _FAT_cache_writePartialSector
	.p2align	2
__FAT_cache_writePartialSector:         ; @_FAT_cache_writePartialSector
	.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
	add	x8, x4, w3, uxtw
	ldr	w9, [x0]
	cmp	x8, x9
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	mov	x1, x2
	bl	__FAT_cache_getPage
	cbz	x0, LBB0_4
; %bb.3:
	mov	x24, x0
	ldr	w8, [x0]
	sub	w8, w23, w8
	ldr	x9, [x0, #8]
	ldr	w10, [x22]
	madd	w8, w10, w8, w21
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #1
	str	w0, [x24, #4]
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
