	.file	"extr_l_bsp_q2.c_Q2_CompressVis.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Q2_CompressVis
	.type	Q2_CompressVis, @function
Q2_CompressVis:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR dvis[rip]
	mov	r10d, DWORD PTR [rax]
	add	r10d, 7
	sar	r10d, 3
	test	r10d, r10d
	jle	.L9
	mov	r9, rsi
	xor	ecx, ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, eax
	add	r9, 8
	cmp	r10d, ecx
	jle	.L15
.L8:
	movsx	rax, ecx
	lea	rdx, [rdi+rax*8]
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR [r9], rax
	cmp	QWORD PTR [rdx], 0
	lea	eax, 1[rcx]
	jne	.L16
	cmp	r10d, eax
	jle	.L10
	mov	r8d, r10d
	cdqe
	mov	edx, 1
	sub	r8d, ecx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	edx, 255
	je	.L11
	add	edx, 1
	add	ecx, 1
	add	rax, 1
	cmp	r8d, edx
	je	.L17
.L7:
	cmp	QWORD PTR [rdi+rax*8], 0
	mov	ecx, eax
	je	.L6
	movsx	rdx, edx
.L5:
	mov	QWORD PTR 8[r9], rdx
	add	r9, 16
	cmp	r10d, ecx
	jg	.L8
.L15:
	mov	rax, r9
	sub	rax, rsi
	sar	rax, 3
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	movsx	rdx, r8d
	jmp	.L5
.L11:
	mov	edx, 255
	jmp	.L5
.L10:
	mov	ecx, eax
	mov	edx, 1
	jmp	.L5
.L9:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	Q2_CompressVis, .-Q2_CompressVis
	.comm	dvis,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_l_bsp_q2.c_Q2_CompressVis.c"
	.text
	.align	2
	.global	Q2_CompressVis
	.syntax unified
	.arm
	.fpu softvfp
	.type	Q2_CompressVis, %function
Q2_CompressVis:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r3]
	ldr	r7, [r3]
	add	r7, r7, #7
	asr	r7, r7, #3
	cmp	r7, #0
	ble	.L8
	mov	r6, r0
	mov	r5, r1
	mov	r2, #0
	b	.L7
.L4:
	cmp	r7, r2
	ble	.L18
.L7:
	ldr	r0, [r6, r2, lsl #2]
	lsl	r3, r2, #2
	str	r0, [r5]
	ldr	r3, [r6, r3]
	mov	r4, r2
	cmp	r3, #0
	add	r2, r2, #1
	addne	r5, r5, #4
	bne	.L4
	cmp	r7, r2
	mov	r3, #1
	ble	.L5
	add	ip, r6, r4, lsl #2
	sub	r4, r7, r4
	b	.L6
.L19:
	cmp	r3, #255
	beq	.L5
	add	r3, r3, #1
	cmp	r4, r3
	add	r2, r2, #1
	beq	.L5
.L6:
	ldr	lr, [ip, #4]!
	cmp	lr, #0
	beq	.L19
.L5:
	cmp	r7, r2
	str	r3, [r5, #4]
	add	r5, r5, #8
	bgt	.L7
.L18:
	sub	r0, r5, r1
	asr	r0, r0, #2
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, r7, pc}
.L21:
	.align	2
.L20:
	.word	dvis
	.size	Q2_CompressVis, .-Q2_CompressVis
	.comm	dvis,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
