	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawLayerFull
_DrawLayerFull:                         ## @DrawLayerFull
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_Pico@GOTPCREL(%rip), %r10
	movq	16(%r10), %r8
	movl	52(%r8), %r14d
	shll	$9, %r14d
	addl	%edi, %r14d
	xorl	%r15d, %r15d
	testb	$3, 44(%r8)
	jne	LBB0_2
## %bb.1:
	movq	(%r10), %rcx
	andl	$32767, %r14d                   ## imm = 0x7FFF
	movl	(%rcx,%r14,4), %r15d
	xorl	%r14d, %r14d
LBB0_2:
	movswl	%dx, %ebx
	movl	64(%r8), %r11d
	movl	%r11d, %r12d
	andl	$3, %r12d
	leaq	_DrawLayerFull.shift(%rip), %rcx
	movzbl	(%r12,%rcx), %ecx
	movl	$-1, %eax
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movswl	-44(%rbp), %r9d                 ## 2-byte Folded Reload
	andl	$48, %r11d
	leal	(%r11,%r11), %ecx
	addl	$31, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	cmpl	$1, %r12d
	jne	LBB0_5
## %bb.4:
	andl	$63, -48(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_5:
	movl	$31, -48(%rbp)                  ## 4-byte Folded Spill
LBB0_6:
	xorl	%ecx, %ecx
	testl	%edi, %edi
	setne	%cl
	movl	8(%r8,%rcx,8), %r8d
	leal	(%rcx,%rcx,2), %ecx
	addl	$9, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	movq	_PicoDraw2FB@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_LINE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_START_ROW@GOTPCREL(%rip), %r11
	movq	8(%r10), %rax
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %edi
	movl	%edi, %eax
	andl	$7, %eax
	movl	$8, %ecx
	subl	%eax, %ecx
	cmpl	$1, %eax
	sbbl	$-1, %r9d
	movl	(%r11), %r12d
	movl	%ecx, (%rsi)
	addq	$4, %rsi
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	cmpl	%r9d, %ebx
	jge	LBB0_23
## %bb.7:
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	sarl	$16, %r9d
	sarl	$16, %edx
	subl	%edx, %r9d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r9
	movl	-52(%rbp), %r11d                ## 4-byte Reload
	notl	%r11d
	andl	$28672, %r8d                    ## imm = 0x7000
	movl	%r8d, -80(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	subl	%r12d, %edx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	imull	%edi, %edx
	shll	$3, %edx
	movslq	%edx, %rdx
	addq	%rdx, %r13
	imull	%edi, %ecx
	movslq	%ecx, %rcx
	addq	%r13, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	shrl	$3, %r9d
	andl	$63, %r9d
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	shll	$15, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	$-1, %edx
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movl	%r11d, -52(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_LINE_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	incl	%ebx
	cmpl	-84(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-128(%rbp), %r15                ## 8-byte Reload
	je	LBB0_23
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leal	(%rbx,%rax), %edi
	andl	-48(%rbp), %edi                 ## 4-byte Folded Reload
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	shll	$4, %eax
	addl	%r14d, %eax
	testl	%ebx, %ebx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $ecx killed $ecx def $rcx
	cmovel	%ebx, %ecx
	addl	%eax, %ecx
	movq	(%r10), %rax
	andl	$32767, %ecx                    ## imm = 0x7FFF
	movl	(%rax,%rcx,4), %r15d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%r15), %r12d
	andl	$7, %r12d
	xorl	%r14d, %r14d
	cmpl	$7, %r12d
	setne	%r14b
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, %edi
	movl	%r15d, %r13d
	negl	%r13d
	sarl	$3, %r13d
	movl	%ebx, %eax
	shll	$27, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	shll	$16, %r12d
	addl	$65536, %r12d                   ## imm = 0x10000
	leal	-1(%r15), %eax
	movzbl	%al, %eax
	andl	$7, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	incq	%rbx
	movl	%edi, -96(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%r12d, %eax
	orl	-92(%rbp), %eax                 ## 4-byte Folded Reload
	orl	%r15d, %eax
	movl	%eax, (%rsi)
	addq	$4, %rsi
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	incl	%r13d
	addl	$524288, %r12d                  ## imm = 0x80000
	addq	$8, %rbx
	decl	%r14d
	je	LBB0_22
LBB0_12:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10), %rax
	movl	%r13d, %ecx
	andl	%r11d, %ecx
	addl	%edi, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r15d
	cmpl	%edx, %r15d
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpl	$32768, %r15d                   ## imm = 0x8000
	jae	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	shll	$4, %esi
	andl	$32752, %esi                    ## imm = 0x7FF0
	movl	%r15d, %eax
	shrl	$9, %eax
	andb	$48, %al
	movl	%r15d, %ecx
	shrl	$11, %ecx
	andl	$3, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_TileXnormYnorm
	jmp	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_TileXflipYnorm
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=2
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_TileXnormYflip
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_TileXflipYflip
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	testl	%eax, %eax
	movl	-100(%rbp), %edx                ## 4-byte Reload
	cmovnel	%r15d, %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	_Pico@GOTPCREL(%rip), %r10
	movl	-52(%rbp), %r11d                ## 4-byte Reload
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_21
LBB0_23:
	movl	$0, (%rsi)
	addq	$104, %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_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_Pico,24,3                      ## @Pico
	.section	__TEXT,__const
_DrawLayerFull.shift:                   ## @DrawLayerFull.shift
	.ascii	"\005\006\006\007"

	.comm	_PicoDraw2FB,8,3                ## @PicoDraw2FB
	.comm	_LINE_WIDTH,4,2                 ## @LINE_WIDTH
	.comm	_START_ROW,4,2                  ## @START_ROW
	.no_dead_strip	_DrawLayerFull
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawLayerFull
_DrawLayerFull:                         ; @DrawLayerFull
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	sxth	w1, w2
Lloh0:
	adrp	x5, _Pico@GOTPAGE
Lloh1:
	ldr	x5, [x5, _Pico@GOTPAGEOFF]
	sxth	w8, w3
	ldr	x9, [x5, #16]
	ldr	w10, [x9, #52]
	add	w6, w0, w10, lsl #9
	ldrb	w10, [x9, #44]
	tst	w10, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	w7, #0
	b	LBB0_3
LBB0_2:
	ldr	x10, [x5]
	and	w11, w6, #0x7fff
	ldr	w7, [x10, w11, uxtw #2]
	mov	w6, #0
LBB0_3:
	ldr	w10, [x9, #64]
	lsr	w11, w10, #4
	and	x10, x10, #0x3
	mov	w12, #31
	bfi	w12, w11, #5, #2
	mov	w11, #31
	and	w13, w12, #0x3f
	cmp	w10, #1
	csel	w11, w11, w13, ne
	cmp	w10, #0
	csel	w19, w12, w11, eq
	mov	w11, #16
	mov	w17, #8
	mov	w12, #12
	mov	w13, #9
	cmp	w0, #0
	csel	w13, w13, w12, eq
	csel	x11, x17, x11, eq
	ldr	w15, [x9, x11]
Lloh2:
	adrp	x9, _PicoDraw2FB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PicoDraw2FB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x11, _LINE_WIDTH@GOTPAGE
Lloh6:
	ldr	x11, [x11, _LINE_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
Lloh8:
	adrp	x12, _START_ROW@GOTPAGE
Lloh9:
	ldr	x12, [x12, _START_ROW@GOTPAGEOFF]
Lloh10:
	ldr	w16, [x12]
	ldr	x12, [x5, #8]
	ldr	w14, [x12, w0, sxtw #2]
	ands	w12, w14, #0x7
	cinc	w0, w8, ne
	sub	w8, w17, w12
	str	w8, [x22], #4
	cmp	w1, w0
	b.ge	LBB0_20
; %bb.4:
Lloh11:
	adrp	x17, _DrawLayerFull.shift@PAGE
Lloh12:
	add	x17, x17, _DrawLayerFull.shift@PAGEOFF
	ldrb	w17, [x17, x10]
	asr	w10, w3, #16
	sub	w10, w10, w2, asr #16
	stp	w19, w10, [sp, #32]             ; 8-byte Folded Spill
	mov	w10, #-1
	str	x17, [sp, #24]                  ; 8-byte Folded Spill
	lsl	w10, w10, w17
	mvn	w25, w10
	lsl	w10, w15, w13
	and	w10, w10, #0x7000
	str	w10, [sp, #20]                  ; 4-byte Folded Spill
	sub	w10, w1, w16
	mul	w10, w11, w10
	lsl	w10, w10, #3
	add	x9, x9, w10, sxtw
	mul	w8, w8, w11
	add	x13, x9, w8, sxtw
	ubfx	w9, w14, #3, #6
	mov	w8, #32766
	mul	w8, w12, w8
	stp	w8, w9, [sp, #12]               ; 8-byte Folded Spill
	mov	w26, #-1
	stp	w0, w6, [sp, #40]               ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh13:
	adrp	x8, _LINE_WIDTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LINE_WIDTH@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	add	x13, x13, x8, lsl #3
	ldp	w7, w1, [sp, #56]               ; 8-byte Folded Reload
	add	w1, w1, #1
	ldp	w8, w6, [sp, #40]               ; 8-byte Folded Reload
	cmp	w1, w8
	b.eq	LBB0_20
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cbz	w6, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w6, w1, lsl #4
	cmp	w1, #0
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	csel	w9, wzr, w9, eq
	add	w8, w8, w9
	ldr	x9, [x5]
	and	w8, w8, #0x7fff
	ldr	w7, [x9, w8, uxtw #2]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w7, #1
	and	w9, w8, #0x7
	cmp	w9, #7
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	cinc	w23, w10, ne
	stp	w7, w1, [sp, #56]               ; 8-byte Folded Spill
	str	x13, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w23, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [sp, #16]                  ; 4-byte Folded Reload
	add	w10, w1, w10
	ldr	w11, [sp, #32]                  ; 4-byte Folded Reload
	and	w10, w10, w11
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	lsl	w10, w10, w11
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	add	w24, w10, w11
	neg	w10, w7
	asr	w27, w10, #3
	lsl	w28, w1, #27
	lsl	w9, w9, #16
	add	w21, w9, #16, lsl #12           ; =65536
	and	x8, x8, #0x7
	add	x8, x13, x8
	add	x20, x8, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	orr	w8, w21, w28
	orr	w8, w8, w19
	str	w8, [x22], #4
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w27, w27, #1
	add	w21, w21, #128, lsl #12         ; =524288
	add	x20, x20, #8
	subs	w23, w23, #1
	b.eq	LBB0_5
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x5]
	and	w9, w27, w25
	add	w9, w24, w9
	ldr	w19, [x8, w9, sxtw #2]
	cmp	w19, w26
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	cmp	w19, #8, lsl #12                ; =32768
	b.hs	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ubfiz	w1, w19, #4, #11
	lsr	w8, w19, #9
	and	w2, w8, #0x30
	ubfx	w8, w19, #11, #2
Lloh16:
	adrp	x11, lJTI0_0@PAGE
Lloh17:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_15
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	bl	_TileXnormYnorm
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	bl	_TileXflipYnorm
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	bl	_TileXnormYflip
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	bl	_TileXflipYflip
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=2
Lloh18:
	adrp	x5, _Pico@GOTPAGE
Lloh19:
	ldr	x5, [x5, _Pico@GOTPAGEOFF]
	cmp	w0, #0
	csel	w26, w26, w19, eq
	b	LBB0_11
LBB0_20:
	str	wzr, [x22]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
                                        ; -- End function
	.comm	_Pico,24,3                      ; @Pico
_DrawLayerFull.shift:                   ; @DrawLayerFull.shift
	.ascii	"\005\006\006\007"

	.comm	_PicoDraw2FB,8,3                ; @PicoDraw2FB
	.comm	_LINE_WIDTH,4,2                 ; @LINE_WIDTH
	.comm	_START_ROW,4,2                  ; @START_ROW
	.no_dead_strip	_DrawLayerFull
.subsections_via_symbols
