	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bad_to_remove_submodule        ## -- Begin function bad_to_remove_submodule
	.p2align	4, 0x90
_bad_to_remove_submodule:               ## @bad_to_remove_submodule
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_CHILD_PROCESS_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm1, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	callq	_file_exists
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movq	%r15, %rdi
	callq	_is_empty_dir
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movq	%r15, %rdi
	callq	_submodule_uses_gitfile
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-52(%rbp), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_argv_array_pushl
	movq	_SUBMODULE_REMOVAL_IGNORE_UNTRACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_argv_array_push
	movq	_SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_argv_array_push
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_prepare_submodule_repo_env
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -80(%rbp)
	movl	$-1, -72(%rbp)
	movq	%r15, -64(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_start_command
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.8:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_13
LBB0_3:
	movl	$1, %ebx
	jmp	LBB0_16
LBB0_9:
	movl	-72(%rbp), %esi
	leaq	-40(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strbuf_read
	xorl	%ebx, %ebx
	cmpl	$3, %eax
	setge	%r12b
	movl	-72(%rbp), %edi
	callq	_close
	leaq	-80(%rbp), %rdi
	callq	_finish_command
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.12:
	leaq	L_.str.7(%rip), %rdi
LBB0_13:
	callq	__
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_die
LBB0_14:
	movl	$-1, %ebx
LBB0_15:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
LBB0_16:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movb	%r12b, %bl
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CHILD_PROCESS_INIT,32,3        ## @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status"

L_.str.1:                               ## @.str.1
	.asciz	"--porcelain"

L_.str.2:                               ## @.str.2
	.asciz	"--ignore-submodules=none"

	.comm	_SUBMODULE_REMOVAL_IGNORE_UNTRACKED,4,2 ## @SUBMODULE_REMOVAL_IGNORE_UNTRACKED
L_.str.3:                               ## @.str.3
	.asciz	"-uno"

L_.str.4:                               ## @.str.4
	.asciz	"-uall"

	.comm	_SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED,4,2 ## @SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED
L_.str.5:                               ## @.str.5
	.asciz	"--ignored"

	.comm	_SUBMODULE_REMOVAL_DIE_ON_ERROR,4,2 ## @SUBMODULE_REMOVAL_DIE_ON_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"could not start 'git status' in submodule '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"could not run 'git status' in submodule '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bad_to_remove_submodule        ; -- Begin function bad_to_remove_submodule
	.p2align	2
_bad_to_remove_submodule:               ; @bad_to_remove_submodule
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CHILD_PROCESS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHILD_PROCESS_INIT@GOTPAGEOFF]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #16]
Lloh2:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	bl	_file_exists
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_is_empty_dir
	cbz	x0, LBB0_4
LBB0_2:
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	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
LBB0_4:
	mov	x0, x19
	bl	_submodule_uses_gitfile
	cbz	w0, LBB0_10
; %bb.5:
	add	x22, sp, #16
	add	x21, x22, #28
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh9:
	adrp	x3, l_.str.2@PAGE
Lloh10:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x4, #0
	bl	_argv_array_pushl
Lloh11:
	adrp	x8, _SUBMODULE_REMOVAL_IGNORE_UNTRACKED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUBMODULE_REMOVAL_IGNORE_UNTRACKED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh16:
	adrp	x10, l_.str.4@PAGE
Lloh17:
	add	x10, x10, l_.str.4@PAGEOFF
	tst	w8, w20
	csel	x1, x10, x9, eq
	mov	x0, x21
	bl	_argv_array_push
Lloh18:
	adrp	x8, _SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
LBB0_7:
	add	x0, x22, #24
	bl	_prepare_submodule_repo_env
	movi.2s	v0, #1
	str	d0, [sp, #16]
	mov	w8, #-1
	str	w8, [sp, #24]
	str	x19, [sp, #32]
	add	x0, sp, #16
	bl	_start_command
	cbz	x0, LBB0_11
; %bb.8:
Lloh23:
	adrp	x8, _SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.9:
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_14
LBB0_10:
	mov	w21, #1
	b	LBB0_3
LBB0_11:
	ldr	w1, [sp, #24]
	add	x0, sp, #8
	mov	w2, #1024
	bl	_strbuf_read
	cmp	w0, #2
	cset	w21, gt
	ldr	w0, [sp, #24]
	bl	_close
	add	x0, sp, #16
	bl	_finish_command
	cbz	x0, LBB0_16
; %bb.12:
Lloh28:
	adrp	x8, _SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SUBMODULE_REMOVAL_DIE_ON_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.13:
Lloh31:
	adrp	x0, l_.str.7@PAGE
Lloh32:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_14:
	bl	__
	mov	x1, x19
	bl	_die
LBB0_15:
	mov	w21, #-1
LBB0_16:
	add	x0, sp, #8
	bl	_strbuf_release
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CHILD_PROCESS_INIT,32,3        ; @CHILD_PROCESS_INIT
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status"

l_.str.1:                               ; @.str.1
	.asciz	"--porcelain"

l_.str.2:                               ; @.str.2
	.asciz	"--ignore-submodules=none"

	.comm	_SUBMODULE_REMOVAL_IGNORE_UNTRACKED,4,2 ; @SUBMODULE_REMOVAL_IGNORE_UNTRACKED
l_.str.3:                               ; @.str.3
	.asciz	"-uno"

l_.str.4:                               ; @.str.4
	.asciz	"-uall"

	.comm	_SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED,4,2 ; @SUBMODULE_REMOVAL_IGNORE_IGNORED_UNTRACKED
l_.str.5:                               ; @.str.5
	.asciz	"--ignored"

	.comm	_SUBMODULE_REMOVAL_DIE_ON_ERROR,4,2 ; @SUBMODULE_REMOVAL_DIE_ON_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"could not start 'git status' in submodule '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"could not run 'git status' in submodule '%s'"

.subsections_via_symbols
