	.file	"extr_gorilla.c_gorilla_compressor_finish.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gorilla_compressor_finish
	.type	gorilla_compressor_finish, @function
gorilla_compressor_finish:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	pxor	xmm0, xmm0
	mov	rbx, rdi
	sub	rsp, 80
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	xor	eax, eax
	cmp	QWORD PTR [rdi], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	setne	al
	add	rdi, 28
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 4[rdi]
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR COMPRESSION_ALGORITHM_GORILLA[rip]
	mov	DWORD PTR 12[rsp], eax
	lea	rax, 4[rsp]
	mov	QWORD PTR 64[rsp], rax
	call	simple8brle_compressor_finish@PLT
	mov	QWORD PTR 56[rsp], rax
	test	rax, rax
	je	.L1
	lea	rdi, 24[rbx]
	call	simple8brle_compressor_finish@PLT
	xor	edi, edi
	test	rax, rax
	mov	QWORD PTR 48[rsp], rax
	setne	dil
	call	Assert@PLT
	mov	eax, DWORD PTR 20[rbx]
	lea	rdi, 16[rbx]
	mov	DWORD PTR 40[rsp], eax
	call	simple8brle_compressor_finish@PLT
	xor	edi, edi
	test	rax, rax
	mov	QWORD PTR 32[rsp], rax
	setne	dil
	call	Assert@PLT
	mov	eax, DWORD PTR 12[rbx]
	lea	rdi, 8[rbx]
	mov	DWORD PTR 24[rsp], eax
	call	simple8brle_compressor_finish@PLT
	xor	edi, edi
	mov	QWORD PTR 16[rsp], rax
	or	rax, QWORD PTR [rbx]
	setne	dil
	call	Assert@PLT
	lea	rdi, 16[rsp]
	call	compressed_gorilla_data_serialize@PLT
.L1:
	mov	rdx, QWORD PTR 72[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gorilla_compressor_finish, .-gorilla_compressor_finish
	.comm	COMPRESSION_ALGORITHM_GORILLA,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_gorilla.c_gorilla_compressor_finish.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gorilla_compressor_finish
	.syntax unified
	.arm
	.fpu softvfp
	.type	gorilla_compressor_finish, %function
gorilla_compressor_finish:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	ldr	r2, [r0]
	push	{r4, r5, lr}
	subs	r2, r2, r3
	movne	r2, #1
	ldr	r1, .L10
	ldr	ip, [r0, #28]
	ldr	lr, .L10+4
	sub	sp, sp, #52
	ldr	r1, [r1]
	ldr	lr, [lr]
	str	lr, [sp, #44]
	mov	lr,#0
	mov	r4, r0
	stmib	sp, {r2, ip}
	add	r0, r0, #24
	add	r2, sp, #4
	str	r1, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	str	r3, [sp, #36]
	str	r2, [sp, #40]
	bl	simple8brle_compressor_finish
	cmp	r0, #0
	str	r0, [sp, #36]
	beq	.L1
	add	r0, r4, #20
	bl	simple8brle_compressor_finish
	mov	r3, r0
	subs	r0, r0, #0
	movne	r0, #1
	str	r3, [sp, #32]
	bl	Assert
	ldr	r3, [r4, #16]
	add	r0, r4, #12
	str	r3, [sp, #28]
	bl	simple8brle_compressor_finish
	mov	r3, r0
	subs	r0, r0, #0
	movne	r0, #1
	str	r3, [sp, #24]
	bl	Assert
	ldr	r3, [r4, #8]
	add	r0, r4, #4
	str	r3, [sp, #20]
	bl	simple8brle_compressor_finish
	ldr	r3, [r4]
	str	r0, [sp, #16]
	orrs	r3, r0, r3
	movne	r0, #1
	moveq	r0, #0
	bl	Assert
	add	r0, sp, #16
	bl	compressed_gorilla_data_serialize
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	COMPRESSION_ALGORITHM_GORILLA
	.word	.LC0
	.size	gorilla_compressor_finish, .-gorilla_compressor_finish
	.comm	COMPRESSION_ALGORITHM_GORILLA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
