	.file	"extr_typechange.c_test_checkout_typechange__checkout_typechanges_safe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"typechanges"
.LC1:
	.string	"typechanges/a"
.LC2:
	.string	"typechanges/b"
.LC3:
	.string	"typechanges/c"
.LC4:
	.string	"typechanges/d"
.LC5:
	.string	"typechanges/e"
	.text
	.p2align 4
	.globl	test_checkout_typechange__checkout_typechanges_safe
	.type	test_checkout_typechange__checkout_typechanges_safe, @function
test_checkout_typechange__checkout_typechanges_safe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR GIT_CHECKOUT_OPTIONS_INIT[rip]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR g_typechange_oids[rip]
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L1
	xor	ebx, ebx
	lea	r13, 16[rsp]
	lea	r12, 12[rsp]
	lea	rbp, .LC0[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	call	git_path_isdir@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC1[rip]
	call	git_path_exists@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC2[rip]
	call	git_path_exists@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC3[rip]
	call	git_path_exists@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC4[rip]
	call	git_path_exists@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC5[rip]
	call	git_path_exists@PLT
	mov	edi, eax
	call	cl_assert@PLT
.L6:
	mov	rax, QWORD PTR g_typechange_oids[rip]
	add	rbx, 1
	mov	rdx, QWORD PTR [rax+rbx*8]
	test	rdx, rdx
	je	.L1
.L7:
	mov	esi, DWORD PTR g_repo[rip]
	mov	rdi, r13
	call	git_revparse_single@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	test	rbx, rbx
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r12
	mov	eax, DWORD PTR GIT_CHECKOUT_FORCE[rip]
	mov	edi, DWORD PTR g_repo[rip]
	cmovne	eax, DWORD PTR GIT_CHECKOUT_SAFE[rip]
	mov	DWORD PTR 12[rsp], eax
	call	git_checkout_tree@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	git_object_id@PLT
	mov	edi, DWORD PTR g_repo[rip]
	mov	esi, eax
	call	git_repository_set_head_detached@PLT
	mov	edi, eax
	call	cl_git_pass@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	git_object_id@PLT
	mov	edi, DWORD PTR g_repo[rip]
	mov	ecx, 1
	xor	edx, edx
	mov	esi, eax
	call	assert_workdir_matches_tree@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	git_object_free@PLT
	mov	rax, QWORD PTR g_typechange_empty[rip]
	mov	rdi, rbp
	mov	eax, DWORD PTR [rax+rbx*4]
	test	eax, eax
	je	.L15
	call	git_path_isdir@PLT
	mov	edi, eax
	call	cl_assert@PLT
	lea	rdi, .LC1[rip]
	call	git_path_exists@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	cl_assert@PLT
	lea	rdi, .LC2[rip]
	call	git_path_exists@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	cl_assert@PLT
	lea	rdi, .LC3[rip]
	call	git_path_exists@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	cl_assert@PLT
	lea	rdi, .LC4[rip]
	call	git_path_exists@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	cl_assert@PLT
	lea	rdi, .LC5[rip]
	call	git_path_exists@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	cl_assert@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_checkout_typechange__checkout_typechanges_safe, .-test_checkout_typechange__checkout_typechanges_safe
	.comm	g_typechange_oids,8,8
	.comm	g_typechange_empty,8,8
	.comm	g_repo,4,4
	.comm	GIT_CHECKOUT_SAFE,4,4
	.comm	GIT_CHECKOUT_OPTIONS_INIT,4,4
	.comm	GIT_CHECKOUT_FORCE,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_typechange.c_test_checkout_typechange__checkout_typechanges_safe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"typechanges\000"
	.align	2
.LC1:
	.ascii	"typechanges/a\000"
	.align	2
.LC2:
	.ascii	"typechanges/b\000"
	.align	2
.LC3:
	.ascii	"typechanges/c\000"
	.align	2
.LC4:
	.ascii	"typechanges/d\000"
	.align	2
.LC5:
	.ascii	"typechanges/e\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_checkout_typechange__checkout_typechanges_safe
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_checkout_typechange__checkout_typechanges_safe, %function
test_checkout_typechange__checkout_typechanges_safe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L17
	ldr	r3, .L17+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L17+8
	sub	sp, sp, #20
	cmp	r2, #0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	str	r3, [sp, #8]
	beq	.L1
	mov	r6, #0
	ldr	r4, .L17+12
	mov	r5, r6
	ldr	fp, .L17+16
	ldr	r10, .L17+20
	ldr	r9, .L17+24
	b	.L7
.L15:
	bl	git_path_isdir
	bl	cl_assert
	mov	r0, r9
	bl	git_path_exists
	bl	cl_assert
	ldr	r0, .L17+28
	bl	git_path_exists
	bl	cl_assert
	ldr	r0, .L17+32
	bl	git_path_exists
	bl	cl_assert
	ldr	r0, .L17+36
	bl	git_path_exists
	bl	cl_assert
	ldr	r0, .L17+40
	bl	git_path_exists
	bl	cl_assert
.L6:
	ldr	r3, [r7]
	add	r5, r5, #4
	ldr	r2, [r3, r5]
	add	r6, r6, #1
	cmp	r2, #0
	beq	.L1
.L7:
	ldr	r1, [r4]
	add	r0, sp, #4
	bl	git_revparse_single
	bl	cl_git_pass
	cmp	r6, #0
	ldreq	r3, .L17+44
	ldrne	r3, .L17+48
	add	r2, sp, #8
	ldr	r3, [r3]
	ldr	r1, [sp, #4]
	ldr	r0, [r4]
	str	r3, [sp, #8]
	bl	git_checkout_tree
	bl	cl_git_pass
	ldr	r0, [sp, #4]
	ldr	r8, [r4]
	bl	git_object_id
	mov	r1, r0
	mov	r0, r8
	bl	git_repository_set_head_detached
	bl	cl_git_pass
	ldr	r0, [sp, #4]
	ldr	r8, [r4]
	bl	git_object_id
	mov	r3, #1
	mov	r1, r0
	mov	r2, #0
	mov	r0, r8
	bl	assert_workdir_matches_tree
	ldr	r0, [sp, #4]
	bl	git_object_free
	ldr	r3, [fp]
	mov	r0, r10
	ldr	r3, [r3, r5]
	cmp	r3, #0
	beq	.L15
	bl	git_path_isdir
	bl	cl_assert
	mov	r0, r9
	bl	git_path_exists
	clz	r0, r0
	lsr	r0, r0, #5
	bl	cl_assert
	ldr	r0, .L17+28
	bl	git_path_exists
	clz	r0, r0
	lsr	r0, r0, #5
	bl	cl_assert
	ldr	r0, .L17+32
	bl	git_path_exists
	clz	r0, r0
	lsr	r0, r0, #5
	bl	cl_assert
	ldr	r0, .L17+36
	bl	git_path_exists
	clz	r0, r0
	lsr	r0, r0, #5
	bl	cl_assert
	ldr	r0, .L17+40
	bl	git_path_exists
	clz	r0, r0
	lsr	r0, r0, #5
	bl	cl_assert
	b	.L6
.L1:
	ldr	r3, .L17+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	g_typechange_oids
	.word	GIT_CHECKOUT_OPTIONS_INIT
	.word	.LC6
	.word	g_repo
	.word	g_typechange_empty
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	GIT_CHECKOUT_FORCE
	.word	GIT_CHECKOUT_SAFE
	.size	test_checkout_typechange__checkout_typechanges_safe, .-test_checkout_typechange__checkout_typechanges_safe
	.comm	g_typechange_oids,4,4
	.comm	g_typechange_empty,4,4
	.comm	g_repo,4,4
	.comm	GIT_CHECKOUT_SAFE,4,4
	.comm	GIT_CHECKOUT_OPTIONS_INIT,4,4
	.comm	GIT_CHECKOUT_FORCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
