	.file	"extr_checkout.c_checkout_action.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	checkout_action, @function
checkout_action:
.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
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR [rsi]
	mov	r15, QWORD PTR [r8]
	mov	QWORD PTR 24[rsp], rdi
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR 16[rsp], rax
	test	r15, r15
	je	.L11
.L3:
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [r15]
	mov	rax, QWORD PTR 8[rsp]
	call	rax
	test	eax, eax
	jns	.L4
	mov	rdi, QWORD PTR 8[r12]
	mov	rsi, QWORD PTR [r15]
	mov	rax, QWORD PTR 16[rsp]
	call	rax
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR GIT_FILEMODE_TREE[rip]
	cmp	QWORD PTR 8[r15], rax
	je	.L34
	mov	rdi, QWORD PTR [r15]
	call	strlen@PLT
	mov	rdx, QWORD PTR 8[r12]
	cmp	BYTE PTR [rdx+rax], 47
	je	.L35
.L5:
	mov	rcx, r14
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	call	checkout_action_wd_only@PLT
	test	eax, eax
	je	.L7
.L32:
	cmp	DWORD PTR GIT_ITEROVER[rip], eax
	je	.L7
.L1:
	add	rsp, 40
	.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
.L34:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbx
	call	git_iterator_advance_into@PLT
	test	eax, eax
	js	.L32
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r15, QWORD PTR [rbx]
	test	r15, r15
	jne	.L3
.L11:
	mov	rdi, QWORD PTR 24[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r12
	mov	rsi, rbp
	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
	jmp	checkout_action_no_wd@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	je	.L15
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [r15]
	mov	rax, QWORD PTR 16[rsp]
	call	rax
	test	eax, eax
	jne	.L11
	mov	rdi, QWORD PTR 8[r12]
	mov	r14, QWORD PTR [r15]
	call	strlen@PLT
	cmp	BYTE PTR [r14+rax], 47
	jne	.L11
	mov	rax, QWORD PTR GIT_DELTA_TYPECHANGE[rip]
	cmp	QWORD PTR [r12], rax
	jne	.L13
	mov	rdx, QWORD PTR 16[r12]
	mov	rax, QWORD PTR GIT_FILEMODE_TREE[rip]
	cmp	rdx, rax
	je	.L36
	mov	rcx, QWORD PTR 24[r12]
	cmp	rax, rcx
	je	.L15
	mov	rax, QWORD PTR GIT_FILEMODE_COMMIT[rip]
	cmp	rcx, rax
	je	.L15
	cmp	rdx, rax
	je	.L15
.L13:
	mov	rsi, r14
	mov	rdi, rbp
	call	checkout_is_empty_dir@PLT
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR 24[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r12
	mov	rsi, rbp
	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
	jmp	checkout_action_with_wd_dir_empty@PLT
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	rcx, r15
	mov	rdx, r12
	call	checkout_action_with_wd_blocker@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR git_iterator_advance@GOTPCREL[rip]
.L9:
	test	ebp, ebp
	jne	.L18
	mov	rsi, r13
	mov	rdi, rbx
	call	rax
	test	eax, eax
	jns	.L1
	cmp	DWORD PTR GIT_ITEROVER[rip], eax
	mov	QWORD PTR [rbx], 0
	cmove	eax, ebp
	add	rsp, 40
	.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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	r8, r15
	mov	rcx, r13
	mov	rdx, r12
	call	checkout_action_with_wd@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR git_iterator_advance@GOTPCREL[rip]
	jmp	.L9
.L17:
	mov	rdi, QWORD PTR 24[rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8, r15
	mov	rcx, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdx, r12
	mov	rsi, rbp
	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
	jmp	checkout_action_with_wd_dir@PLT
.L36:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	r8, r15
	mov	rcx, r13
	mov	rdx, r12
	call	checkout_action_with_wd@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR git_iterator_advance_into@GOTPCREL[rip]
	jmp	.L9
.L18:
	mov	eax, ebp
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	checkout_action, .-checkout_action
	.comm	GIT_ITEROVER,4,4
	.comm	GIT_FILEMODE_TREE,8,8
	.comm	GIT_FILEMODE_COMMIT,8,8
	.comm	GIT_DELTA_TYPECHANGE,8,8
	.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_checkout.c_checkout_action.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkout_action, %function
checkout_action:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	sub	sp, sp, #28
	ldr	r1, [r1]
	ldr	r6, [sp, #64]
	mov	r7, r3
	ldr	r3, [r1]
	ldr	r8, [r6]
	str	r3, [sp, #12]
	ldr	r3, [r1, #4]
	cmp	r8, #0
	mov	r4, r2
	ldr	r9, [sp, #68]
	str	r0, [sp, #20]
	str	r3, [sp, #16]
	beq	.L11
	mov	r3, r9
	mov	r9, r8
	mov	r8, r3
	ldr	fp, .L37
	ldr	r10, .L37+4
.L3:
	ldr	r1, [r4, #4]
	ldr	r0, [r9]
	ldr	r3, [sp, #12]
	blx	r3
	cmp	r0, #0
	bge	.L4
	ldr	r1, [r9]
	ldr	r0, [r4, #4]
	ldr	r3, [sp, #16]
	blx	r3
	cmp	r0, #0
	bne	.L5
	ldr	r1, [r9, #4]
	ldr	r2, [r10]
	cmp	r1, r2
	beq	.L34
	ldr	r0, [r9]
	bl	strlen
	ldr	r2, [r4, #4]
	ldrb	r2, [r2, r0]	@ zero_extendqisi2
	cmp	r2, #47
	beq	.L35
.L5:
	mov	r3, r8
	mov	r2, r6
	mov	r1, r7
	mov	r0, r5
	bl	checkout_action_wd_only
	cmp	r0, #0
	beq	.L7
.L32:
	ldr	r3, [fp]
	cmp	r3, r0
	beq	.L7
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	mov	r1, r7
	mov	r0, r6
	bl	git_iterator_advance_into
	cmp	r0, #0
	blt	.L32
.L7:
	ldr	r9, [r6]
	cmp	r9, #0
	bne	.L3
.L11:
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [sp, #20]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	checkout_action_no_wd
.L4:
	mov	r8, r9
	beq	.L15
	ldr	r1, [r4, #4]
	ldr	r0, [r9]
	ldr	r3, [sp, #16]
	blx	r3
	cmp	r0, #0
	bne	.L11
	ldr	r0, [r4, #4]
	bl	strlen
	ldr	r1, [r9]
	ldrb	r2, [r1, r0]	@ zero_extendqisi2
	cmp	r2, #47
	bne	.L11
	ldr	r2, .L37+8
	ldr	r0, [r4]
	ldr	r2, [r2]
	cmp	r0, r2
	bne	.L13
	ldr	r0, .L37+4
	ldr	r2, [r4, #8]
	ldr	r0, [r0]
	cmp	r2, r0
	beq	.L36
	ldr	ip, [r4, #12]
	cmp	r0, ip
	beq	.L15
	ldr	r0, .L37+12
	ldr	r0, [r0]
	cmp	r2, r0
	cmpne	ip, r0
	beq	.L15
.L13:
	mov	r0, r5
	bl	checkout_is_empty_dir
	cmp	r0, #0
	beq	.L16
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [sp, #20]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	checkout_action_with_wd_dir_empty
.L35:
	mov	r3, r9
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [sp, #20]
	bl	checkout_action_with_wd_blocker
	mov	r4, r0
	ldr	r3, .L37+16
.L9:
	cmp	r4, #0
	bne	.L17
	mov	r1, r7
	mov	r0, r6
	blx	r3
	cmp	r0, #0
	bge	.L1
	ldr	r3, .L37
	str	r4, [r6]
	ldr	r3, [r3]
	cmp	r3, r0
	moveq	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r2, r4
	mov	r3, r7
	mov	r1, r5
	ldr	r0, [sp, #20]
	str	r8, [sp]
	bl	checkout_action_with_wd
	ldr	r3, .L37+16
	mov	r4, r0
	b	.L9
.L16:
	mov	r3, r7
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [sp, #20]
	str	r8, [sp, #64]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	checkout_action_with_wd_dir
.L36:
	mov	r2, r4
	mov	r3, r7
	mov	r1, r5
	ldr	r0, [sp, #20]
	str	r9, [sp]
	bl	checkout_action_with_wd
	ldr	r3, .L37+20
	mov	r4, r0
	b	.L9
.L17:
	mov	r0, r4
	b	.L1
.L38:
	.align	2
.L37:
	.word	GIT_ITEROVER
	.word	GIT_FILEMODE_TREE
	.word	GIT_DELTA_TYPECHANGE
	.word	GIT_FILEMODE_COMMIT
	.word	git_iterator_advance
	.word	git_iterator_advance_into
	.size	checkout_action, .-checkout_action
	.comm	GIT_ITEROVER,4,4
	.comm	GIT_FILEMODE_TREE,4,4
	.comm	GIT_FILEMODE_COMMIT,4,4
	.comm	GIT_DELTA_TYPECHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
