	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msdos_populate_dir
_msdos_populate_dir:                    ## @msdos_populate_dir
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%edi, %edi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_snprintf
	cmpq	%r13, %rax
	jae	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r12), %rax
	movl	(%rax), %edx
	movq	_FI_ALLOCATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %ecx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%edx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdx
	incq	%rdx
	movq	%rdx, (%r14)
	movq	%rdx, 8(%rax)
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 40(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_FI_WRITTEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	jne	LBB0_1
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	orl	%ecx, %edx
	movl	%edx, (%rax)
	cmpq	$0, 24(%r12)
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_msdosfs_mkdire
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r12), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_msdos_populate_dir
	cmpl	$-1, %eax
	jne	LBB0_1
	jmp	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r12), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	cmoveq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_msdosfs_mkfile
	testq	%rax, %rax
	jne	LBB0_1
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	16(%r12), %rsi
	movq	(%r12), %rdx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_1
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_4
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_15
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_15
LBB0_22:
	leaq	L_.str.5(%rip), %rdi
LBB0_15:
	movq	%rbx, %rsi
	callq	_warn
LBB0_4:
	movl	$-1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.23:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

L_.str.1:                               ## @.str.1
	.asciz	"path %s too long"

	.comm	_FI_ALLOCATED,4,2               ## @FI_ALLOCATED
	.comm	_FI_WRITTEN,4,2                 ## @FI_WRITTEN
L_.str.2:                               ## @.str.2
	.asciz	"msdosfs_mkdire %s"

L_.str.3:                               ## @.str.3
	.asciz	"msdos_populate_dir %s"

L_.str.4:                               ## @.str.4
	.asciz	"skipping non-regular file %s/%s"

L_.str.5:                               ## @.str.5
	.asciz	"msdosfs_mkfile %s"

	.no_dead_strip	_msdos_populate_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msdos_populate_dir
_msdos_populate_dir:                    ; @msdos_populate_dir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	stur	x3, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x26, [x22, #48]
	cbz	x26, LBB0_15
; %bb.1:
Lloh8:
	adrp	x27, l_.str@PAGE
Lloh9:
	add	x27, x27, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _FI_ALLOCATED@GOTPAGE
Lloh11:
	ldr	x28, [x28, _FI_ALLOCATED@GOTPAGEOFF]
Lloh12:
	adrp	x21, _FI_WRITTEN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _FI_WRITTEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x1, [x26, #16]
	ldr	x8, [x26]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x26, #48]
	cbz	x26, LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x4, [x26]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x27
	mov	x3, x24
	bl	_snprintf
	cmp	x0, x25
	b.hs	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #32]
	ldr	w9, [x8]
	ldr	w10, [x28]
	tst	w10, w9
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w9, w10, w9
	str	w9, [x8]
	cmp	x26, x22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x20]
	add	x10, x10, #1
	str	x10, [x20]
	str	x10, [x8, #8]
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	str	x10, [x26, #40]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x21]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	x8, [x26, #24]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	mov	x2, x26
	bl	_msdosfs_mkdire
	cbz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	x2, [x26, #24]
	mov	x0, x19
	mov	x3, x26
	mov	x4, x20
	bl	_msdos_populate_dir
	cmn	w0, #1
	b.ne	LBB0_3
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #20]
	bl	_S_ISREG
	cbz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #8]
	cmp	x8, #0
	csel	x0, x19, x8, eq
	mov	x1, x23
	mov	x2, x26
	bl	_msdosfs_mkfile
	cbnz	x0, LBB0_3
; %bb.14:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_15:
	mov	w0, #0
	b	LBB0_21
LBB0_16:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_warnx
	b	LBB0_20
LBB0_17:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_19:
	mov	x1, x19
	bl	_warn
LBB0_20:
	mov	w0, #-1
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.asciz	"path %s too long"

	.comm	_FI_ALLOCATED,4,2               ; @FI_ALLOCATED
	.comm	_FI_WRITTEN,4,2                 ; @FI_WRITTEN
l_.str.2:                               ; @.str.2
	.asciz	"msdosfs_mkdire %s"

l_.str.3:                               ; @.str.3
	.asciz	"msdos_populate_dir %s"

l_.str.4:                               ; @.str.4
	.asciz	"skipping non-regular file %s/%s"

l_.str.5:                               ; @.str.5
	.asciz	"msdosfs_mkfile %s"

	.no_dead_strip	_msdos_populate_dir
.subsections_via_symbols
