// // NumberInputLayer::updateNumberState from 0x568934 to 0x568a98 (356 bytes) // // 4 xrefs: // > ParentalGateLayer::generateChallenge @ 0x533d2a // > NumberInputLayer::init @ 0x568e48 // > NumberInputLayer::inputNumber @ 0x568eb6 // > NumberInputLayer::deleteLast @ 0x569018 // // 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:52:29 +0000 // int __fastcall NumberInputLayer::updateNumberState(NumberInputLayer *this) { int v1; // r5 int v3; // r3 _BOOL4 v4; // r5 _DWORD *v5; // r0 char *v6; // r3 int v7; // r9 int v8; // r5 int v9; // r7 int v10; // r3 size_t v11; // r5 size_t v12; // r7 char *v13; // r10 unsigned int v14; // r6 char *v15; // r3 unsigned int v16; // r6 char *v17; // r1 char *v18; // r1 void (__fastcall *v20)(int, char *); // [sp+0h] [bp-1Ch] char *v21; // [sp+4h] [bp-18h] int v22; // [sp+8h] [bp-14h] BYREF size_t v23; // [sp+Ch] [bp-10h] char *v24; // [sp+10h] [bp-Ch] v1 = *((unsigned __int8 *)this + 552); if ( (v1 & 1) != 0 ) v3 = *((_DWORD *)this + 139); else v3 = v1 >> 1; v4 = v3 >= *((_DWORD *)this + 133) && v3 <= *((_DWORD *)this + 134); v5 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 132) + 536))(*((_DWORD *)this + 132)); if ( v4 ) v6 = &byte_BED128; else v6 = &byte_BED12B; ButtonSprite::setColor(v5, (unsigned __int8)*v6 | ((unsigned __int8)v6[1] << 8) | ((unsigned __int8)v6[2] << 16)); (*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 132) + 528))(*((_DWORD *)this + 132), v4); v7 = *((_DWORD *)this + 130); v8 = *((unsigned __int8 *)this + 540); v9 = *((unsigned __int8 *)this + 552); v20 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v7 + 464); v22 = 0; v23 = 0; v24 = nullptr; v10 = v8 & 1; if ( (v8 & 1) != 0 ) v11 = *((_DWORD *)this + 136); else v11 = v8 >> 1; if ( (v9 & 1) != 0 ) v12 = *((_DWORD *)this + 139); else v12 = v9 >> 1; if ( v10 ) v13 = *((char **)this + 137); else v13 = (char *)this + 541; v14 = v12 + v11; if ( v12 + v11 > 0xFFFFFFEF ) sub_388710(); if ( v14 > 0xA ) { v16 = (v14 + 16) & 0xFFFFFFF0; v15 = (char *)operator new(v16); v24 = v15; v22 = v16 | 1; v23 = v11; } else { LOBYTE(v22) = 2 * v11; v15 = (char *)&v22 + 1; } v21 = v15; std::char_traits::copy(v15, v13, v11); v21[v11] = 0; if ( (*((_BYTE *)this + 552) & 1) != 0 ) v17 = *((char **)this + 140); else v17 = (char *)this + 553; std::string::append(&v22, v17, v12); if ( (v22 & 1) != 0 ) v18 = v24; else v18 = (char *)&v22 + 1; v20(v7, v18); std::string::~string((int)&v22); return cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 130), 240.0, 0.8, 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source