	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_push_unpushed_submodules       ## -- Begin function push_unpushed_submodules
	.p2align	4, 0x90
_push_unpushed_submodules:              ## @push_unpushed_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
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	_STRING_LIST_INIT_DUP@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	8(%rdx), %edx
	leaq	-64(%rbp), %rcx
	callq	_find_unpushed_submodules
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	movq	_REMOTE_UNCONFIGURED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.3:
	leaq	L_.str(%rip), %rdi
	leaq	-88(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_resolve_refdup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_5:
	cmpl	$0, -64(%rbp)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_submodule_push_check
	incq	%rbx
	movslq	-64(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	cmpl	$0, -64(%rbp)
	jle	LBB0_10
## %bb.11:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	movq	_stderr@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	movslq	-64(%rbp), %rax
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax,%r15,8), %r14
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_push_submodule
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_16
LBB0_10:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_15:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_string_list_clear
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ## @STRING_LIST_INIT_DUP
	.comm	_REMOTE_UNCONFIGURED,8,3        ## @REMOTE_UNCONFIGURED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to resolve HEAD as a valid ref."

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Pushing submodule '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to push submodule '%s'\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_push_unpushed_submodules       ; -- Begin function push_unpushed_submodules
	.p2align	2
_push_unpushed_submodules:              ; @push_unpushed_submodules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
Lloh0:
	adrp	x8, _STRING_LIST_INIT_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRING_LIST_INIT_DUP@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	w2, [x2, #8]
	add	x3, sp, #16
	bl	_find_unpushed_submodules
	cbz	w0, LBB0_13
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _REMOTE_UNCONFIGURED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REMOTE_UNCONFIGURED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	w1, #0
	mov	x3, #0
	bl	_resolve_refdup
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_4:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x8, x24, lsl #3]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_submodule_push_check
	add	x24, x24, #1
	ldrsw	x8, [sp, #16]
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x23
	bl	_free
LBB0_8:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x27, #0
	mov	w23, #1
Lloh10:
	adrp	x28, _stderr@GOTPAGE
Lloh11:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
Lloh12:
	adrp	x24, l_.str.2@PAGE
Lloh13:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh14:
	adrp	x25, l_.str.3@PAGE
Lloh15:
	add	x25, x25, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [sp, #16]
	cmp	x27, x8
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x26, [x8, x27, lsl #3]
	ldr	w0, [x28]
	mov	x1, x24
	mov	x2, x26
	bl	_fprintf
	mov	x0, x26
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_push_submodule
	cbnz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x28]
	mov	x1, x25
	mov	x2, x26
	bl	_fprintf
	mov	w23, #0
	b	LBB0_10
LBB0_13:
	mov	w23, #1
	b	LBB0_16
LBB0_14:
	mov	w23, #1
LBB0_15:
	add	x0, sp, #16
	mov	w1, #0
	bl	_string_list_clear
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRING_LIST_INIT_DUP,16,3      ; @STRING_LIST_INIT_DUP
	.comm	_REMOTE_UNCONFIGURED,8,3        ; @REMOTE_UNCONFIGURED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to resolve HEAD as a valid ref."

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Pushing submodule '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to push submodule '%s'\n"

.subsections_via_symbols
