Merge pull request #1127 from PokeCodec/glyphMatch

Glyph match
This commit is contained in:
GriffinR 2020-08-12 18:43:40 -04:00 committed by GitHub
commit b3c4cd8a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,13 +462,10 @@ u8 GetLastTextColor(u8 colorType)
}
}
#ifdef NONMATCHING
#define GLYPH_COPY(fromY_, toY_, fromX_, toX_, unk) \
{ \
u32 i, j, *ptr, toY, fromX, toX, r5, toOrr, bits; \
u32 i, j, *ptr, toY, fromX, toX, r5, bits; \
u8 *dst; \
\
j = fromX_; \
i = fromY_; \
ptr = unk; \
@ -478,27 +475,29 @@ u8 GetLastTextColor(u8 colorType)
\
for (; i < toY; i++) \
{ \
asm("":::"sl"); \
r5 = *(ptr++); \
for (j = fromX; j < toX; j++) \
{ \
toOrr = r5 & 0xF; \
const u32 toOrr = r5 & 0xF; \
if (toOrr) \
{ \
dst = windowTiles + ((j / 8) * 32) + ((j & 7) / 2) + ((i / 8) * widthOffset) + ((i & 7) * 4); \
dst = windowTiles + ((j >> 3) * 32) + ((j & 7) >> 1) + ((i >> 3) * widthOffset) + ((i & 7) * 4); \
bits = ((j & 1) << 2); \
*dst = ((toOrr << bits) | (*dst & (0xF0 >> bits))); \
*dst = (toOrr << bits) | ((0xF0 >> bits) & *dst); \
} \
r5 >>= 4; \
} \
} \
}
void CopyGlyphToWindow(struct TextPrinter *textPrinter)
{
struct Window *win;
struct WindowTemplate *winTempl;
struct Struct_03002F90 *unkStruct;
u32 currX, widthOffset, currY;
u32 currX, currY, widthOffset;
s32 r4, r0;
u8 *windowTiles;
@ -519,9 +518,9 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
windowTiles = win->tileData;
widthOffset = winTempl->width * 32;
if (r4 <= 8)
if (r4 < 9)
{
if (r0 <= 8)
if (r0 < 9)
{
GLYPH_COPY(currY, currY + r0, currX, currX + r4, unkStruct->unk0);
}
@ -536,9 +535,9 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
}
else
{
if (r0 <= 8)
u32 temp;
if (r0 < 9)
{
u32 temp;
GLYPH_COPY(currY, currY + r0, currX, currX + 8, unkStruct->unk0);
temp = currX + 8;
@ -546,7 +545,6 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
}
else
{
u32 temp;
GLYPH_COPY(currY, currY + 8, currX, currX + 8, unkStruct->unk0);
temp = currX + 8;
@ -563,711 +561,6 @@ void CopyGlyphToWindow(struct TextPrinter *textPrinter)
}
}
}
#else
NAKED
void CopyGlyphToWindow(struct TextPrinter *x)
{
asm("push {r4-r7,lr}\n\
mov r7, r10\n\
mov r6, r9\n\
mov r5, r8\n\
push {r5-r7}\n\
sub sp, #0x8C\n\
add r3, r0, #0\n\
ldrb r1, [r3, #0x4]\n\
lsl r0, r1, #1\n\
add r0, r1\n\
lsl r0, #2\n\
ldr r1, =gWindows\n\
add r1, r0, r1\n\
add r2, r1, #0\n\
ldrb r7, [r1, #0x3]\n\
lsl r0, r7, #3\n\
ldrb r6, [r3, #0x8]\n\
sub r4, r0, r6\n\
ldr r5, =gUnknown_03002F90\n\
add r0, r5, #0\n\
add r0, #0x80\n\
ldrb r0, [r0]\n\
cmp r4, r0\n\
ble _08004DD2\n\
add r4, r0, #0\n\
_08004DD2:\n\
ldrb r0, [r1, #0x4]\n\
lsl r0, #3\n\
ldrb r3, [r3, #0x9]\n\
sub r0, r3\n\
add r1, r5, #0\n\
add r1, #0x81\n\
ldrb r1, [r1]\n\
cmp r0, r1\n\
ble _08004DE6\n\
add r0, r1, #0\n\
_08004DE6:\n\
str r6, [sp]\n\
mov r8, r3\n\
add r3, r5, #0\n\
ldr r2, [r2, #0x8]\n\
mov r9, r2\n\
lsl r1, r7, #5\n\
str r1, [sp, #0x4]\n\
cmp r4, #0x8\n\
ble _08004DFA\n\
b _08004F94\n\
_08004DFA:\n\
cmp r0, #0x8\n\
bgt _08004E84\n\
mov r1, r8\n\
str r3, [sp, #0x8]\n\
add r2, r6, #0\n\
add r2, r4\n\
mov r8, r2\n\
add r0, r1, r0\n\
str r0, [sp, #0xC]\n\
str r6, [sp, #0x10]\n\
cmp r1, r0\n\
bcc _08004E14\n\
b _080052AA\n\
_08004E14:\n\
ldr r3, [sp, #0x8]\n\
ldm r3!, {r5}\n\
str r3, [sp, #0x8]\n\
ldr r4, [sp, #0x10]\n\
add r0, r1, #0x1\n\
mov r10, r0\n\
cmp r4, r8\n\
bcs _08004E72\n\
mov r2, #0x7\n\
mov r12, r2\n\
lsr r0, r1, #3\n\
ldr r2, [sp, #0x4]\n\
add r3, r0, #0\n\
mul r3, r2\n\
add r7, r3, #0\n\
mov r3, r12\n\
and r1, r3\n\
lsl r6, r1, #2\n\
_08004E38:\n\
add r3, r5, #0\n\
mov r0, #0xF\n\
and r3, r0\n\
cmp r3, #0\n\
beq _08004E6A\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_08004E6A:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _08004E38\n\
_08004E72:\n\
mov r1, r10\n\
ldr r2, [sp, #0xC]\n\
cmp r1, r2\n\
bcc _08004E14\n\
b _080052AA\n\
.pool\n\
_08004E84:\n\
mov r1, r8\n\
str r3, [sp, #0x14]\n\
ldr r3, [sp]\n\
add r3, r4\n\
mov r12, r3\n\
add r2, r1, #0\n\
add r2, #0x8\n\
str r2, [sp, #0x18]\n\
ldr r3, [sp]\n\
str r3, [sp, #0x1C]\n\
mov r2, r12\n\
str r2, [sp, #0x74]\n\
ldr r3, [sp, #0x18]\n\
str r3, [sp, #0x88]\n\
sub r0, #0x8\n\
str r0, [sp, #0x80]\n\
cmp r1, r3\n\
bcs _08004F0E\n\
_08004EA8:\n\
ldr r0, [sp, #0x14]\n\
ldm r0!, {r5}\n\
str r0, [sp, #0x14]\n\
ldr r4, [sp, #0x1C]\n\
add r2, r1, #0x1\n\
mov r8, r2\n\
cmp r4, r12\n\
bcs _08004F06\n\
mov r3, #0x7\n\
mov r10, r3\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, r10\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_08004ECC:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _08004EFE\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r10\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_08004EFE:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r12\n\
bcc _08004ECC\n\
_08004F06:\n\
mov r1, r8\n\
ldr r2, [sp, #0x18]\n\
cmp r1, r2\n\
bcc _08004EA8\n\
_08004F0E:\n\
ldr r1, [sp, #0x88]\n\
ldr r3, =gUnknown_03002F90 + 0x40\n\
str r3, [sp, #0x20]\n\
ldr r0, [sp, #0x74]\n\
mov r8, r0\n\
ldr r2, [sp, #0x80]\n\
add r2, r1, r2\n\
str r2, [sp, #0x24]\n\
ldr r3, [sp]\n\
str r3, [sp, #0x28]\n\
cmp r1, r2\n\
bcc _08004F28\n\
b _080052AA\n\
_08004F28:\n\
ldr r0, [sp, #0x20]\n\
ldm r0!, {r5}\n\
str r0, [sp, #0x20]\n\
ldr r4, [sp, #0x28]\n\
add r2, r1, #0x1\n\
mov r10, r2\n\
cmp r4, r8\n\
bcs _08004F86\n\
mov r3, #0x7\n\
mov r12, r3\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, r12\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_08004F4C:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _08004F7E\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_08004F7E:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _08004F4C\n\
_08004F86:\n\
mov r1, r10\n\
ldr r2, [sp, #0x24]\n\
cmp r1, r2\n\
bcc _08004F28\n\
b _080052AA\n\
.pool\n\
_08004F94:\n\
cmp r0, #0x8\n\
ble _08004F9A\n\
b _080050A4\n\
_08004F9A:\n\
mov r1, r8\n\
str r3, [sp, #0x2C]\n\
ldr r3, [sp]\n\
add r3, #0x8\n\
mov r12, r3\n\
add r0, r8\n\
str r0, [sp, #0x30]\n\
ldr r0, [sp]\n\
str r0, [sp, #0x34]\n\
ldr r2, [sp, #0x30]\n\
str r2, [sp, #0x78]\n\
str r3, [sp, #0x84]\n\
sub r4, #0x8\n\
str r4, [sp, #0x7C]\n\
cmp r8, r2\n\
bcs _0800501C\n\
_08004FBA:\n\
ldr r0, [sp, #0x2C]\n\
ldm r0!, {r5}\n\
str r0, [sp, #0x2C]\n\
ldr r4, [sp, #0x34]\n\
add r2, r1, #0x1\n\
mov r10, r2\n\
cmp r4, r12\n\
bcs _08005014\n\
lsr r0, r1, #3\n\
ldr r2, [sp, #0x4]\n\
add r3, r0, #0\n\
mul r3, r2\n\
add r7, r3, #0\n\
mov r3, #0x7\n\
and r1, r3\n\
lsl r6, r1, #2\n\
_08004FDA:\n\
add r3, r5, #0\n\
mov r0, #0xF\n\
and r3, r0\n\
cmp r3, #0\n\
beq _0800500C\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, #0x7\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800500C:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r12\n\
bcc _08004FDA\n\
_08005014:\n\
mov r1, r10\n\
ldr r2, [sp, #0x30]\n\
cmp r1, r2\n\
bcc _08004FBA\n\
_0800501C:\n\
mov r1, r8\n\
ldr r3, =gUnknown_03002F90 + 0x20\n\
str r3, [sp, #0x38]\n\
ldr r0, [sp, #0x84]\n\
ldr r2, [sp, #0x7C]\n\
add r0, r2\n\
mov r8, r0\n\
ldr r3, [sp, #0x78]\n\
str r3, [sp, #0x3C]\n\
ldr r0, [sp, #0x84]\n\
str r0, [sp, #0x40]\n\
cmp r1, r3\n\
bcc _08005038\n\
b _080052AA\n\
_08005038:\n\
ldr r2, [sp, #0x38]\n\
ldm r2!, {r5}\n\
str r2, [sp, #0x38]\n\
ldr r4, [sp, #0x40]\n\
add r3, r1, #0x1\n\
mov r10, r3\n\
cmp r4, r8\n\
bcs _08005096\n\
mov r0, #0x7\n\
mov r12, r0\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, r12\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_0800505C:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _0800508E\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800508E:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _0800505C\n\
_08005096:\n\
mov r1, r10\n\
ldr r2, [sp, #0x3C]\n\
cmp r1, r2\n\
bcc _08005038\n\
b _080052AA\n\
.pool\n\
_080050A4:\n\
mov r1, r8\n\
str r5, [sp, #0x44]\n\
ldr r3, [sp]\n\
add r3, #0x8\n\
mov r12, r3\n\
mov r2, r8\n\
add r2, #0x8\n\
str r2, [sp, #0x48]\n\
ldr r3, [sp]\n\
str r3, [sp, #0x4C]\n\
str r2, [sp, #0x88]\n\
sub r0, #0x8\n\
str r0, [sp, #0x80]\n\
mov r0, r12\n\
str r0, [sp, #0x84]\n\
sub r4, #0x8\n\
str r4, [sp, #0x7C]\n\
cmp r8, r2\n\
bcs _0800512C\n\
_080050CA:\n\
ldr r2, [sp, #0x44]\n\
ldm r2!, {r5}\n\
str r2, [sp, #0x44]\n\
ldr r4, [sp, #0x4C]\n\
add r3, r1, #0x1\n\
mov r10, r3\n\
cmp r4, r12\n\
bcs _08005124\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, #0x7\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_080050EA:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _0800511C\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, #0x7\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800511C:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r12\n\
bcc _080050EA\n\
_08005124:\n\
mov r1, r10\n\
ldr r2, [sp, #0x48]\n\
cmp r1, r2\n\
bcc _080050CA\n\
_0800512C:\n\
mov r1, r8\n\
ldr r3, =gUnknown_03002F90 + 0x20\n\
str r3, [sp, #0x50]\n\
ldr r0, [sp, #0x84]\n\
ldr r2, [sp, #0x7C]\n\
add r0, r2\n\
mov r8, r0\n\
ldr r3, [sp, #0x88]\n\
str r3, [sp, #0x54]\n\
ldr r0, [sp, #0x84]\n\
str r0, [sp, #0x58]\n\
cmp r1, r3\n\
bcs _080051AC\n\
_08005146:\n\
ldr r2, [sp, #0x50]\n\
ldm r2!, {r5}\n\
str r2, [sp, #0x50]\n\
ldr r4, [sp, #0x58]\n\
add r3, r1, #0x1\n\
mov r10, r3\n\
cmp r4, r8\n\
bcs _080051A4\n\
mov r0, #0x7\n\
mov r12, r0\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, r12\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_0800516A:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _0800519C\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800519C:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _0800516A\n\
_080051A4:\n\
mov r1, r10\n\
ldr r2, [sp, #0x54]\n\
cmp r1, r2\n\
bcc _08005146\n\
_080051AC:\n\
ldr r1, [sp, #0x88]\n\
ldr r3, =gUnknown_03002F90 + 0x40\n\
str r3, [sp, #0x5C]\n\
ldr r0, [sp, #0x84]\n\
mov r8, r0\n\
ldr r2, [sp, #0x80]\n\
add r2, r1, r2\n\
str r2, [sp, #0x60]\n\
ldr r3, [sp]\n\
str r3, [sp, #0x64]\n\
cmp r1, r2\n\
bcs _0800522A\n\
_080051C4:\n\
ldr r0, [sp, #0x5C]\n\
ldm r0!, {r5}\n\
str r0, [sp, #0x5C]\n\
ldr r4, [sp, #0x64]\n\
add r2, r1, #0x1\n\
mov r10, r2\n\
cmp r4, r8\n\
bcs _08005222\n\
mov r3, #0x7\n\
mov r12, r3\n\
lsr r0, r1, #3\n\
ldr r3, [sp, #0x4]\n\
add r2, r0, #0\n\
mul r2, r3\n\
add r7, r2, #0\n\
mov r0, r12\n\
and r1, r0\n\
lsl r6, r1, #2\n\
_080051E8:\n\
add r3, r5, #0\n\
mov r1, #0xF\n\
and r3, r1\n\
cmp r3, #0\n\
beq _0800521A\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800521A:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _080051E8\n\
_08005222:\n\
mov r1, r10\n\
ldr r2, [sp, #0x60]\n\
cmp r1, r2\n\
bcc _080051C4\n\
_0800522A:\n\
ldr r4, [sp, #0x84]\n\
ldr r1, [sp, #0x88]\n\
ldr r3, =gUnknown_03002F90 + 0x60\n\
str r3, [sp, #0x68]\n\
ldr r0, [sp, #0x7C]\n\
add r0, r4\n\
mov r8, r0\n\
ldr r2, [sp, #0x80]\n\
add r2, r1, r2\n\
str r2, [sp, #0x6C]\n\
str r4, [sp, #0x70]\n\
cmp r1, r2\n\
bcs _080052AA\n\
_08005244:\n\
ldr r3, [sp, #0x68]\n\
ldm r3!, {r5}\n\
str r3, [sp, #0x68]\n\
ldr r4, [sp, #0x70]\n\
add r0, r1, #0x1\n\
mov r10, r0\n\
cmp r4, r8\n\
bcs _080052A2\n\
mov r2, #0x7\n\
mov r12, r2\n\
lsr r0, r1, #3\n\
ldr r2, [sp, #0x4]\n\
add r3, r0, #0\n\
mul r3, r2\n\
add r7, r3, #0\n\
mov r3, r12\n\
and r1, r3\n\
lsl r6, r1, #2\n\
_08005268:\n\
add r3, r5, #0\n\
mov r0, #0xF\n\
and r3, r0\n\
cmp r3, #0\n\
beq _0800529A\n\
lsr r2, r4, #3\n\
lsl r2, #5\n\
add r2, r9\n\
add r0, r4, #0\n\
mov r1, r12\n\
and r0, r1\n\
lsr r0, #1\n\
add r2, r0\n\
add r2, r7\n\
add r2, r6\n\
mov r1, #0x1\n\
and r1, r4\n\
lsl r1, #2\n\
lsl r3, r1\n\
mov r0, #0xF0\n\
asr r0, r1\n\
ldrb r1, [r2]\n\
and r0, r1\n\
orr r3, r0\n\
strb r3, [r2]\n\
_0800529A:\n\
lsr r5, #4\n\
add r4, #0x1\n\
cmp r4, r8\n\
bcc _08005268\n\
_080052A2:\n\
mov r1, r10\n\
ldr r2, [sp, #0x6C]\n\
cmp r1, r2\n\
bcc _08005244\n\
_080052AA:\n\
add sp, #0x8C\n\
pop {r3-r5}\n\
mov r8, r3\n\
mov r9, r4\n\
mov r10, r5\n\
pop {r4-r7}\n\
pop {r0}\n\
bx r0\n\
.pool");
}
#endif // NONMATCHING
void ClearTextSpan(struct TextPrinter *textPrinter, u32 width)
{
struct Window *window;