	.file	"extr_visflow.c_SimpleFlood.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SimpleFlood
	.type	SimpleFlood, @function
SimpleFlood:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, esi
	sal	rbx, 4
	add	rbx, QWORD PTR leafs[rip]
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L1
	mov	r12, rdi
	xor	ebp, ebp
.L4:
	mov	rax, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR [rax+rbp*8]
	cmp	QWORD PTR 24[rcx], 0
	jne	.L3
	mov	rax, rcx
	sub	rax, QWORD PTR portals[rip]
	mov	rdi, QWORD PTR [r12]
	sar	rax, 5
	mov	edx, eax
	and	eax, 7
	sar	edx, 3
	movsx	rdx, edx
	lea	rsi, 0[0+rdx*4]
	mov	edx, DWORD PTR [rdi+rdx*4]
	bt	edx, eax
	jnc	.L3
	add	rsi, QWORD PTR 8[r12]
	mov	rdx, rsi
	mov	esi, DWORD PTR [rsi]
	bt	esi, eax
	jc	.L3
	bts	esi, eax
	mov	rdi, r12
	mov	DWORD PTR [rdx], esi
	mov	esi, DWORD PTR 16[rcx]
	call	SimpleFlood
.L3:
	add	rbp, 1
	cmp	DWORD PTR [rbx], ebp
	jg	.L4
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SimpleFlood, .-SimpleFlood
	.comm	portals,8,8
	.comm	leafs,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_visflow.c_SimpleFlood.c"
	.text
	.align	2
	.global	SimpleFlood
	.syntax unified
	.arm
	.fpu softvfp
	.type	SimpleFlood, %function
SimpleFlood:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3]
	ldr	r3, [r5, r1, lsl #3]
	add	r5, r5, r1, lsl #3
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r8, r0
	mov	r4, #0
	mov	r7, #1
	ldr	r6, .L11+4
.L4:
	ldr	r3, [r5, #4]
	ldr	r2, [r3, r4, lsl #2]
	add	r4, r4, #1
	ldr	r3, [r2, #12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [r6]
	ldr	r1, [r8]
	sub	r3, r2, r3
	asr	r0, r3, #7
	ldr	r1, [r1, r0, lsl #2]
	asr	r3, r3, #4
	and	r3, r3, #7
	asr	r1, r1, r3
	tst	r1, #1
	beq	.L3
	ldr	ip, [r8, #4]
	ldr	r1, [ip, r0, lsl #2]
	orr	lr, r1, r7, lsl r3
	asr	r3, r1, r3
	tst	r3, #1
	bne	.L3
	str	lr, [ip, r0, lsl #2]
	ldr	r1, [r2, #8]
	mov	r0, r8
	bl	SimpleFlood
.L3:
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	leafs
	.word	portals
	.size	SimpleFlood, .-SimpleFlood
	.comm	portals,4,4
	.comm	leafs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
