	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PDebugShowSprite               ## -- Begin function PDebugShowSprite
	.p2align	4, 0x90
_PDebugShowSprite:                      ## @PDebugShowSprite
	.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	%rdi, %rbx
	movq	_Pico@GOTPCREL(%rip), %r11
	movq	16(%r11), %r8
	movl	48(%r8), %r12d
	andl	$1, %r12d
	movl	%r12d, %r9d
	shll	$4, %r9d
	xorl	$127, %r12d
	andl	20(%r8), %r12d
	shlq	$8, %r12
	leal	63(%r9), %r10d
	cmpl	%r10d, %edx
	cmovbl	%edx, %r10d
	movq	8(%r11), %rdx
	leaq	(%rdx,%r12), %rcx
	movzwl	2(%rdx,%r12), %edi
	andl	$127, %edi
	je	LBB0_1
## %bb.2:
	orl	$64, %r9d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r10d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r12,%rdi,4), %edi
	andl	$32764, %edi                    ## imm = 0x7FFC
	leaq	(%rdx,%rdi), %rcx
	movzwl	2(%rdx,%rdi), %edi
	incl	%eax
	andl	$127, %edi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_1:
	movb	$1, %al
	testb	%al, %al
	jne	LBB0_8
	jmp	LBB0_17
LBB0_5:
	incl	%eax
LBB0_6:
	cmpl	%r9d, %eax
	setb	%al
	testb	%al, %al
	je	LBB0_17
LBB0_8:
	movq	8(%r11), %r13
	movl	(%r13,%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r13,%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$-8323584, %eax                 ## imm = 0xFF80FE00
	andl	(%rcx), %eax
	orl	$128, %eax
	movl	%eax, (%r13,%r12)
	movl	$-33521665, %eax                ## imm = 0xFE007FFF
	andl	4(%rcx), %eax
	orl	$8388608, %eax                  ## imm = 0x800000
	movl	%eax, 4(%r13,%r12)
	movl	28(%r8), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r11), %rax
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	$0, 28(%r8)
	movl	$0, (%rax)
	movq	_PDRAW_SPRITES_LOW_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PicoDrawMask@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movl	%esi, %r15d
	callq	_PicoFrameFull
	movslq	%r15d, %r10
	addq	%r10, %r10
	movq	_PicoDraw2FB@GOTPCREL(%rip), %r8
	movq	_DRAW2_LINE_WIDTH@GOTPCREL(%rip), %r9
	movq	_HighPal@GOTPCREL(%rip), %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r14d
	addq	%r10, %rbx
	cmpl	$32, %r14d
	je	LBB0_16
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%r8), %rcx
	movslq	(%r9), %rdx
	movslq	%r14d, %rdi
	imulq	%rdx, %rdi
	addq	%rcx, %rdi
	addq	$9, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$2, %rcx
	cmpq	$32, %rcx
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%rdi,%rcx), %edx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rsi), %rax
	movzwl	(%rax,%rdx,2), %eax
	movw	%ax, (%rbx,%rcx,2)
	movb	$0, -1(%rdi,%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movzbl	(%rdi,%rcx), %edx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rsi), %rax
	movzwl	(%rax,%rdx,2), %eax
	movw	%ax, 2(%rbx,%rcx,2)
	movb	$0, (%rdi,%rcx)
	jmp	LBB0_14
LBB0_16:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12,%r13)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12,%r13)
	movq	_Pico@GOTPCREL(%rip), %rcx
	movq	16(%rcx), %rax
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 28(%rax)
	movq	(%rcx), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_PicoDrawMask@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,24,3                      ## @Pico
	.comm	_PDRAW_SPRITES_LOW_ON,4,2       ## @PDRAW_SPRITES_LOW_ON
	.comm	_PicoDrawMask,4,2               ## @PicoDrawMask
	.comm	_PicoDraw2FB,8,3                ## @PicoDraw2FB
	.comm	_DRAW2_LINE_WIDTH,4,2           ## @DRAW2_LINE_WIDTH
	.comm	_HighPal,8,3                    ## @HighPal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PDebugShowSprite               ; -- Begin function PDebugShowSprite
	.p2align	2
_PDebugShowSprite:                      ; @PDebugShowSprite
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _Pico@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
	ldp	x12, x8, [x21, #8]
	ldr	w9, [x8, #48]
	ands	w9, w9, #0x1
	mov	w10, #80
	mov	w11, #64
	csel	w11, w11, w10, eq
	ldr	w10, [x8, #20]
	eor	w9, w9, #0x7f
	and	x9, x9, x10
	lsl	x9, x9, #8
	sub	w10, w11, #1
	cmp	w2, w10
	csel	w13, w2, w10, lo
	add	x10, x12, x9
	ldrh	w14, [x10, #2]
	ands	w15, w14, #0x7f
	b.eq	LBB0_5
; %bb.1:
	mov	w14, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w13, w14
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w9, w15, lsl #2
	and	x10, x10, #0x7ffc
	add	x10, x12, x10
	ldrh	w15, [x10, #2]
	add	w14, w14, #1
	ands	w15, w15, #0x7f
	b.ne	LBB0_2
; %bb.4:
	cmp	w14, w11
	b	LBB0_7
LBB0_5:
	mov	w11, #1
	cbnz	w11, LBB0_8
	b	LBB0_15
LBB0_6:
	add	w12, w14, #1
	cmp	w12, w11
LBB0_7:
	cset	w11, lo
	cbz	w11, LBB0_15
LBB0_8:
	ldp	x12, x11, [x21]
	add	x22, x11, x9
	ldr	d8, [x22]
	ldr	w9, [x10]
	and	w9, w9, #0xfffffe00
	and	w9, w9, #0xff80ffff
	orr	w9, w9, #0x80
	str	w9, [x22]
	ldr	w9, [x10, #4]
	and	w9, w9, #0xfe007fff
	orr	w9, w9, #0x800000
	str	w9, [x22, #4]
	ldr	w24, [x8, #28]
	ldr	w23, [x12]
	str	wzr, [x8, #28]
	str	wzr, [x12]
Lloh2:
	adrp	x8, _PDRAW_SPRITES_LOW_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDRAW_SPRITES_LOW_ON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x25, _PicoDrawMask@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PicoDrawMask@GOTPAGEOFF]
	str	w8, [x25]
	bl	_PicoFrameFull
	mov	w8, #0
	sbfiz	x9, x20, #1, #32
Lloh7:
	adrp	x10, _PicoDraw2FB@GOTPAGE
Lloh8:
	ldr	x10, [x10, _PicoDraw2FB@GOTPAGEOFF]
Lloh9:
	adrp	x11, _DRAW2_LINE_WIDTH@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DRAW2_LINE_WIDTH@GOTPAGEOFF]
Lloh11:
	adrp	x12, _HighPal@GOTPAGE
Lloh12:
	ldr	x12, [x12, _HighPal@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w8, #1
	add	x19, x19, x9
	cmp	w8, #32
	b.eq	LBB0_14
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x13, #0
	ldr	x14, [x10]
	ldrsw	x15, [x11]
	sxtw	x16, w8
	madd	x14, x15, x16, x14
	add	x14, x14, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x13, x13, #1
	cmp	x13, #32
	b.eq	LBB0_9
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w15, [x14, x13]
	cbz	x15, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x16, [x12]
	ldrh	w15, [x16, x15, lsl #1]
	strh	w15, [x19, x13, lsl #1]
	strb	wzr, [x14, x13]
	b	LBB0_11
LBB0_14:
	str	d8, [x22]
	ldr	x8, [x21, #16]
	str	w24, [x8, #28]
	ldr	x8, [x21]
	str	w23, [x8]
	mov	w8, #-1
	str	w8, [x25]
LBB0_15:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,24,3                      ; @Pico
	.comm	_PDRAW_SPRITES_LOW_ON,4,2       ; @PDRAW_SPRITES_LOW_ON
	.comm	_PicoDrawMask,4,2               ; @PicoDrawMask
	.comm	_PicoDraw2FB,8,3                ; @PicoDraw2FB
	.comm	_DRAW2_LINE_WIDTH,4,2           ; @DRAW2_LINE_WIDTH
	.comm	_HighPal,8,3                    ; @HighPal
.subsections_via_symbols
