	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_partition_writeFSinfo     ## -- Begin function _FAT_partition_writeFSinfo
	.p2align	4, 0x90
__FAT_partition_writeFSinfo:            ## @_FAT_partition_writeFSinfo
	.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), %rax
	movq	_FS_FAT32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	__FAT_mem_align
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movl	24(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	__FAT_disc_readSectors
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	_FSIB_SIG1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	_FS_INFO_SIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	_FSIB_SIG2@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	_FS_INFO_SIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_FSIB_numberOfFreeCluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	%r14, %rdi
	callq	_u32_to_u8array
	movq	_FSIB_numberLastAllocCluster@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	callq	_u32_to_u8array
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	__FAT_disc_writeSectors
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__FAT_mem_free                  ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FS_FAT32,8,3                   ## @FS_FAT32
	.comm	_FSIB_SIG1,4,2                  ## @FSIB_SIG1
	.comm	_FS_INFO_SIG1,4,2               ## @FS_INFO_SIG1
	.comm	_FSIB_SIG2,4,2                  ## @FSIB_SIG2
	.comm	_FS_INFO_SIG2,4,2               ## @FS_INFO_SIG2
	.comm	_FSIB_numberOfFreeCluster,4,2   ## @FSIB_numberOfFreeCluster
	.comm	_FSIB_numberLastAllocCluster,4,2 ## @FSIB_numberLastAllocCluster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__FAT_partition_writeFSinfo     ; -- Begin function _FAT_partition_writeFSinfo
	.p2align	2
__FAT_partition_writeFSinfo:            ; @_FAT_partition_writeFSinfo
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FS_FAT32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FS_FAT32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	__FAT_mem_align
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	w2, [x19, #24]
	mov	w1, #0
	bl	_memset
	ldp	w1, w0, [x19, #8]
	mov	w2, #1
	mov	x3, x20
	bl	__FAT_disc_readSectors
	cbz	w0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _FSIB_SIG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSIB_SIG1@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x20, x8, lsl #2
Lloh6:
	adrp	x8, _FS_INFO_SIG1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FS_INFO_SIG1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _FSIB_SIG2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FSIB_SIG2@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x0, x20, x8, lsl #2
Lloh12:
	adrp	x8, _FS_INFO_SIG2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FS_INFO_SIG2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _FSIB_numberOfFreeCluster@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FSIB_numberOfFreeCluster@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #20]
	mov	x0, x20
	bl	_u32_to_u8array
Lloh18:
	adrp	x8, _FSIB_numberLastAllocCluster@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FSIB_numberLastAllocCluster@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_u32_to_u8array
	ldp	w1, w0, [x19, #8]
	mov	w2, #1
	mov	x3, x20
	bl	__FAT_disc_writeSectors
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__FAT_mem_free
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FS_FAT32,8,3                   ; @FS_FAT32
	.comm	_FSIB_SIG1,4,2                  ; @FSIB_SIG1
	.comm	_FS_INFO_SIG1,4,2               ; @FS_INFO_SIG1
	.comm	_FSIB_SIG2,4,2                  ; @FSIB_SIG2
	.comm	_FS_INFO_SIG2,4,2               ; @FS_INFO_SIG2
	.comm	_FSIB_numberOfFreeCluster,4,2   ; @FSIB_numberOfFreeCluster
	.comm	_FSIB_numberLastAllocCluster,4,2 ; @FSIB_numberLastAllocCluster
.subsections_via_symbols
