// // EmoteSprite::translateUnicodeEmoji from 0x3f3810 to 0x3f39c2 (434 bytes) // // 2 xrefs: // > CCTextInputNode::insertAtCursor @ 0x3e3f82 // > CCTextInputNode::onTextFieldInsertText @ 0x3e42a4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:15 +0000 // int *__fastcall EmoteSprite::translateUnicodeEmoji(int *a1, unsigned __int8 *a2) { int v4; // r1 unsigned int v5; // r1 int v6; // r6 unsigned int v7; // r8 unsigned __int8 *v8; // r9 unsigned int v9; // r6 int v10; // r1 unsigned int v11; // r5 signed int v12; // r3 int i; // r2 unsigned __int8 v14; // r0 int v15; // r0 int v16; // r2 int v17; // r12 int v18; // r0 const char *v19; // r10 size_t v20; // r0 *a1 = 0; a1[1] = 0; a1[2] = 0; v4 = *a2; if ( (v4 & 1) != 0 ) v5 = *((_DWORD *)a2 + 1); else v5 = v4 >> 1; std::string::reserve(a1, v5); v6 = *a2; v7 = 0; if ( (v6 & 1) != 0 ) v8 = *((unsigned __int8 **)a2 + 2); else v8 = a2 + 1; if ( (v6 & 1) != 0 ) v9 = *((_DWORD *)a2 + 1); else v9 = v6 >> 1; while ( v7 < v9 ) { v10 = v8[v7]; if ( (v10 & 0x80) != 0 ) { if ( v10 >> 5 == 6 ) { v12 = 2; } else if ( v10 >> 4 == 14 ) { v12 = 3; } else { if ( v10 >> 3 != 30 ) goto LABEL_15; v12 = 4; } } else { v12 = 1; } v11 = v12 + v7; if ( v12 + v7 > v9 ) { LABEL_15: std::string::push_back(a1, v10); v11 = v7 + 1; goto LABEL_17; } if ( v12 != 1 ) { if ( v12 == 2 ) { v10 &= 0x1Fu; } else if ( v12 == 3 ) { v10 &= 0xFu; } else { v10 &= 7u; } } for ( i = 1; i < v12; ++i ) { v14 = v8[v7 + i]; v10 = v14 & 0x3F | (v10 << 6); } v15 = v10 == 128565 && v11 + 7 <= v9; v16 = 0; while ( v15 ) { if ( v16 == 7 ) { std::string::append(a1, ":dizzy:", 7u); v11 += 7; goto LABEL_17; } v17 = v8[v11 + v16]; v18 = byte_BEB484[v16++]; v15 = v17 == v18; } if ( (unsigned int)(v10 - 65038) > 1 && v10 != 8205 && v10 != 8419 && (unsigned int)(v10 - 127995) > 4 ) { if ( (unsigned int)v10 >= 0x2000 ) { if ( (unsigned int)(v10 - 128336) <= 0x17 ) { v19 = "clock"; LABEL_51: std::string::push_back(a1, 58); v20 = strlen(v19); std::string::append(a1, v19, v20); std::string::push_back(a1, 58); goto LABEL_17; } while ( *((_DWORD *)&unk_C71F10 + 2 * v15) != v10 ) { if ( ++v15 == 188 ) goto LABEL_52; } v19 = *((const char **)&unk_C71F10 + 2 * v15 + 1); if ( v19 ) goto LABEL_51; } LABEL_52: std::string::append(a1, a2, v7, v12); } LABEL_17: v7 = v11; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source