	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fillinusemap                   ## -- Begin function fillinusemap
	.p2align	4, 0x90
_fillinusemap:                          ## @fillinusemap
	.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
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_N_INUSEBITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rax
	addq	%rcx, %rax
	jb	LBB0_22
## %bb.1:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	8(%r14), %rcx
	cmpq	$2, %rax
	movl	$1, %r10d
	cmovaeq	%rax, %r10
	cmpq	$8, %r10
	jb	LBB0_5
## %bb.6:
	movq	_FULL_RUN@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rax
	cmpq	%rax, %rcx
	jae	LBB0_9
## %bb.7:
	leaq	(%rcx,%r10,4), %rax
	cmpq	_FULL_RUN@GOTPCREL(%rip), %rax
	jbe	LBB0_9
LBB0_5:
	xorl	%eax, %eax
LBB0_15:
	movq	%rax, %r8
	notq	%r8
	addq	%r10, %r8
	movq	%r10, %rdi
	andq	$3, %rdi
	je	LBB0_19
## %bb.16:
	leaq	(%rcx,%rax,4), %rsi
	xorl	%ebx, %ebx
	movq	_FULL_RUN@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %edx
	movl	%edx, (%rsi,%rbx,4)
	incq	%rbx
	cmpq	%rdi, %rbx
	jne	LBB0_17
## %bb.18:
	addq	%rbx, %rax
LBB0_19:
	cmpq	$3, %r8
	jb	LBB0_22
## %bb.20:
	movq	_FULL_RUN@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	movl	%edx, (%rcx,%rax,4)
	movl	(%rsi), %edx
	movl	%edx, 4(%rcx,%rax,4)
	movl	(%rsi), %edx
	movl	%edx, 8(%rcx,%rax,4)
	movl	(%rsi), %edx
	movl	%edx, 12(%rcx,%rax,4)
	addq	$4, %rax
	cmpq	%r10, %rax
	jne	LBB0_21
	jmp	LBB0_22
LBB0_9:
	movq	%r10, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_51
## %bb.10:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rbx,4)
	movdqu	%xmm0, 16(%rcx,%rbx,4)
	movdqu	%xmm0, 32(%rcx,%rbx,4)
	movdqu	%xmm0, 48(%rcx,%rbx,4)
	addq	$16, %rbx
	addq	$2, %rsi
	cmpq	%rdi, %rsi
	jne	LBB0_11
## %bb.12:
	testb	$1, %r9b
	je	LBB0_14
LBB0_13:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rcx,%rbx,4)
	movdqu	%xmm0, 16(%rcx,%rbx,4)
LBB0_14:
	cmpq	%rax, %r10
	jne	LBB0_15
LBB0_22:
	movq	$0, 40(%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r13
	movq	(%r14), %rsi
	cmpq	%rsi, %r13
	ja	LBB0_37
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_FATOFS
	movq	%rax, %r12
	movq	16(%r14), %rcx
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r15
	testq	%r15, %r15
	jne	LBB0_30
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
	testq	%r15, %r15
	jne	LBB0_30
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	callq	_brelse
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_fatblock
	movl	36(%r14), %edi
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdx
	movq	_NOCRED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	callq	_bread
	testl	%eax, %eax
	jne	LBB0_50
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %rdi
	callq	_FAT32
	movq	-48(%rbp), %rcx
	addq	(%rcx), %r15
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	callq	_getulong
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_24 Depth=1
	callq	_getushort
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_FAT12
	movq	%rbx, %rcx
	shrq	$4, %rcx
	testb	$1, %r13b
	cmoveq	%rbx, %rcx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	movq	24(%r14), %rax
	andq	%rax, %rcx
	testq	%r13, %r13
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=1
	andl	$-256, %eax
	movslq	32(%r14), %rdx
	orq	%rax, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_41
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_CLUST_FREE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_23
## %bb.36:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_usemap_free
	jmp	LBB0_23
LBB0_37:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	callq	_brelse
	movq	(%r14), %rsi
LBB0_39:
	movq	_N_INUSEBITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	(%rbx,%rsi), %rax
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	je	LBB0_42
## %bb.40:
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %r8
	jmp	LBB0_43
LBB0_41:
	movq	-48(%rbp), %rdi
	callq	_brelse
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_50
LBB0_42:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r8d
LBB0_43:
	incq	%rsi
	xorl	%eax, %eax
	cmpq	%r8, %rsi
	jae	LBB0_50
## %bb.44:
	movq	8(%r14), %rdi
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_47 Depth=1
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rdx, %rcx
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=1
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %edx
	orl	%edx, (%rdi,%rax,4)
	incq	%rsi
	cmpq	%r8, %rsi
	je	LBB0_49
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_45
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_46
LBB0_49:
	xorl	%eax, %eax
LBB0_50:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_N_INUSEBITS,8,3                ## @N_INUSEBITS
	.comm	_FULL_RUN,4,2                   ## @FULL_RUN
	.comm	_NOCRED,4,2                     ## @NOCRED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CLUST_FREE,8,3                 ## @CLUST_FREE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fillinusemap                   ; -- Begin function fillinusemap
	.p2align	2
_fillinusemap:                          ; @fillinusemap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x9, [x0]
Lloh0:
	adrp	x22, _N_INUSEBITS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _N_INUSEBITS@GOTPAGEOFF]
	ldr	x8, [x22]
	adds	x9, x8, x9
	b.hs	LBB0_10
; %bb.1:
	udiv	x9, x9, x8
	ldr	x8, [x19, #8]
	cmp	x9, #1
	csinc	x9, x9, xzr, hi
Lloh2:
	adrp	x10, _FULL_RUN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FULL_RUN@GOTPAGEOFF]
	cmp	x9, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_9
LBB0_3:
	add	x11, x10, #4
	cmp	x8, x11
	b.hs	LBB0_6
; %bb.4:
	add	x11, x8, x9, lsl #2
	cmp	x11, x10
	b.ls	LBB0_6
; %bb.5:
	mov	x11, #0
	b	LBB0_9
LBB0_6:
	mov	x12, #0
	and	x11, x9, #0xfffffffffffffff0
	ld1r.4s	{ v0 }, [x10]
	add	x13, x8, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	add	x12, x12, #16
	cmp	x12, x11
	b.ne	LBB0_7
; %bb.8:
	cmp	x9, x11
	b.eq	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	str	w12, [x8, x11, lsl #2]
	add	x11, x11, #1
	cmp	x11, x9
	b.ne	LBB0_9
LBB0_10:
	mov	x20, #0
	str	xzr, [x19, #40]
Lloh4:
	adrp	x23, _NOCRED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NOCRED@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CLUST_FREE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CLUST_FREE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	ldr	x10, [x19]
	cmp	x20, x10
	b.hi	LBB0_23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_FATOFS
	ldr	x8, [x19, #16]
	udiv	x9, x0, x8
	msub	x25, x9, x8, x0
	cbnz	x25, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_brelse
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x4, #0
	bl	_fatblock
	ldr	w0, [x19, #36]
	ldp	x2, x1, [sp, #8]
	ldr	w3, [x23]
	add	x4, sp, #24
	bl	_bread
	cbnz	w0, LBB0_30
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_FAT32
	mov	x8, x0
	ldr	x9, [sp, #24]
	ldr	x9, [x9]
	add	x0, x9, x25
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_getulong
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_getushort
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	mov	x0, x19
	bl	_FAT12
	tst	x20, #0x1
	ccmp	x0, #0, #4, ne
	lsr	x8, x21, #4
	csel	x8, x21, x8, eq
	ldr	x9, [x19, #24]
	and	x8, x8, x9
	cbnz	x20, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	and	x9, x9, #0xffffff00
	ldrsw	x10, [x19, #32]
	orr	x9, x9, x10
	cmp	x8, x9
	b.ne	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.22:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_usemap_free
	b	LBB0_11
LBB0_23:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_25
; %bb.24:
	bl	_brelse
	ldr	x10, [x19]
LBB0_25:
	ldr	x8, [x22]
	add	x9, x8, x10
	udiv	x9, x9, x8
	add	x10, x10, #1
	cmp	x10, x9
	b.hs	LBB0_28
; %bb.26:
	ldr	x11, [x19, #8]
	mov	w12, #1
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	udiv	x13, x10, x8
	msub	w14, w13, w8, w10
	lsl	x13, x13, #2
	ldr	w15, [x11, x13]
	lsl	w14, w12, w14
	orr	w14, w15, w14
	str	w14, [x11, x13]
	add	x10, x10, #1
	cmp	x10, x9
	b.ne	LBB0_27
LBB0_28:
	mov	w0, #0
	b	LBB0_30
LBB0_29:
	ldr	x0, [sp, #24]
	bl	_brelse
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_N_INUSEBITS,8,3                ; @N_INUSEBITS
	.comm	_FULL_RUN,4,2                   ; @FULL_RUN
	.comm	_NOCRED,4,2                     ; @NOCRED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CLUST_FREE,8,3                 ; @CLUST_FREE
.subsections_via_symbols
