	.file	"extr_submodule.c_submodule_move_head.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"submodule '%s' has dirty index"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s/modules/%s"
.LC2:
	.string	"--super-prefix=%s%s/"
.LC3:
	.string	"--recurse-submodules"
.LC4:
	.string	"read-tree"
.LC5:
	.string	"-n"
.LC6:
	.string	"-u"
.LC7:
	.string	"--reset"
.LC8:
	.string	"-m"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"Submodule '%s' could not be updated."
	.section	.rodata.str1.1
.LC10:
	.string	"--no-deref"
.LC11:
	.string	"HEAD"
.LC12:
	.string	"update-ref"
.LC13:
	.string	"%s/.git"
	.section	.rodata.str1.8
	.align 8
.LC14:
	.string	"could not get submodule information for '%s'"
	.text
	.p2align 4
	.globl	submodule_move_head
	.type	submodule_move_head, @function
submodule_move_head:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	mov	rsi, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	movdqu	xmm0, XMMWORD PTR CHILD_PROCESS_INIT[rip]
	mov	edi, DWORD PTR the_repository[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR CHILD_PROCESS_INIT[rip+16]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	QWORD PTR 48[rsp], rax
	call	is_submodule_active@PLT
	test	eax, eax
	je	.L42
	lea	rsi, 24[rsp]
	test	DWORD PTR SUBMODULE_MOVE_HEAD_FORCE[rip], ebx
	mov	eax, 0
	cmove	rsi, rax
	test	r13, r13
	je	.L5
	mov	rdi, rbp
	call	is_submodule_populated_gently@PLT
	test	eax, eax
	je	.L42
	mov	edi, DWORD PTR the_repository[rip]
	mov	rdx, rbp
	lea	rsi, null_oid[rip]
	call	submodule_from_path@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L44
.L25:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_FORCE[rip], ebx
	je	.L45
.L8:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_DRY_RUN[rip], ebx
	jne	.L10
	mov	rdi, rbp
	call	submodule_uses_gitfile@PLT
	test	eax, eax
	je	.L46
.L9:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_FORCE[rip], ebx
	je	.L10
	mov	rax, QWORD PTR 8[rsp]
	mov	r14d, DWORD PTR [rax]
	xor	eax, eax
	call	get_git_common_dir@PLT
	lea	rdi, .LC1[rip]
	mov	edx, r14d
	mov	esi, eax
	call	xstrfmt@PLT
	mov	rdi, rbp
	mov	edx, 1
	mov	r14, rax
	mov	rsi, rax
	call	connect_work_tree_and_git_dir@PLT
	mov	rdi, r14
	call	free@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	lea	r15, 52[rsp]
	lea	r14, 48[rsp]
	mov	rdi, r15
	call	prepare_submodule_repo_env@PLT
	mov	QWORD PTR 40[rsp], rbp
	movabs	rax, 4294967297
	mov	QWORD PTR 32[rsp], rax
	xor	eax, eax
	call	get_super_prefix_or_empty@PLT
	mov	rcx, rbp
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	mov	edx, eax
	call	argv_array_pushf@PLT
	xor	ecx, ecx
	xor	eax, eax
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, r14
	call	argv_array_pushl@PLT
	test	DWORD PTR SUBMODULE_MOVE_HEAD_DRY_RUN[rip], ebx
	je	.L11
	lea	rsi, .LC5[rip]
	mov	rdi, r14
	call	argv_array_push@PLT
.L12:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_FORCE[rip], ebx
	je	.L13
	lea	rsi, .LC7[rip]
	mov	rdi, r14
	call	argv_array_push@PLT
.L14:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_FORCE[rip], ebx
	jne	.L15
	test	r13, r13
	je	.L47
.L16:
	mov	rsi, r13
	mov	rdi, r14
	call	argv_array_push@PLT
.L15:
	mov	rsi, r12
	test	r12, r12
	je	.L48
.L17:
	mov	rdi, r14
	lea	r13, 32[rsp]
	call	argv_array_push@PLT
	mov	rdi, r13
	call	run_command@PLT
	test	rax, rax
	jne	.L49
	test	DWORD PTR SUBMODULE_MOVE_HEAD_DRY_RUN[rip], ebx
	je	.L50
.L42:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L51
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC8[rip]
	mov	rdi, r14
	call	argv_array_push@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC6[rip]
	mov	rdi, r14
	call	argv_array_push@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR the_repository[rip]
	mov	rdx, rbp
	lea	rsi, null_oid[rip]
	call	submodule_from_path@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L52
.L27:
	test	DWORD PTR SUBMODULE_MOVE_HEAD_DRY_RUN[rip], ebx
	jne	.L10
	mov	rax, QWORD PTR 8[rsp]
	mov	r14d, DWORD PTR [rax]
	xor	eax, eax
	call	get_git_common_dir@PLT
	lea	rdi, .LC1[rip]
	mov	edx, r14d
	mov	esi, eax
	call	xstrfmt@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	r14, rax
	mov	rsi, rax
	call	connect_work_tree_and_git_dir@PLT
	mov	rdi, r14
	call	free@PLT
	mov	rdi, rbp
	call	submodule_reset_index@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L50:
	test	r12, r12
	je	.L19
	mov	rdi, r13
	call	child_process_init@PLT
	mov	rdi, r15
	mov	QWORD PTR 40[rsp], rbp
	movabs	rax, 4294967297
	mov	QWORD PTR 32[rsp], rax
	call	prepare_submodule_repo_env@PLT
	xor	r9d, r9d
	mov	r8, r12
	mov	rdi, r14
	lea	rcx, .LC10[rip]
	lea	rdx, .LC11[rip]
	xor	eax, eax
	lea	rsi, .LC12[rip]
	call	argv_array_pushl@PLT
	mov	rdi, r13
	call	run_command@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, QWORD PTR 8[rsp]
	call	submodule_has_dirty_index@PLT
	test	rax, rax
	je	.L8
	lea	rdi, .LC0[rip]
	call	_@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	lea	rdi, .LC9[rip]
	call	_@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	xor	eax, eax
	call	empty_tree_oid_hex@PLT
	mov	rsi, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR STRBUF_INIT[rip]
	lea	r12, 28[rsp]
	mov	rdx, rbp
	lea	rsi, .LC13[rip]
	mov	rdi, r12
	mov	DWORD PTR 28[rsp], eax
	call	strbuf_addf@PLT
	mov	edi, DWORD PTR 28[rsp]
	call	unlink_or_warn@PLT
	mov	rdi, r12
	call	strbuf_release@PLT
	mov	rdi, rbp
	call	is_empty_dir@PLT
	test	rax, rax
	jne	.L53
.L20:
	mov	rdi, QWORD PTR 8[rsp]
	call	submodule_unset_core_worktree@PLT
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L46:
	mov	esi, DWORD PTR ABSORB_GITDIR_RECURSE_SUBMODULES[rip]
	mov	rdi, rbp
	call	absorb_git_dir_into_superproject@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L47:
	xor	eax, eax
	call	empty_tree_oid_hex@PLT
	mov	r13, rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rdi, rbp
	call	rmdir_or_warn@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rsi, rbp
	lea	rdi, .LC14[rip]
	call	BUG@PLT
	jmp	.L25
.L51:
	call	__stack_chk_fail@PLT
.L52:
	mov	rsi, rbp
	lea	rdi, .LC14[rip]
	call	BUG@PLT
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	submodule_move_head, .-submodule_move_head
	.comm	the_repository,4,4
	.comm	null_oid,4,4
	.comm	SUBMODULE_MOVE_HEAD_FORCE,4,4
	.comm	SUBMODULE_MOVE_HEAD_DRY_RUN,4,4
	.comm	STRBUF_INIT,4,4
	.comm	CHILD_PROCESS_INIT,24,16
	.comm	ABSORB_GITDIR_RECURSE_SUBMODULES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_submodule.c_submodule_move_head.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"submodule '%s' has dirty index\000"
	.align	2
.LC1:
	.ascii	"%s/modules/%s\000"
	.align	2
.LC2:
	.ascii	"--super-prefix=%s%s/\000"
	.align	2
.LC3:
	.ascii	"--recurse-submodules\000"
	.align	2
.LC4:
	.ascii	"read-tree\000"
	.align	2
.LC5:
	.ascii	"-n\000"
	.align	2
.LC6:
	.ascii	"-u\000"
	.align	2
.LC7:
	.ascii	"--reset\000"
	.align	2
.LC8:
	.ascii	"-m\000"
	.align	2
.LC9:
	.ascii	"Submodule '%s' could not be updated.\000"
	.align	2
.LC10:
	.ascii	"--no-deref\000"
	.align	2
.LC11:
	.ascii	"HEAD\000"
	.align	2
.LC12:
	.ascii	"update-ref\000"
	.align	2
.LC13:
	.ascii	"%s/.git\000"
	.align	2
.LC14:
	.ascii	"could not get submodule information for '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	submodule_move_head
	.syntax unified
	.arm
	.fpu softvfp
	.type	submodule_move_head, %function
submodule_move_head:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #52
	ldr	lr, .L53
	add	ip, sp, #24
	mov	r7, r2
	mov	r4, r3
	mov	r6, r1
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r8, .L53+4
	ldr	r3, [lr]
	ldr	r2, .L53+8
	mov	r1, r5
	ldr	r0, [r8]
	ldr	r2, [r2]
	str	r2, [sp, #44]
	mov	r2,#0
	str	r3, [ip]
	bl	is_submodule_active
	cmp	r0, #0
	beq	.L6
	ldr	r9, .L53+12
	ldr	r1, [r9]
	ands	r1, r4, r1
	addne	r1, sp, #16
	cmp	r6, #0
	beq	.L5
	mov	r0, r5
	bl	is_submodule_populated_gently
	cmp	r0, #0
	beq	.L6
	ldr	r0, [r8]
	mov	r2, r5
	ldr	r1, .L53+16
	bl	submodule_from_path
	subs	r8, r0, #0
	beq	.L43
.L25:
	ldr	r3, [r9]
	tst	r4, r3
	beq	.L44
.L8:
	ldr	r10, .L53+20
	ldr	r3, [r10]
	tst	r4, r3
	bne	.L10
	mov	r0, r5
	bl	submodule_uses_gitfile
	cmp	r0, #0
	beq	.L45
.L9:
	ldr	r3, [r9]
	tst	r4, r3
	beq	.L10
	bl	get_git_common_dir
	ldr	r2, [r8]
	mov	r1, r0
	ldr	r0, .L53+24
	bl	xstrfmt
	mov	fp, r0
	mov	r1, r0
	mov	r2, #1
	mov	r0, r5
	bl	connect_work_tree_and_git_dir
	mov	r0, fp
	bl	free
.L10:
	add	r0, sp, #40
	bl	prepare_submodule_repo_env
	mov	r3, #1
	str	r5, [sp, #32]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	bl	get_super_prefix_or_empty
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L53+28
	add	r0, sp, #36
	bl	argv_array_pushf
	ldr	r1, .L53+32
	ldr	r2, .L53+36
	mov	r3, #0
	add	r0, sp, #36
	bl	argv_array_pushl
	ldr	r3, [r10]
	add	r0, sp, #36
	tst	r4, r3
	ldrne	r1, .L53+40
	ldreq	r1, .L53+44
	bl	argv_array_push
	ldr	r3, [r9]
	add	r0, sp, #36
	tst	r4, r3
	ldrne	r1, .L53+48
	ldreq	r1, .L53+52
	bl	argv_array_push
	ldr	r3, [r9]
	tst	r4, r3
	bne	.L15
	cmp	r6, #0
	beq	.L46
.L16:
	mov	r1, r6
	add	r0, sp, #36
	bl	argv_array_push
.L15:
	cmp	r7, #0
	movne	r1, r7
	beq	.L47
.L17:
	add	r0, sp, #36
	bl	argv_array_push
	add	r0, sp, #24
	bl	run_command
	subs	r6, r0, #0
	bne	.L48
	ldr	r3, [r10]
	tst	r4, r3
	beq	.L49
.L6:
	mov	r6, #0
.L1:
	ldr	r3, .L53+8
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L50
	mov	r0, r6
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r0, [r8]
	mov	r2, r5
	ldr	r1, .L53+16
	bl	submodule_from_path
	subs	r8, r0, #0
	beq	.L51
.L27:
	ldr	r10, .L53+20
	ldr	r2, [r10]
	ands	fp, r4, r2
	bne	.L10
	bl	get_git_common_dir
	ldr	r2, [r8]
	mov	r1, r0
	ldr	r0, .L53+24
	bl	xstrfmt
	mov	r2, fp
	mov	r1, r0
	str	r0, [sp, #12]
	mov	r0, r5
	bl	connect_work_tree_and_git_dir
	ldr	r1, [sp, #12]
	mov	r0, r1
	bl	free
	mov	r0, r5
	bl	submodule_reset_index
	b	.L10
.L49:
	cmp	r7, #0
	beq	.L19
	add	r0, sp, #24
	bl	child_process_init
	mov	r3, #1
	add	r0, sp, #40
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r5, [sp, #32]
	bl	prepare_submodule_repo_env
	ldr	r3, .L53+56
	ldr	r2, .L53+60
	ldr	r1, .L53+64
	str	r6, [sp, #4]
	str	r7, [sp]
	add	r0, sp, #36
	bl	argv_array_pushl
	add	r0, sp, #24
	bl	run_command
	subs	r0, r0, #0
	movne	r0, #1
	rsb	r6, r0, #0
	b	.L1
.L44:
	mov	r0, r8
	bl	submodule_has_dirty_index
	cmp	r0, #0
	beq	.L8
	ldr	r0, .L53+68
	bl	_
	mov	r1, r5
	bl	error
	mov	r6, r0
	b	.L1
.L48:
	ldr	r0, .L53+72
	bl	_
	mov	r1, r5
	bl	error
	mov	r6, r0
	b	.L1
.L47:
	bl	empty_tree_oid_hex
	mov	r1, r0
	b	.L17
.L19:
	ldr	r3, .L53+76
	mov	r2, r5
	ldr	r3, [r3]
	ldr	r1, .L53+80
	add	r0, sp, #20
	str	r3, [sp, #20]
	bl	strbuf_addf
	ldr	r0, [sp, #20]
	bl	unlink_or_warn
	add	r0, sp, #20
	bl	strbuf_release
	mov	r0, r5
	bl	is_empty_dir
	cmp	r0, #0
	bne	.L52
.L20:
	mov	r0, r8
	bl	submodule_unset_core_worktree
	b	.L1
.L45:
	ldr	r3, .L53+84
	mov	r0, r5
	ldr	r1, [r3]
	bl	absorb_git_dir_into_superproject
	b	.L9
.L46:
	bl	empty_tree_oid_hex
	mov	r6, r0
	b	.L16
.L52:
	mov	r0, r5
	bl	rmdir_or_warn
	b	.L20
.L43:
	mov	r1, r5
	ldr	r0, .L53+88
	bl	BUG
	b	.L25
.L50:
	bl	__stack_chk_fail
.L51:
	mov	r1, r5
	ldr	r0, .L53+88
	bl	BUG
	b	.L27
.L54:
	.align	2
.L53:
	.word	CHILD_PROCESS_INIT
	.word	the_repository
	.word	.LC15
	.word	SUBMODULE_MOVE_HEAD_FORCE
	.word	null_oid
	.word	SUBMODULE_MOVE_HEAD_DRY_RUN
	.word	.LC1
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC0
	.word	.LC9
	.word	STRBUF_INIT
	.word	.LC13
	.word	ABSORB_GITDIR_RECURSE_SUBMODULES
	.word	.LC14
	.size	submodule_move_head, .-submodule_move_head
	.comm	the_repository,4,4
	.comm	null_oid,4,4
	.comm	SUBMODULE_MOVE_HEAD_FORCE,4,4
	.comm	SUBMODULE_MOVE_HEAD_DRY_RUN,4,4
	.comm	STRBUF_INIT,4,4
	.comm	CHILD_PROCESS_INIT,20,4
	.comm	ABSORB_GITDIR_RECURSE_SUBMODULES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
