	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawTilesFromCacheF
_DrawTilesFromCacheF:                   ## @DrawTilesFromCacheF
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PicoDraw2FB@GOTPCREL(%rip), %rax
	movl	(%rdi), %ecx
	movq	_LINE_WIDTH@GOTPCREL(%rip), %rsi
	movq	_START_ROW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$3, %edx
	subl	%edx, %ecx
	imull	(%rsi), %ecx
	addq	$4, %rbx
	movslq	%ecx, %rdx
	addq	(%rax), %rdx
	movw	$-1, %r12w
	movl	$-1, %r15d
	xorl	%r13d, %r13d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	leaq	LJTI0_0(%rip), %rdi
	movl	%r15d, %eax
	movswl	%r12w, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %r14d
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	addq	$4, %rbx
	movswl	%r14w, %ecx
	cmpl	%r12d, %ecx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %r15d
	shrl	$27, %r15d
	movl	(%rsi), %ecx
	imull	%r15d, %ecx
	shll	$3, %ecx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rcx
	cmpl	%eax, %r15d
	cmovneq	%rcx, %r13
	movl	%r14d, %esi
	shll	$4, %esi
	andl	$32752, %esi                    ## imm = 0x7FF0
	movl	%r14d, %eax
	shrl	$9, %eax
	andb	$48, %al
	movl	%r14d, %ecx
	shrl	$11, %ecx
	andl	$3, %ecx
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	shrl	$16, %edi
	andl	$511, %edi                      ## imm = 0x1FF
	addq	%r13, %rdi
	movzbl	%al, %edx
	callq	_TileXnormYnorm
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	shrl	$16, %edi
	andl	$511, %edi                      ## imm = 0x1FF
	addq	%r13, %rdi
	movzbl	%al, %edx
	callq	_TileXflipYnorm
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	shrl	$16, %edi
	andl	$511, %edi                      ## imm = 0x1FF
	addq	%r13, %rdi
	movzbl	%al, %edx
	callq	_TileXnormYflip
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	shrl	$16, %edi
	andl	$511, %edi                      ## imm = 0x1FF
	addq	%r13, %rdi
	movzbl	%al, %edx
	callq	_TileXflipYflip
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	cmovnel	%r14d, %r12d
	movq	_LINE_WIDTH@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_PicoDraw2FB,8,3                ## @PicoDraw2FB
	.comm	_LINE_WIDTH,4,2                 ## @LINE_WIDTH
	.comm	_START_ROW,4,2                  ## @START_ROW
	.no_dead_strip	_DrawTilesFromCacheF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawTilesFromCacheF
_DrawTilesFromCacheF:                   ; @DrawTilesFromCacheF
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x8, _PicoDraw2FB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PicoDraw2FB@GOTPAGEOFF]
	ldr	w9, [x19], #4
Lloh2:
	adrp	x21, _LINE_WIDTH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LINE_WIDTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w10, [x21]
Lloh5:
	adrp	x11, _START_ROW@GOTPAGE
Lloh6:
	ldr	x11, [x11, _START_ROW@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	sub	w9, w9, w11, lsl #3
	mul	w9, w9, w10
	add	x22, x8, w9, sxtw
	mov	w9, #65535
	mov	w26, #-1
Lloh8:
	adrp	x23, lJTI0_0@PAGE
Lloh9:
	add	x23, x23, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x8, x26
	sxth	w24, w9
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w25, [x19]
	cbz	w25, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	add	x19, x19, #4
	cmp	w24, w25, sxth
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ubfx	x26, x25, #27, #5
	ldr	w9, [x21]
	mul	w9, w26, w9
	lsl	w9, w9, #3
	add	x9, x22, x9
	cmp	w26, w8
	csel	x20, x20, x9, eq
	ubfiz	w1, w25, #4, #11
	ubfx	x8, x25, #9, #23
	and	w2, w8, #0x30
	ubfx	w8, w25, #11, #2
	adr	x9, LBB0_5
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	x8, x25, #16, #9
	add	x0, x20, x8
	bl	_TileXnormYnorm
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	x8, x25, #16, #9
	add	x0, x20, x8
	bl	_TileXflipYnorm
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	x8, x25, #16, #9
	add	x0, x20, x8
	bl	_TileXnormYflip
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	x8, x25, #16, #9
	add	x0, x20, x8
	bl	_TileXflipYflip
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #0
	csel	w9, w24, w25, eq
	b	LBB0_1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_PicoDraw2FB,8,3                ; @PicoDraw2FB
	.comm	_LINE_WIDTH,4,2                 ; @LINE_WIDTH
	.comm	_START_ROW,4,2                  ; @START_ROW
	.no_dead_strip	_DrawTilesFromCacheF
.subsections_via_symbols
