	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _FAT_fat_writeFatEntry
__FAT_fat_writeFatEntry:                ## @_FAT_fat_writeFatEntry
	.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
	movq	_CLUSTER_FIRST@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	%rsi, (%rcx)
	jg	LBB0_28
## %bb.1:
	movq	%rdi, %rbx
	cmpq	%rsi, 24(%rdi)
	jl	LBB0_28
## %bb.2:
	movl	(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.4:
	cmpl	$131, %ecx
	jne	LBB0_28
## %bb.5:
	movq	%rdx, %r13
	movq	8(%rbx), %rdi
	movq	32(%rbx), %rcx
	leaq	(%rsi,%rsi,2), %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_11
## %bb.6:
	cqto
	idivq	%rdi
	movq	%rdx, %r15
	movq	%rax, %r14
	jmp	LBB0_12
LBB0_7:
	movq	%rdx, %r9
	movq	8(%rbx), %rcx
	movq	32(%rbx), %rdi
	leaq	(,%rsi,4), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.8:
	cqto
	idivq	%rcx
	movq	%rax, %r8
	jmp	LBB0_16
LBB0_9:
	movq	%rdx, %r9
	movq	8(%rbx), %rcx
	movq	32(%rbx), %rdi
	leaq	(%rsi,%rsi), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_18
## %bb.10:
	cqto
	idivq	%rcx
	movq	%rax, %r8
	jmp	LBB0_19
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r15d
	movl	%eax, %r14d
LBB0_12:
	addq	%rcx, %r14
	movl	16(%rbx), %edi
	testb	$1, %sil
	jne	LBB0_14
## %bb.13:
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	$4, %r8d
	callq	__FAT_cache_writeLittleEndianValue
	incl	%r15d
	movslq	%r15d, %r15
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	cmpq	%r15, 8(%rbx)
	setle	%r12b
	cmovlel	%eax, %r15d
	addq	%r14, %r12
	movl	16(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movl	$4, %r8d
	callq	__FAT_cache_readLittleEndianValue
	shrl	$8, %r13d
	andl	$15, %r13d
	movq	-48(%rbp), %rsi
	andl	$240, %esi
	orq	%r13, %rsi
	movl	16(%rbx), %edi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	jmp	LBB0_27
LBB0_14:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	$4, %r8d
	callq	__FAT_cache_readLittleEndianValue
	shlq	$4, %r13
	movq	-48(%rbp), %rax
	andl	$15, %eax
	movl	16(%rbx), %edi
	movzbl	%r13b, %esi
	orq	%rax, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	$4, %r8d
	callq	__FAT_cache_writeLittleEndianValue
	incl	%r15d
	movslq	%r15d, %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpq	%rcx, 8(%rbx)
	cmovlel	%eax, %ecx
	setle	%dl
	addq	%r14, %rdx
	movl	16(%rbx), %edi
	movq	%r13, %rax
	movzbl	%ah, %esi
	jmp	LBB0_26
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
LBB0_16:
	addq	%rdi, %r8
	sarq	$2, %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_21
## %bb.17:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_22
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
LBB0_19:
	addq	%rdi, %r8
	sarq	%rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_23
## %bb.20:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_24
LBB0_21:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
LBB0_22:
	shll	$2, %ecx
	jmp	LBB0_25
LBB0_23:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
LBB0_24:
	addl	%ecx, %ecx
LBB0_25:
	movl	16(%rbx), %edi
	movq	%r9, %rsi
	movq	%r8, %rdx
LBB0_26:
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_27:
	movl	$4, %r8d
	callq	__FAT_cache_writeLittleEndianValue
	movl	$1, %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLUSTER_FIRST,8,3              ## @CLUSTER_FIRST
	.no_dead_strip	__FAT_fat_writeFatEntry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _FAT_fat_writeFatEntry
__FAT_fat_writeFatEntry:                ; @_FAT_fat_writeFatEntry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _CLUSTER_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLUSTER_FIRST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #24]
	cmp	x8, x1
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x19, x2
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #131
	b.ne	LBB0_2
; %bb.7:
	ldr	x8, [x20, #32]
	add	x9, x1, x1, lsl #1
	cmp	x9, #0
	cinc	x9, x9, lt
	asr	x9, x9, #1
	ldr	x10, [x20, #8]
	sdiv	x11, x9, x10
	add	x21, x11, x8
	msub	w22, w11, w10, w9
	ldr	w0, [x20, #16]
	tbnz	w1, #0, LBB0_13
; %bb.8:
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	w4, #4
	bl	__FAT_cache_writeLittleEndianValue
	add	w8, w22, #1
	ldr	x9, [x20, #8]
	cmp	x9, w8, sxtw
	cinc	x21, x21, le
	csinc	w22, wzr, w22, le
	ldr	w0, [x20, #16]
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x22
	mov	w4, #4
	bl	__FAT_cache_readLittleEndianValue
	ldr	x8, [sp, #8]
	and	x1, x8, #0xf0
	bfxil	x1, x19, #8, #4
	ldr	w0, [x20, #16]
	mov	x2, x21
	mov	x3, x22
	b	LBB0_12
LBB0_9:
	ldr	x8, [x20, #32]
	lsl	x9, x1, #2
	ldr	x10, [x20, #8]
	sdiv	x9, x9, x10
	add	x2, x9, x8
	asr	x8, x10, #2
	sdiv	x9, x1, x8
	msub	w8, w9, w8, w1
	lsl	w3, w8, #2
	b	LBB0_11
LBB0_10:
	ldr	x8, [x20, #32]
	lsl	x9, x1, #1
	ldr	x10, [x20, #8]
	sdiv	x9, x9, x10
	add	x2, x9, x8
	asr	x8, x10, #1
	sdiv	x9, x1, x8
	msub	w8, w9, w8, w1
	lsl	w3, w8, #1
LBB0_11:
	ldr	w0, [x20, #16]
	mov	x1, x19
LBB0_12:
	mov	w4, #4
	bl	__FAT_cache_writeLittleEndianValue
	mov	w0, #1
	b	LBB0_3
LBB0_13:
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x22
	mov	w4, #4
	bl	__FAT_cache_readLittleEndianValue
	lsl	w8, w19, #4
	ldr	x9, [sp, #8]
	ldr	w0, [x20, #16]
	and	x1, x8, #0xf0
	bfxil	x1, x9, #0, #4
	mov	x2, x21
	mov	x3, x22
	mov	w4, #4
	bl	__FAT_cache_writeLittleEndianValue
	add	w8, w22, #1
	ldr	x9, [x20, #8]
	cmp	x9, w8, sxtw
	cinc	x2, x21, le
	csinc	w3, wzr, w22, le
	ldr	w0, [x20, #16]
	ubfx	x1, x19, #4, #8
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLUSTER_FIRST,8,3              ; @CLUSTER_FIRST
	.no_dead_strip	__FAT_fat_writeFatEntry
.subsections_via_symbols
