	.file	"extr_checkout.c_setup_new_branch_info_and_source_tree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_new_branch_info_and_source_tree, @function
setup_new_branch_info_and_source_tree:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdi], rcx
	call	setup_branch_path@PLT
	mov	rdi, QWORD PTR 16[rbx]
	xor	esi, esi
	call	check_refname_format@PLT
	test	eax, eax
	je	.L9
.L2:
	mov	QWORD PTR 16[rbx], 0
.L3:
	mov	edi, DWORD PTR the_repository[rip]
	mov	edx, 1
	mov	rsi, rbp
	call	lookup_commit_reference_gently@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	edi, eax
	test	eax, eax
	jne	.L4
	mov	rdi, rbp
	call	parse_tree_indirect@PLT
	mov	QWORD PTR [r12], rax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.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
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	parse_commit_or_die@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	get_commit_tree@PLT
	mov	QWORD PTR [r12], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	r13, 4[rsp]
	mov	rdi, QWORD PTR 16[rbx]
	mov	rsi, r13
	call	read_ref@PLT
	test	eax, eax
	jne	.L2
	mov	rsi, r13
	mov	rdi, rbp
	call	oidcpy@PLT
	jmp	.L3
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_new_branch_info_and_source_tree, .-setup_new_branch_info_and_source_tree
	.comm	the_repository,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_checkout.c_setup_new_branch_info_and_source_tree.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_new_branch_info_and_source_tree, %function
setup_new_branch_info_and_source_tree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	ip, .L11
	sub	sp, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r3, [r0]
	mov	r6, r1
	mov	r5, r2
	bl	setup_branch_path
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	check_refname_format
	cmp	r0, #0
	beq	.L9
.L2:
	mov	r3, #0
	str	r3, [r4, #8]
.L3:
	ldr	r3, .L11+4
	mov	r2, #1
	mov	r1, r5
	ldr	r0, [r3]
	bl	lookup_commit_reference_gently
	cmp	r0, #0
	str	r0, [r4, #4]
	bne	.L4
	mov	r0, r5
	bl	parse_tree_indirect
	str	r0, [r6]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	bl	parse_commit_or_die
	ldr	r0, [r4, #4]
	bl	get_commit_tree
	str	r0, [r6]
	b	.L1
.L9:
	mov	r1, sp
	ldr	r0, [r4, #8]
	bl	read_ref
	cmp	r0, #0
	bne	.L2
	mov	r1, sp
	mov	r0, r5
	bl	oidcpy
	b	.L3
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	the_repository
	.size	setup_new_branch_info_and_source_tree, .-setup_new_branch_info_and_source_tree
	.comm	the_repository,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
