	.file	"extr_errors.c_git_error_state_capture.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	git_error_state_capture
	.type	git_error_state_capture, @function
git_error_state_capture:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR GIT_GLOBAL[rip]
	mov	rbp, QWORD PTR 8[r13]
	call	memset@PLT
	test	r12d, r12d
	je	.L2
	lea	rax, g_git_oom_error[rip]
	xor	edx, edx
	mov	DWORD PTR [rbx], r12d
	cmp	rbp, rax
	sete	dl
	mov	DWORD PTR 4[rbx], edx
	test	rbp, rbp
	je	.L3
	mov	edx, DWORD PTR 4[rbp]
	mov	DWORD PTR 12[rbx], edx
	cmp	rbp, rax
	jne	.L4
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 8[rbx], eax
.L3:
	xor	eax, eax
	call	git_error_clear@PLT
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	mov	rdi, r13
	call	git_buf_detach@PLT
	mov	DWORD PTR 8[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	git_error_state_capture, .-git_error_state_capture
	.comm	g_git_oom_error,8,8
	.comm	GIT_GLOBAL,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_errors.c_git_error_state_capture.c"
	.text
	.align	2
	.global	git_error_state_capture
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_error_state_capture, %function
git_error_state_capture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L13
	mov	r2, #16
	ldr	r7, [r3]
	mov	r1, #0
	mov	r5, r0
	ldr	r6, [r7, #4]
	bl	memset
	cmp	r4, #0
	beq	.L2
	ldr	r3, .L13+4
	cmp	r6, #0
	sub	r2, r6, r3
	clz	r2, r2
	lsr	r2, r2, #5
	str	r4, [r5]
	str	r2, [r5, #4]
	beq	.L3
	ldr	r2, [r6, #4]
	cmp	r6, r3
	str	r2, [r5, #12]
	bne	.L4
	ldr	r3, [r6]
	str	r3, [r5, #8]
.L3:
	bl	git_error_clear
.L2:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r7
	bl	git_buf_detach
	str	r0, [r5, #8]
	b	.L3
.L14:
	.align	2
.L13:
	.word	GIT_GLOBAL
	.word	g_git_oom_error
	.size	git_error_state_capture, .-git_error_state_capture
	.comm	g_git_oom_error,8,4
	.comm	GIT_GLOBAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
