	.file	"extr_wi_stuff.c_WI_drawOnLnode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not place patch on level %d"
	.text
	.p2align 4
	.globl	WI_drawOnLnode
	.type	WI_drawOnLnode, @function
WI_drawOnLnode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 16[rsi]
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movsx	r13, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], r13d
	sal	r13, 3
	mov	QWORD PTR [rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	add	r15, 8
	cmp	QWORD PTR [rsp], r15
	je	.L13
.L4:
	mov	rax, QWORD PTR wbs[rip]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR lnodes[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	r14d, DWORD PTR [rax+r13]
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR 12[rax]
	call	SHORT@PLT
	sub	r14d, eax
	mov	rax, QWORD PTR wbs[rip]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR lnodes[rip]
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	r12d, DWORD PTR 4[rax+r13]
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR 8[rax]
	call	SHORT@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR 4[rax]
	call	SHORT@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR [r15]
	mov	edi, DWORD PTR [rax]
	call	SHORT@PLT
	test	r14d, r14d
	js	.L2
	sub	r12d, ebp
	add	ebx, r14d
	cmp	DWORD PTR SCREENWIDTH[rip], ebx
	jle	.L2
	test	r12d, r12d
	js	.L2
	add	eax, r12d
	cmp	DWORD PTR SCREENHEIGHT[rip], eax
	jle	.L2
	mov	rax, QWORD PTR wbs[rip]
	mov	rcx, QWORD PTR [r15]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR lnodes[rip]
	add	r13, QWORD PTR [rax+rdx*8]
	mov	edx, DWORD PTR FB[rip]
	mov	r8d, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 0[r13]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	esi, r8d
	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
	jmp	V_DrawPatch@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	add	esi, 1
	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
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	WI_drawOnLnode, .-WI_drawOnLnode
	.comm	wbs,8,8
	.comm	lnodes,8,8
	.comm	SCREENWIDTH,4,4
	.comm	SCREENHEIGHT,4,4
	.comm	FB,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_wi_stuff.c_WI_drawOnLnode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not place patch on level %d\000"
	.text
	.align	2
	.global	WI_drawOnLnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	WI_drawOnLnode, %function
WI_drawOnLnode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r3, r1, #8
	sub	sp, sp, #20
	mov	r4, r1
	ldr	fp, .L14
	ldr	r9, .L14+4
	str	r0, [sp, #12]
	lsl	r8, r0, #3
	str	r3, [sp, #8]
	b	.L4
.L2:
	ldr	r3, [sp, #8]
	cmp	r3, r4
	beq	.L13
.L4:
	ldr	r1, [fp]
	ldr	r3, [r9]
	ldr	r0, [r1]
	ldr	r1, [r4]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r0, [r1, #12]
	ldr	r6, [r3, r8]
	bl	SHORT
	mov	r1, r0
	ldr	r0, [fp]
	ldr	r3, [r9]
	ldr	ip, [r0]
	mov	r10, r4
	ldr	r3, [r3, ip, lsl #2]
	ldr	r0, [r4], #4
	add	r3, r3, r8
	ldr	r3, [r3, #4]
	ldr	r0, [r0, #8]
	sub	r6, r6, r1
	str	r3, [sp, #4]
	bl	SHORT
	ldr	r1, [r4, #-4]
	mov	r7, r0
	ldr	r0, [r1, #4]
	bl	SHORT
	mov	r5, r0
	ldr	r1, [r4, #-4]
	add	r5, r5, r6
	ldr	r0, [r1]
	bl	SHORT
	ldr	r3, [sp, #4]
	cmp	r6, #0
	sub	r7, r3, r7
	blt	.L2
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r7, #0
	cmpge	r3, r5
	ble	.L2
	ldr	r3, .L14+12
	add	r0, r0, r7
	ldr	r3, [r3]
	cmp	r3, r0
	ble	.L2
	ldr	r3, [fp]
	ldr	r1, [r9]
	ldr	r0, [r3]
	ldr	ip, .L14+16
	ldr	r2, [r1, r0, lsl #2]
	ldr	r0, [sp, #12]
	add	r8, r2, r8
	ldr	r0, [r2, r0, lsl #3]
	ldr	r3, [r10]
	ldr	r1, [r8, #4]
	ldr	r2, [ip]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	V_DrawPatch
.L13:
	ldr	r3, [sp, #12]
	ldr	r0, .L14+20
	add	r1, r3, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	printf
.L15:
	.align	2
.L14:
	.word	wbs
	.word	lnodes
	.word	SCREENWIDTH
	.word	SCREENHEIGHT
	.word	FB
	.word	.LC0
	.size	WI_drawOnLnode, .-WI_drawOnLnode
	.comm	wbs,4,4
	.comm	lnodes,4,4
	.comm	SCREENWIDTH,4,4
	.comm	SCREENHEIGHT,4,4
	.comm	FB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
