{"type": "func", "start": 4300583888, "end": 4300584419, "name": "GJGameLevel::init", "pseudocode": "// \n// GJGameLevel::init from 0x10055b3d0 to 0x10055b5e3 (531 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100960c60\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GJGameLevel::init(GJGameLevel *a1)\n{\n  int v2; // eax\n  int v3; // eax\n  int v4; // eax\n  int v5; // eax\n  int v6; // eax\n  int v7; // eax\n  int v8; // eax\n  cocos2d::CCDictionary *v9; // rax\n  cocos2d::CCDictionary *m_lastBuildSave; // rdi\n  cocos2d::CCDictionary *v11; // r14\n\n  std::string::assign((std::string *)&a1->m_levelName, \"\");\n  std::string::assign((std::string *)&a1->m_levelDesc, \"\");\n  std::string::assign((std::string *)&a1->m_levelString, \"\");\n  std::string::assign((std::string *)&a1->m_personalBests, \"\");\n  a1->m_levelVersion = 1;\n  a1->m_levelType = 0;\n  v2 = dword_1009A28E8;\n  a1->m_M_ID = dword_1009A28E8;\n  dword_1009A28E8 = v2 + 1;\n  a1->m_attempts.value = 0;\n  v3 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_attempts.seed = v3;\n  a1->m_attempts.random = v3;\n  a1->m_jumps.value = 0;\n  v4 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_jumps.seed = v4;\n  a1->m_jumps.random = v4;\n  a1->m_clicks.value = 0;\n  v5 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_clicks.seed = v5;\n  a1->m_clicks.random = v5;\n  a1->m_attemptTime.value = 0;\n  v6 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_attemptTime.seed = v6;\n  a1->m_attemptTime.random = v6;\n  a1->m_chk = 0;\n  a1->m_coins = 0;\n  a1->m_stars.value = 0;\n  v7 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_stars.seed = v7;\n  a1->m_stars.random = v7;\n  a1->m_demon.value = 0;\n  v8 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);\n  a1->m_demon.seed = v8;\n  a1->m_demon.random = v8;\n  *(_WORD *)&a1->m_dontSave = 0;\n  v9 = cocos2d::CCDictionary::create();\n  m_lastBuildSave = a1->m_lastBuildSave;\n  if ( m_lastBuildSave != v9 )\n  {\n    v11 = v9;\n    if ( v9 )\n    {\n      cocos2d::CCObject::retain(v9);\n      m_lastBuildSave = a1->m_lastBuildSave;\n    }\n    if ( m_lastBuildSave )\n      cocos2d::CCObject::release(m_lastBuildSave);\n    a1->m_lastBuildSave = v11;\n  }\n  return 1;\n}", "assembly": "; \n; GJGameLevel::init from 0x10055b3d0 to 0x10055b5e3 (531 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100960c60\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10055b3d0\nmov     rbp, rsp                                                       ; +0x1, 0x10055b3d1\npush    r14                                                            ; +0x4, 0x10055b3d4\npush    rbx                                                            ; +0x6, 0x10055b3d6\nmov     rbx, rdi                                                       ; +0x7, 0x10055b3d7\nadd     rdi, 158h; this                                                ; +0xa, 0x10055b3da\nlea     r14, __src; \"\"                                                 ; +0x11, 0x10055b3e1\nmov     rsi, r14; __s                                                  ; +0x18, 0x10055b3e8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x1b, 0x10055b3eb\nlea     rdi, [rbx+170h]; this                                          ; +0x20, 0x10055b3f0\nmov     rsi, r14; __s                                                  ; +0x27, 0x10055b3f7\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x2a, 0x10055b3fa\nlea     rdi, [rbx+188h]; this                                          ; +0x2f, 0x10055b3ff\nmov     rsi, r14; __s                                                  ; +0x36, 0x10055b406\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x39, 0x10055b409\nlea     rdi, [rbx+448h]; this                                          ; +0x3e, 0x10055b40e\nmov     rsi, r14; __s                                                  ; +0x45, 0x10055b415\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x48, 0x10055b418\nmov     dword ptr [rbx+2A0h], 1                                        ; +0x4d, 0x10055b41d\nmov     dword ptr [rbx+404h], 0                                        ; +0x57, 0x10055b427\nmov     eax, cs:dword_1009A28E8                                        ; +0x61, 0x10055b431\nmov     [rbx+408h], eax                                                ; +0x67, 0x10055b437\ninc     eax                                                            ; +0x6d, 0x10055b43d\nmov     cs:dword_1009A28E8, eax                                        ; +0x6f, 0x10055b43f\nmov     dword ptr [rbx+2B0h], 0                                        ; +0x75, 0x10055b445\ncall    _rand                                                          ; +0x7f, 0x10055b44f\ncvtsi2ss xmm0, eax                                                     ; +0x84, 0x10055b454\nmulss   xmm0, cs:dword_100815710                                       ; +0x88, 0x10055b458\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x90, 0x10055b460\ncvttss2si eax, xmm0                                                    ; +0x98, 0x10055b468\nmov     [rbx+2ACh], eax                                                ; +0x9c, 0x10055b46c\nmov     [rbx+2A8h], eax                                                ; +0xa2, 0x10055b472\nmov     dword ptr [rbx+2BCh], 0                                        ; +0xa8, 0x10055b478\ncall    _rand                                                          ; +0xb2, 0x10055b482\nxorps   xmm0, xmm0                                                     ; +0xb7, 0x10055b487\ncvtsi2ss xmm0, eax                                                     ; +0xba, 0x10055b48a\nmulss   xmm0, cs:dword_100815710                                       ; +0xbe, 0x10055b48e\nmulss   xmm0, cs:dword_1008152B8                                       ; +0xc6, 0x10055b496\ncvttss2si eax, xmm0                                                    ; +0xce, 0x10055b49e\nmov     [rbx+2B8h], eax                                                ; +0xd2, 0x10055b4a2\nmov     [rbx+2B4h], eax                                                ; +0xd8, 0x10055b4a8\nmov     dword ptr [rbx+2C8h], 0                                        ; +0xde, 0x10055b4ae\ncall    _rand                                                          ; +0xe8, 0x10055b4b8\nxorps   xmm0, xmm0                                                     ; +0xed, 0x10055b4bd\ncvtsi2ss xmm0, eax                                                     ; +0xf0, 0x10055b4c0\nmulss   xmm0, cs:dword_100815710                                       ; +0xf4, 0x10055b4c4\nmulss   xmm0, cs:dword_1008152B8                                       ; +0xfc, 0x10055b4cc\ncvttss2si eax, xmm0                                                    ; +0x104, 0x10055b4d4\nmov     [rbx+2C4h], eax                                                ; +0x108, 0x10055b4d8\nmov     [rbx+2C0h], eax                                                ; +0x10e, 0x10055b4de\nmov     dword ptr [rbx+2D4h], 0                                        ; +0x114, 0x10055b4e4\ncall    _rand                                                          ; +0x11e, 0x10055b4ee\nxorps   xmm0, xmm0                                                     ; +0x123, 0x10055b4f3\ncvtsi2ss xmm0, eax                                                     ; +0x126, 0x10055b4f6\nmulss   xmm0, cs:dword_100815710                                       ; +0x12a, 0x10055b4fa\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x132, 0x10055b502\ncvttss2si eax, xmm0                                                    ; +0x13a, 0x10055b50a\nmov     [rbx+2D0h], eax                                                ; +0x13e, 0x10055b50e\nmov     [rbx+2CCh], eax                                                ; +0x144, 0x10055b514\nmov     dword ptr [rbx+2D8h], 0                                        ; +0x14a, 0x10055b51a\nmov     dword ptr [rbx+350h], 0                                        ; +0x154, 0x10055b524\nmov     dword ptr [rbx+348h], 0                                        ; +0x15e, 0x10055b52e\ncall    _rand                                                          ; +0x168, 0x10055b538\nxorps   xmm0, xmm0                                                     ; +0x16d, 0x10055b53d\ncvtsi2ss xmm0, eax                                                     ; +0x170, 0x10055b540\nmulss   xmm0, cs:dword_100815710                                       ; +0x174, 0x10055b544\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x17c, 0x10055b54c\ncvttss2si eax, xmm0                                                    ; +0x184, 0x10055b554\nmov     [rbx+344h], eax                                                ; +0x188, 0x10055b558\nmov     [rbx+340h], eax                                                ; +0x18e, 0x10055b55e\nmov     dword ptr [rbx+338h], 0                                        ; +0x194, 0x10055b564\ncall    _rand                                                          ; +0x19e, 0x10055b56e\nxorps   xmm0, xmm0                                                     ; +0x1a3, 0x10055b573\ncvtsi2ss xmm0, eax                                                     ; +0x1a6, 0x10055b576\nmulss   xmm0, cs:dword_100815710                                       ; +0x1aa, 0x10055b57a\nmulss   xmm0, cs:dword_1008152B8                                       ; +0x1b2, 0x10055b582\ncvttss2si eax, xmm0                                                    ; +0x1ba, 0x10055b58a\nmov     [rbx+334h], eax                                                ; +0x1be, 0x10055b58e\nmov     [rbx+330h], eax                                                ; +0x1c4, 0x10055b594\nmov     word ptr [rbx+3E0h], 0                                         ; +0x1ca, 0x10055b59a\ncall    cocos2d__CCDictionary__create                                  ; +0x1d3, 0x10055b5a3\nmov     rdi, [rbx+140h]                                                ; +0x1d8, 0x10055b5a8\ncmp     rdi, rax                                                       ; +0x1df, 0x10055b5af\njz      short loc_10055B5DC                                            ; +0x1e2, 0x10055b5b2\nmov     r14, rax                                                       ; +0x1e4, 0x10055b5b4\ntest    rax, rax                                                       ; +0x1e7, 0x10055b5b7\njz      short loc_10055B5CB                                            ; +0x1ea, 0x10055b5ba\nmov     rdi, r14                                                       ; +0x1ec, 0x10055b5bc\ncall    cocos2d__CCObject__retain                                      ; +0x1ef, 0x10055b5bf\nmov     rdi, [rbx+140h]                                                ; +0x1f4, 0x10055b5c4\ntest    rdi, rdi                                                       ; +0x1fb, 0x10055b5cb\njz      short loc_10055B5D5                                            ; +0x1fe, 0x10055b5ce\ncall    cocos2d__CCObject__release                                     ; +0x200, 0x10055b5d0\nmov     [rbx+140h], r14                                                ; +0x205, 0x10055b5d5\nmov     al, 1                                                          ; +0x20c, 0x10055b5dc\npop     rbx                                                            ; +0x20e, 0x10055b5de\npop     r14                                                            ; +0x20f, 0x10055b5df\npop     rbp                                                            ; +0x211, 0x10055b5e1\nretn                                                                   ; +0x212, 0x10055b5e2", "xrefs": ["<???> @ 0x100960c60"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}