// // cocos2d::CCUserDefault::getIntegerForKey from 0x1006b0180 to 0x1006b030a (394 bytes) // // 1 xrefs: // > cocos2d::CCUserDefault::getIntegerForKey_1 @ 0x1006b0177 // // 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 12:35:24 +0000 // id __fastcall cocos2d::CCUserDefault::getIntegerForKey(__int64 a1, char *a2, int a3) { __int64 v3; // rbx _QWORD *v5; // rax _QWORD *v6; // r15 __int64 v7; // rdi const char *v8; // rdi NSUserDefaults *v9; // rax __int64 v10; // r14 __int64 v11; // rdi const char *data; // rsi __int64 v13; // r12 __int64 v14; // rdi const char *v15; // rsi NSUserDefaults *v16; // r15 NSString *v17; // rax id v18; // rax __int64 v20[5]; // [rsp+8h] [rbp-28h] BYREF LODWORD(v3) = a3; v20[0] = 0; v5 = (_QWORD *)sub_1006AFEB0(a2, v20); if ( v5 ) { v6 = v5; v7 = v5[6]; if ( v7 ) { v8 = (const char *)sub_10005AD20((int *)(v7 + 24)); v3 = (unsigned int)atoi(v8); cocos2d::CCUserDefault::setIntegerForKey(v8, a2, v3); v9 = +[NSUserDefaults standardUserDefaults](&OBJC_CLASS___NSUserDefaults, "standardUserDefaults"); -[NSUserDefaults synchronize](v9, "synchronize"); v10 = v20[0]; v11 = v6[2]; sub_10005C340(v11, v6); cocos2d::CCUserDefault::sharedUserDefault(v11); if ( (*(_BYTE *)&stru_100BE8C08.__r_.__value_.__s.0 & 1) != 0 ) data = stru_100BE8C08.__r_.__value_.__l.__data_; else data = stru_100BE8C08.__r_.__value_.__s.__data_; sub_10005FED0(v10, data, 0); if ( v10 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 136LL))(v10); return (id)(unsigned int)v3; } v13 = v20[0]; v14 = v5[2]; sub_10005C340(v14, v5); cocos2d::CCUserDefault::sharedUserDefault(v14); if ( (*(_BYTE *)&stru_100BE8C08.__r_.__value_.__s.0 & 1) != 0 ) v15 = stru_100BE8C08.__r_.__value_.__l.__data_; else v15 = stru_100BE8C08.__r_.__value_.__s.__data_; sub_10005FED0(v13, v15, 0); if ( v13 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 136LL))(v13); } v16 = +[NSUserDefaults standardUserDefaults](&OBJC_CLASS___NSUserDefaults, "standardUserDefaults"); v17 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", a2); v18 = -[NSUserDefaults objectForKey:](v16, "objectForKey:", v17); if ( v18 ) return objc_msgSend(v18, "intValue"); return (id)(unsigned int)v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source