{"type": "func", "start": 4295673000, "end": 4295673332, "name": "GJGameLevel::init", "pseudocode": "// \n// GJGameLevel::init from 0x1000ac4a8 to 0x1000ac5f4 (332 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10077f5d0\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; // w9\n  int v3; // w8\n  int v4; // w8\n  int v5; // w8\n  int v6; // w8\n  int v7; // w8\n  int v8; // w8\n  cocos2d::CCDictionary *v9; // x0\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_10086AE48;\n  a1->m_M_ID = dword_10086AE48;\n  dword_10086AE48 = v2 + 1;\n  a1->m_attempts.value = 0;\n  v3 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_attempts.seed = v3;\n  a1->m_attempts.random = v3;\n  a1->m_jumps.value = 0;\n  v4 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_jumps.seed = v4;\n  a1->m_jumps.random = v4;\n  a1->m_clicks.value = 0;\n  v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_clicks.seed = v5;\n  a1->m_clicks.random = v5;\n  a1->m_attemptTime.value = 0;\n  v6 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 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)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0);\n  a1->m_stars.seed = v7;\n  a1->m_stars.random = v7;\n  a1->m_demon.value = 0;\n  v8 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 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  sub_1000AC5F4(a1, v9);\n  return 1;\n}", "assembly": "; \n; GJGameLevel::init from 0x1000ac4a8 to 0x1000ac5f4 (332 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10077f5d0\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\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1000ac4a8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000ac4ac\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000ac4b0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000ac4b4\nMOV             X19, X0                                                ; +0x10, 0x1000ac4b8\nADRL            X20, asc_100746688; \"\"                                 ; +0x14, 0x1000ac4bc\nADD             X0, X0, #0x158; this                                   ; +0x1c, 0x1000ac4c4\nMOV             X1, X20; __s                                           ; +0x20, 0x1000ac4c8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x24, 0x1000ac4cc\nADD             X0, X19, #0x170; this                                  ; +0x28, 0x1000ac4d0\nMOV             X1, X20; __s                                           ; +0x2c, 0x1000ac4d4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x30, 0x1000ac4d8\nADD             X0, X19, #0x188; this                                  ; +0x34, 0x1000ac4dc\nMOV             X1, X20; __s                                           ; +0x38, 0x1000ac4e0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x3c, 0x1000ac4e4\nADD             X0, X19, #0x448; this                                  ; +0x40, 0x1000ac4e8\nMOV             X1, X20; __s                                           ; +0x44, 0x1000ac4ec\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x48, 0x1000ac4f0\nMOV             W8, #1                                                 ; +0x4c, 0x1000ac4f4\nSTR             W8, [X19,#0x2A0]                                       ; +0x50, 0x1000ac4f8\nSTR             WZR, [X19,#0x404]                                      ; +0x54, 0x1000ac4fc\nADRP            X8, #dword_10086AE48@PAGE                              ; +0x58, 0x1000ac500\nLDR             W9, [X8,#dword_10086AE48@PAGEOFF]                      ; +0x5c, 0x1000ac504\nSTR             W9, [X19,#0x408]                                       ; +0x60, 0x1000ac508\nADD             W9, W9, #1                                             ; +0x64, 0x1000ac50c\nSTR             W9, [X8,#dword_10086AE48@PAGEOFF]                      ; +0x68, 0x1000ac510\nSTR             WZR, [X19,#0x2B0]                                      ; +0x6c, 0x1000ac514\nBL              _rand                                                  ; +0x70, 0x1000ac518\nSCVTF           S0, W0, #0x1F                                          ; +0x74, 0x1000ac51c\nMOV             W8, #0x447A0000                                        ; +0x78, 0x1000ac520\nFMOV            S8, W8                                                 ; +0x7c, 0x1000ac524\nFMUL            S0, S0, S8                                             ; +0x80, 0x1000ac528\nFCVTZS          W8, S0                                                 ; +0x84, 0x1000ac52c\nSTR             W8, [X19,#0x2AC]                                       ; +0x88, 0x1000ac530\nSTR             W8, [X19,#0x2A8]                                       ; +0x8c, 0x1000ac534\nSTR             WZR, [X19,#0x2BC]                                      ; +0x90, 0x1000ac538\nBL              _rand                                                  ; +0x94, 0x1000ac53c\nSCVTF           S0, W0, #0x1F                                          ; +0x98, 0x1000ac540\nFMUL            S0, S0, S8                                             ; +0x9c, 0x1000ac544\nFCVTZS          W8, S0                                                 ; +0xa0, 0x1000ac548\nSTR             W8, [X19,#0x2B8]                                       ; +0xa4, 0x1000ac54c\nSTR             W8, [X19,#0x2B4]                                       ; +0xa8, 0x1000ac550\nSTR             WZR, [X19,#0x2C8]                                      ; +0xac, 0x1000ac554\nBL              _rand                                                  ; +0xb0, 0x1000ac558\nSCVTF           S0, W0, #0x1F                                          ; +0xb4, 0x1000ac55c\nFMUL            S0, S0, S8                                             ; +0xb8, 0x1000ac560\nFCVTZS          W8, S0                                                 ; +0xbc, 0x1000ac564\nSTR             W8, [X19,#0x2C4]                                       ; +0xc0, 0x1000ac568\nSTR             W8, [X19,#0x2C0]                                       ; +0xc4, 0x1000ac56c\nSTR             WZR, [X19,#0x2D4]                                      ; +0xc8, 0x1000ac570\nBL              _rand                                                  ; +0xcc, 0x1000ac574\nSCVTF           S0, W0, #0x1F                                          ; +0xd0, 0x1000ac578\nFMUL            S0, S0, S8                                             ; +0xd4, 0x1000ac57c\nFCVTZS          W8, S0                                                 ; +0xd8, 0x1000ac580\nSTR             W8, [X19,#0x2D0]                                       ; +0xdc, 0x1000ac584\nSTR             W8, [X19,#0x2CC]                                       ; +0xe0, 0x1000ac588\nSTR             WZR, [X19,#0x2D8]                                      ; +0xe4, 0x1000ac58c\nSTR             WZR, [X19,#0x350]                                      ; +0xe8, 0x1000ac590\nSTR             WZR, [X19,#0x348]                                      ; +0xec, 0x1000ac594\nBL              _rand                                                  ; +0xf0, 0x1000ac598\nSCVTF           S0, W0, #0x1F                                          ; +0xf4, 0x1000ac59c\nFMUL            S0, S0, S8                                             ; +0xf8, 0x1000ac5a0\nFCVTZS          W8, S0                                                 ; +0xfc, 0x1000ac5a4\nSTR             W8, [X19,#0x344]                                       ; +0x100, 0x1000ac5a8\nSTR             W8, [X19,#0x340]                                       ; +0x104, 0x1000ac5ac\nSTR             WZR, [X19,#0x338]                                      ; +0x108, 0x1000ac5b0\nBL              _rand                                                  ; +0x10c, 0x1000ac5b4\nSCVTF           S0, W0, #0x1F                                          ; +0x110, 0x1000ac5b8\nFMUL            S0, S0, S8                                             ; +0x114, 0x1000ac5bc\nFCVTZS          W8, S0                                                 ; +0x118, 0x1000ac5c0\nSTR             W8, [X19,#0x334]                                       ; +0x11c, 0x1000ac5c4\nSTR             W8, [X19,#0x330]                                       ; +0x120, 0x1000ac5c8\nSTRH            WZR, [X19,#0x3E0]                                      ; +0x124, 0x1000ac5cc\nBL              cocos2d__CCDictionary__create                          ; +0x128, 0x1000ac5d0\nMOV             X1, X0                                                 ; +0x12c, 0x1000ac5d4\nMOV             X0, X19                                                ; +0x130, 0x1000ac5d8\nBL              sub_1000AC5F4                                          ; +0x134, 0x1000ac5dc\nMOV             W0, #1                                                 ; +0x138, 0x1000ac5e0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x13c, 0x1000ac5e4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x140, 0x1000ac5e8\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x144, 0x1000ac5ec\nRET                                                                    ; +0x148, 0x1000ac5f0", "xrefs": ["<???> @ 0x10077f5d0"], "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"}