	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_cache_writeLittleEndianValue ## -- Begin function _FAT_cache_writeLittleEndianValue
	.p2align	4, 0x90
__FAT_cache_writeLittleEndianValue:     ## @_FAT_cache_writeLittleEndianValue
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %edx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpl	$4, %r8d
	je	LBB0_5
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.3:
	movl	%edx, -64(%rbp)
	jmp	LBB0_6
LBB0_5:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_u32_to_u8array
	jmp	LBB0_6
LBB0_4:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_u16_to_u8array
LBB0_6:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	__FAT_cache_writePartialSector
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.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_writeLittleEndianValue ; -- Begin function _FAT_cache_writeLittleEndianValue
	.p2align	2
__FAT_cache_writeLittleEndianValue:     ; @_FAT_cache_writeLittleEndianValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x2, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	cmp	w4, #4
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #1
	b.ne	LBB0_7
; %bb.3:
	str	w2, [sp, #8]
	b	LBB0_6
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	bl	_u32_to_u8array
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	mov	w1, #0
	bl	_u16_to_u8array
LBB0_6:
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	__FAT_cache_writePartialSector
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
