	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WI_drawOnLnode                 ## -- Begin function WI_drawOnLnode
	.p2align	4, 0x90
_WI_drawOnLnode:                        ## @WI_drawOnLnode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rbx
	movq	_lnodes@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_wbs@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rbx,8), %r15d
	movq	(%rsi), %rax
	movl	12(%rax), %edi
	callq	_SHORT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax,%rbx,8), %r14d
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_SHORT
	movl	%eax, %r13d
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_SHORT
	movl	%eax, %ebx
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_SHORT
	subl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	js	LBB0_5
## %bb.1:
	addl	%r15d, %ebx
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_5
## %bb.2:
	subl	%r13d, %r14d
	js	LBB0_5
## %bb.3:
	addl	%r14d, %eax
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_5:
	movq	_lnodes@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_wbs@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax,%rbx,8), %r15d
	movq	8(%r12), %rax
	movl	12(%rax), %edi
	callq	_SHORT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	4(%rax,%rbx,8), %r14d
	movq	8(%r12), %rax
	movl	8(%rax), %edi
	callq	_SHORT
	movl	%eax, %r13d
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	callq	_SHORT
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_SHORT
	subl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	js	LBB0_10
## %bb.6:
	addl	%r15d, %ebx
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_10
## %bb.7:
	subl	%r13d, %r14d
	js	LBB0_10
## %bb.8:
	addl	%r14d, %eax
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpl	(%rdx), %eax
	jge	LBB0_10
LBB0_9:
	movq	_lnodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_wbs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax,%rdx,8), %edi
	movl	4(%rax,%rdx,8), %esi
	movq	_FB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12,%rcx,8), %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_V_DrawPatch                    ## TAILCALL
LBB0_10:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lnodes,8,3                     ## @lnodes
	.comm	_wbs,8,3                        ## @wbs
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_FB,4,2                         ## @FB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not place patch on level %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WI_drawOnLnode                 ; -- Begin function WI_drawOnLnode
	.p2align	2
_WI_drawOnLnode:                        ; @WI_drawOnLnode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _lnodes@GOTPAGE
Lloh1:
	ldr	x23, [x23, _lnodes@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x24, _wbs@GOTPAGE
Lloh3:
	ldr	x24, [x24, _wbs@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	sxtw	x25, w20
	sbfiz	x21, x20, #3, #32
	ldr	w22, [x8, x21]
	ldr	x8, [x1]
	ldr	w0, [x8, #12]
	bl	_SHORT
	sub	w28, w22, w0
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x8, x8, x21
	ldr	w26, [x8, #4]
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_SHORT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_SHORT
	mov	x22, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_SHORT
Lloh4:
	adrp	x27, _SCREENWIDTH@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SCREENWIDTH@GOTPAGEOFF]
Lloh6:
	adrp	x10, _SCREENHEIGHT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SCREENHEIGHT@GOTPAGEOFF]
	tbnz	w28, #31, LBB0_5
; %bb.1:
	ldr	w8, [x27]
	add	w9, w22, w28
	cmp	w9, w8
	b.ge	LBB0_5
; %bb.2:
	sub	w8, w26, w21
	tbnz	w8, #31, LBB0_5
; %bb.3:
	ldr	w9, [x10]
	add	w8, w0, w8
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:
	mov	x8, #0
	b	LBB0_10
LBB0_5:
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x21, x25, #3
	ldr	w22, [x8, x21]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #12]
	bl	_SHORT
	sub	w26, w22, w0
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x8, x8, x21
	ldr	w28, [x8, #4]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	bl	_SHORT
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_SHORT
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_SHORT
	tbnz	w26, #31, LBB0_11
; %bb.6:
	ldr	w8, [x27]
	add	w9, w22, w26
	cmp	w9, w8
	b.ge	LBB0_11
; %bb.7:
	sub	w8, w28, w21
	tbnz	w8, #31, LBB0_11
; %bb.8:
Lloh8:
	adrp	x9, _SCREENHEIGHT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCREENHEIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w8, w0, w8
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.9:
	mov	w8, #1
LBB0_10:
	ldr	x9, [x23]
	ldr	x10, [x24]
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	add	x9, x9, x25, lsl #3
	ldp	w0, w1, [x9]
Lloh11:
	adrp	x9, _FB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FB@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	ldr	x3, [x19, x8, lsl #3]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_V_DrawPatch
LBB0_11:
	add	w1, w20, #1
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_printf
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_lnodes,8,3                     ; @lnodes
	.comm	_wbs,8,3                        ; @wbs
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_FB,4,2                         ; @FB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not place patch on level %d"

.subsections_via_symbols
