// // NumberInputLayer::onNumber from 0x1404a1820 to 0x1404a198c (364 bytes) // // 2 xrefs: // > NumberInputLayer::init @ 0x1404a1646 // > @ 0x140929534 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:32:57 +0000 // unsigned __int64 __fastcall NumberInputLayer::onNumber(__int64 a1, __int64 a2) { int v3; // edx unsigned __int64 result; // rax const void *v5; // rdx bool v6; // cc void *v7; // rcx cocos2d::CCString *v8; // rax char *CString; // rax size_t v10; // r8 void *Block[2]; // [rsp+38h] [rbp-30h] BYREF __int128 v12; // [rsp+48h] [rbp-20h] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); if ( v3 == 10 ) { result = *(_QWORD *)(a1 + 744); if ( !result ) return result; v5 = (const void *)(a1 + 728); v6 = *(_QWORD *)(a1 + 752) <= 0xFu; *(_OWORD *)Block = 0; v12 = 0; if ( !v6 ) v5 = *(const void **)(a1 + 728); sub_14003D230(Block, v5, result - 1); sub_140059C40(a1 + 728, (__int64)Block); if ( *((_QWORD *)&v12 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v7); } return NumberInputLayer::updateNumberState(a1); } if ( v3 == 12 ) return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1080LL))(a1, 0); result = *(int *)(a1 + 692); if ( *(_QWORD *)(a1 + 744) < result ) { v8 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8); CString = (char *)cocos2d::CCString::getCString(v8); v10 = -1; do ++v10; while ( CString[v10] ); sub_140044D80((_QWORD *)(a1 + 728), CString, v10); return NumberInputLayer::updateNumberState(a1); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source