	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_next_submodule
_get_next_submodule:                    ## @get_next_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	%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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	40(%rdx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_16
## %bb.1:
	leaq	48(%rbx), %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	40(%rbx), %rcx
	incq	%rax
	movq	%rax, (%rbx)
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %r14
	movl	4(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rdi
	movl	(%r14), %esi
	callq	_fetch_task_create
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	16(%rax), %rdi
	movq	%rbx, %rsi
	callq	_get_fetch_recurse_config
	leaq	L_.str.1(%rip), %r12
	cmpl	$129, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_string_list_lookup
	leaq	L_.str(%rip), %r12
	testl	%eax, %eax
	je	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rdi
	movq	16(%r13), %rsi
	callq	_get_submodule_repo_for
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_fetch_task_release
	movq	%r13, %rdi
	callq	_free
	movl	4(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_is_empty_dir
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 8(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movslq	%eax, %rsi
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_strbuf_addf
	jmp	LBB0_15
LBB0_16:
	movslq	12(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	24(%rbx), %rcx
	movq	-8(%rcx,%rax,8), %r12
	decq	%rax
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movl	%eax, 12(%rbx)
	movl	20(%rbx), %edx
	movq	16(%r12), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	%r15, %rdi
	callq	_child_process_init
	leaq	12(%r15), %rdi
	callq	_prepare_submodule_repo_env_in_gitdir
	movl	$1, (%r15)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_argv_array_init
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_argv_array_pushv
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	movl	(%r12), %edi
	movq	_append_oid_to_argv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_oid_array_for_each_unique
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_19:
	movq	%r14, %rdi
	callq	_strbuf_release
	movl	$1, %eax
	jmp	LBB0_20
LBB0_17:
	xorl	%eax, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	callq	_child_process_init
	movq	8(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	12(%r15), %rdi
	callq	_prepare_submodule_repo_env_in_gitdir
	movl	$1, (%r15)
	cmpl	$0, 32(%rbx)
	jne	LBB0_11
## %bb.10:
	movl	20(%rbx), %edx
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_11:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_argv_array_init
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_argv_array_pushv
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_argv_array_push
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	movl	20(%rbx), %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_argv_array_push
	incq	(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on-demand"

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

	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
L_.str.2:                               ## @.str.2
	.asciz	"Fetching submodule %s%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"--submodule-prefix"

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

L_.str.5:                               ## @.str.5
	.asciz	"Could not access submodule '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"origin"

	.comm	_append_oid_to_argv,4,2         ## @append_oid_to_argv
	.no_dead_strip	_get_next_submodule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_next_submodule
_get_next_submodule:                    ; @get_next_submodule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x2]
	ldr	x9, [x2, #40]
	ldr	x9, [x9]
	ldr	x10, [x9]
	cmp	x8, x10
	b.hs	LBB0_14
; %bb.1:
	mov	x22, x1
Lloh0:
	adrp	x27, l_.str.1@PAGE
Lloh1:
	add	x27, x27, l_.str.1@PAGEOFF
	add	x24, x20, #48
Lloh2:
	adrp	x28, l_.str@PAGE
Lloh3:
	add	x28, x28, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x20, #40]
	ldr	x9, [x9]
	ldr	x10, [x9]
	cmp	x8, x10
	b.hs	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x9, #8]
	ldr	x25, [x9, x8, lsl #3]
	ldr	w0, [x25, #4]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #40]
	ldr	w1, [x25]
	bl	_fetch_task_create
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x0, [x0, #16]
	mov	x1, x20
	bl	_get_fetch_recurse_config
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #130
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x8, #4]
	mov	x0, x24
	bl	_string_list_lookup
	mov	x26, x28
	cbnz	w0, LBB0_10
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x27
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #40]
	ldr	x1, [x23, #16]
	bl	_get_submodule_repo_for
	str	x0, [x23, #8]
	cbnz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_fetch_task_release
	mov	x0, x23
	bl	_free
	ldr	w0, [x25, #4]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	bl	_is_empty_dir
	cbnz	w0, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	str	w8, [x20, #8]
Lloh4:
	adrp	x0, l_.str.5@PAGE
Lloh5:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	ldr	w2, [x25]
	mov	x0, x22
	bl	_strbuf_addf
	b	LBB0_2
LBB0_14:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_16
; %bb.15:
	ldr	x9, [x20, #24]
	sub	w8, w8, #1
	ldr	x23, [x9, w8, sxtw #3]
Lloh6:
	adrp	x9, _STRBUF_INIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STRBUF_INIT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	str	w8, [x20, #12]
	ldr	w2, [x20, #20]
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	mov	x0, x21
	bl	_child_process_init
	add	x0, x21, #12
	bl	_prepare_submodule_repo_env_in_gitdir
	mov	w22, #1
	str	w22, [x21]
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	x21, x21, #4
	mov	x0, x21
	bl	_argv_array_init
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_argv_array_pushv
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_argv_array_push
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
	ldr	w0, [x23]
Lloh17:
	adrp	x8, _append_oid_to_argv@GOTPAGE
Lloh18:
	ldr	x8, [x8, _append_oid_to_argv@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_oid_array_for_each_unique
	str	x23, [x19]
	add	x0, sp, #8
	bl	_strbuf_release
	b	LBB0_17
LBB0_16:
	mov	w22, #0
LBB0_17:
	mov	x0, x22
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh20:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x0, x21
	bl	_child_process_init
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	add	x0, x21, #12
	bl	_prepare_submodule_repo_env_in_gitdir
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	w2, [x20, #20]
	ldr	w8, [x25]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strbuf_addf
LBB0_20:
	add	x21, x21, #4
	mov	x0, x21
	bl	_argv_array_init
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_argv_array_pushv
	mov	x0, x21
	mov	x1, x26
	bl	_argv_array_push
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_argv_array_push
	ldr	w2, [x20, #20]
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_argv_array_push
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	str	x23, [x19]
	add	x0, sp, #8
	bl	_strbuf_release
	mov	w22, #1
	b	LBB0_17
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on-demand"

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

	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
l_.str.2:                               ; @.str.2
	.asciz	"Fetching submodule %s%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"--submodule-prefix"

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

l_.str.5:                               ; @.str.5
	.asciz	"Could not access submodule '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"origin"

	.comm	_append_oid_to_argv,4,2         ; @append_oid_to_argv
	.no_dead_strip	_get_next_submodule
.subsections_via_symbols
