	.file	"extr_pack.c_packfile_unpack_compressed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to init zlib stream on unpack"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"error inflating zlib stream"
	.text
	.p2align 4
	.type	packfile_unpack_compressed, @function
packfile_unpack_compressed:
.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, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	edx, 1
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	QWORD PTR 16[rsp], r8
	lea	r12, 64[rsp]
	mov	DWORD PTR 44[rsp], r9d
	mov	QWORD PTR 32[rsp], rdi
	lea	rdi, 56[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	call	GIT_ERROR_CHECK_ALLOC_ADD@PLT
	mov	rsi, QWORD PTR 56[rsp]
	mov	edi, 1
	call	git__calloc@PLT
	mov	rdi, rax
	mov	r14, rax
	mov	QWORD PTR 24[rsp], rax
	call	GIT_ERROR_CHECK_ALLOC@PLT
	xor	esi, esi
	mov	edx, 48
	mov	rdi, r12
	call	memset@PLT
	mov	rax, QWORD PTR 56[rsp]
	mov	rdi, r12
	mov	QWORD PTR 64[rsp], r14
	mov	QWORD PTR 88[rsp], rax
	mov	eax, DWORD PTR use_git_alloc[rip]
	mov	DWORD PTR 104[rsp], eax
	mov	eax, DWORD PTR use_git_free[rip]
	mov	DWORD PTR 100[rsp], eax
	call	inflateInit@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	jne	.L2
	lea	rax, 96[rsp]
	mov	edx, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rcx, QWORD PTR 8[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	call	pack_window_open@PLT
	mov	esi, DWORD PTR Z_FINISH[rip]
	mov	rdi, r12
	mov	QWORD PTR 72[rsp], rax
	mov	r14, rax
	call	inflate@PLT
	mov	rdi, rbx
	mov	r15d, eax
	call	git_mwindow_close@PLT
	cmp	QWORD PTR 88[rsp], 0
	je	.L10
	cmp	DWORD PTR Z_BUF_ERROR[rip], r15d
	jne	.L8
	test	r14, r14
	je	.L22
.L8:
	mov	rdx, QWORD PTR 72[rsp]
	sub	rdx, r14
	add	edx, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], edx
	cmp	DWORD PTR Z_OK[rip], r15d
	je	.L3
	cmp	DWORD PTR Z_BUF_ERROR[rip], r15d
	je	.L3
.L10:
	mov	rdi, r12
	call	inflateEnd@PLT
	cmp	DWORD PTR Z_STREAM_END[rip], r15d
	jne	.L6
	mov	rax, QWORD PTR 16[rsp]
	cmp	QWORD PTR 80[rsp], rax
	jne	.L6
	mov	rax, QWORD PTR 32[rsp]
	mov	ecx, DWORD PTR 44[rsp]
	mov	DWORD PTR 16[rax], ecx
	mov	rcx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rcx
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax], rcx
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 120[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 136
	.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
.L22:
	.cfi_restore_state
	mov	rdi, r12
	call	inflateEnd@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	git__free@PLT
	mov	eax, DWORD PTR GIT_EBUFS[rip]
	jmp	.L1
.L6:
	mov	rdi, QWORD PTR 24[rsp]
	call	git__free@PLT
	mov	edi, DWORD PTR GIT_ERROR_ZLIB[rip]
	lea	rsi, .LC1[rip]
	call	git_error_set@PLT
	mov	eax, -1
	jmp	.L1
.L2:
	mov	rdi, QWORD PTR 24[rsp]
	call	git__free@PLT
	mov	edi, DWORD PTR GIT_ERROR_ZLIB[rip]
	lea	rsi, .LC0[rip]
	call	git_error_set@PLT
	mov	eax, -1
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	packfile_unpack_compressed, .-packfile_unpack_compressed
	.comm	use_git_free,4,4
	.comm	use_git_alloc,4,4
	.comm	Z_STREAM_END,4,4
	.comm	Z_OK,4,4
	.comm	Z_FINISH,4,4
	.comm	Z_BUF_ERROR,4,4
	.comm	GIT_ERROR_ZLIB,4,4
	.comm	GIT_EBUFS,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_pack.c_packfile_unpack_compressed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to init zlib stream on unpack\000"
	.align	2
.LC1:
	.ascii	"error inflating zlib stream\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	packfile_unpack_compressed, %function
packfile_unpack_compressed:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	sub	sp, sp, #52
	mov	r5, r3
	ldr	r3, .L18
	str	r10, [sp, #4]
	mov	r7, r1
	mov	r4, r2
	ldr	r1, [sp, #88]
	mov	r2, #1
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	GIT_ERROR_CHECK_ALLOC_ADD
	ldr	r1, [sp, #12]
	mov	r0, #1
	bl	git__calloc
	mov	r6, r0
	str	r0, [sp]
	bl	GIT_ERROR_CHECK_ALLOC
	mov	r3, #0
	ldr	r1, .L18+4
	ldr	r2, .L18+8
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [sp, #12]
	str	r0, [sp, #40]
	add	r0, sp, #16
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #32]
	str	r6, [sp, #16]
	str	r1, [sp, #36]
	str	r2, [sp, #28]
	bl	inflateInit
	ldr	r8, .L18+12
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L2
	ldr	r2, [r5]
	ldr	r9, .L18+16
	ldr	r6, .L18+20
.L3:
	add	r3, sp, #32
	mov	r1, r4
	mov	r0, r7
	bl	pack_window_open
	mov	r10, r0
	ldr	r1, [r9]
	add	r0, sp, #16
	str	r10, [sp, #20]
	bl	inflate
	mov	fp, r0
	mov	r0, r4
	bl	git_mwindow_close
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r6]
	cmp	r3, fp
	cmpeq	r10, #0
	beq	.L16
	ldr	r2, [sp, #20]
	ldr	r0, [r5]
	sub	r2, r2, r10
	add	r2, r2, r0
	str	r2, [r5]
	ldr	r3, [r8]
	cmp	r3, fp
	beq	.L3
	ldr	r3, [r6]
	cmp	r3, fp
	beq	.L3
.L10:
	add	r0, sp, #16
	bl	inflateEnd
	ldr	r2, .L18+24
	ldr	r2, [r2]
	cmp	r2, fp
	bne	.L6
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #88]
	cmp	r3, r2
	bne	.L6
	mov	r0, #0
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #92]
	str	r2, [r3, #8]
	ldr	r2, [sp, #88]
	str	r2, [r3]
	ldr	r2, [sp]
	str	r2, [r3, #4]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	add	r0, sp, #16
	bl	inflateEnd
	ldr	r0, [sp]
	bl	git__free
	ldr	r3, .L18+28
	ldr	r0, [r3]
	b	.L1
.L6:
	ldr	r0, [sp]
	bl	git__free
	ldr	r3, .L18+32
	ldr	r1, .L18+36
	ldr	r0, [r3]
	bl	git_error_set
	mvn	r0, #0
	b	.L1
.L2:
	ldr	r0, [sp]
	bl	git__free
	ldr	r3, .L18+32
	ldr	r1, .L18+40
	ldr	r0, [r3]
	bl	git_error_set
	mvn	r0, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	use_git_alloc
	.word	use_git_free
	.word	Z_OK
	.word	Z_FINISH
	.word	Z_BUF_ERROR
	.word	Z_STREAM_END
	.word	GIT_EBUFS
	.word	GIT_ERROR_ZLIB
	.word	.LC1
	.word	.LC0
	.size	packfile_unpack_compressed, .-packfile_unpack_compressed
	.comm	use_git_free,4,4
	.comm	use_git_alloc,4,4
	.comm	Z_STREAM_END,4,4
	.comm	Z_OK,4,4
	.comm	Z_FINISH,4,4
	.comm	Z_BUF_ERROR,4,4
	.comm	GIT_ERROR_ZLIB,4,4
	.comm	GIT_EBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
