	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_no_submodules
_validate_no_submodules:                ## @validate_no_submodules
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_worktree_git_path
	movl	%eax, %edi
	callq	_is_directory
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	leaq	-80(%rbp), %rdi
	callq	_discard_index
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_worktree_git_path
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_get_worktree_git_dir
	leaq	-80(%rbp), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_read_index_from
	testq	%rax, %rax
	jle	LBB0_7
## %bb.2:
	cmpl	$0, -80(%rbp)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	leaq	-84(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	-80(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	(%rax,%rbx,8), %r15
	movl	4(%r15), %edi
	callq	_S_ISGITLINK
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_strbuf_reset
	movl	(%r13), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strbuf_addf
	movl	-48(%rbp), %edi
	movq	%r12, %rsi
	callq	_is_submodule_populated_gently
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_8
LBB0_7:
	leaq	-80(%rbp), %rdi
	callq	_discard_index
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modules"

L_.str.1:                               ## @.str.1
	.asciz	"index"

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

L_.str.3:                               ## @.str.3
	.asciz	"working trees containing submodules cannot be moved or removed"

	.no_dead_strip	_validate_no_submodules
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_no_submodules
_validate_no_submodules:                ; @validate_no_submodules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_worktree_git_path
	bl	_is_directory
	cbz	x0, LBB0_2
LBB0_1:
	add	x0, sp, #24
	bl	_discard_index
	add	x0, sp, #16
	bl	_strbuf_release
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_9
LBB0_2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_worktree_git_path
	mov	x20, x0
	mov	x0, x19
	bl	_get_worktree_git_dir
	mov	x2, x0
	add	x0, sp, #24
	mov	x1, x20
	bl	_read_index_from
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.3:
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
Lloh9:
	adrp	x20, l_.str.2@PAGE
Lloh10:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [sp, #24]
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	ldr	x22, [x8, x21, lsl #3]
	ldr	w0, [x22, #4]
	bl	_S_ISGITLINK
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	bl	_strbuf_reset
	ldr	w2, [x19]
	ldr	w3, [x22]
	add	x0, sp, #16
	mov	x1, x20
	bl	_strbuf_addf
	ldr	w0, [sp, #16]
	add	x1, sp, #12
	bl	_is_submodule_populated_gently
	cbz	w0, LBB0_5
	b	LBB0_1
LBB0_8:
	add	x0, sp, #24
	bl	_discard_index
	add	x0, sp, #16
	bl	_strbuf_release
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modules"

l_.str.1:                               ; @.str.1
	.asciz	"index"

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

l_.str.3:                               ; @.str.3
	.asciz	"working trees containing submodules cannot be moved or removed"

	.no_dead_strip	_validate_no_submodules
.subsections_via_symbols
