// // SetupSmartTemplateLayer::textInputOpened from 0x67494c to 0x674a3c (240 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupSmartTemplateLayer::textInputOpened @ 0x674a4c // // 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:55:55 +0000 // int __fastcall SetupSmartTemplateLayer::textInputOpened(SetupSmartTemplateLayer *this, CCTextInputNode *a2) { int v3; // r4 int v4; // r3 size_t v5; // r10 unsigned int v6; // r5 _BYTE *v7; // r0 char *v8; // r1 size_t v9; // r2 int v10; // r4 unsigned __int8 v12; // [sp+0h] [bp-28h] BYREF _BYTE v13[3]; // [sp+1h] [bp-27h] BYREF size_t v14; // [sp+4h] [bp-24h] _BYTE *v15; // [sp+8h] [bp-20h] int v16; // [sp+Ch] [bp-1Ch] BYREF unsigned int v17; // [sp+10h] [bp-18h] char *v18; // [sp+14h] [bp-14h] int v19[3]; // [sp+18h] [bp-10h] BYREF v3 = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2); CCTextInputNode::getString((CCTextInputNode *)&v12, (int)a2); if ( v3 ) return std::string::~string((int)&v12); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, &unk_B6B226, 0); v4 = v12 & 1; if ( v4 ) v5 = v14; else v5 = (int)v12 >> 1; if ( (v16 & 1) == 0 ) { v6 = (int)(unsigned __int8)v16 >> 1; if ( !v4 ) { v7 = v13; goto LABEL_12; } LABEL_9: v7 = v15; if ( (v16 & 1) != 0 ) goto LABEL_10; LABEL_12: v8 = (char *)&v16 + 1; goto LABEL_13; } v6 = v17; if ( v4 ) goto LABEL_9; v7 = v13; LABEL_10: v8 = v18; LABEL_13: v9 = v6; if ( v6 >= v5 ) v9 = v5; if ( !v9 || (v10 = memcmp(v7, v8, v9)) == 0 ) { if ( v5 < v6 ) v10 = -1; else v10 = v5 > v6; } std::string::~string((int)&v16); if ( !v10 ) { memset(v19, 0, sizeof(v19)); std::string::__init(v19, " ", 1u); CCTextInputNode::updateLabel((float *)a2, (int)v19); std::string::~string((int)v19); } return std::string::~string((int)&v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source