{"type": "func", "start": 4297075740, "end": 4297075936, "name": "GJBaseGameLayer::resetSpawnChannelIndex", "pseudocode": "// \n// GJBaseGameLayer::resetSpawnChannelIndex from 0x100202c1c to 0x100202ce0 (196 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x100202748\n// > LevelEditorLayer::updateGameObjects @ 0x100358a18\n// > LevelEditorLayer::onPlaytest @ 0x100362d94\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\nvoid __fastcall GJBaseGameLayer::resetSpawnChannelIndex(GJBaseGameLayer *a1)\n{\n  cocos2d::CCArray *v2; // x20\n  __int64 v3; // x21\n  int v4; // [xsp+0h] [xbp-40h] BYREF\n  int *v5; // [xsp+8h] [xbp-38h] BYREF\n\n  a1->m_gameState.m_currentChannel = 0;\n  v2 = cocos2d::CCDictionary::allKeys(a1->m_spawnObjects);\n  if ( (unsigned int)sub_10024A36C(v2) )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = *(_DWORD *)(sub_10024A388(v2, v3) + 56);\n      v5 = &v4;\n      *((_DWORD *)sub_10001D150(\n                    (unsigned __int64)&a1->m_gameState.m_spawnChannelRelated0,\n                    &v4,\n                    (__int64)&unk_10063A31C,\n                    &v5)\n      + 5) = 0;\n      v5 = &v4;\n      *((_BYTE *)sub_100018B20((float *)&a1->m_gameState.m_spawnChannelRelated1, &v4, (__int64)&unk_10063A31C, &v5) + 20) = 0;\n      v3 = (unsigned int)(v3 + 1);\n    }\n    while ( (unsigned int)v3 < (unsigned int)sub_10024A36C(v2) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::resetSpawnChannelIndex from 0x100202c1c to 0x100202ce0 (196 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x100202748\n; > LevelEditorLayer::updateGameObjects @ 0x100358a18\n; > LevelEditorLayer::onPlaytest @ 0x100362d94\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x100202c1c\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x100202c20\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100202c24\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100202c28\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100202c2c\nADD             X29, SP, #0x40                                         ; +0x14, 0x100202c30\nMOV             X19, X0                                                ; +0x18, 0x100202c34\nSTR             WZR, [X0,#0x33C]                                       ; +0x1c, 0x100202c38\nLDR             X0, [X0,#0xCF8]                                        ; +0x20, 0x100202c3c\nBL              cocos2d__CCDictionary__allKeys                         ; +0x24, 0x100202c40\nMOV             X20, X0                                                ; +0x28, 0x100202c44\nBL              sub_10024A36C                                          ; +0x2c, 0x100202c48\nCBZ             W0, loc_100202CC8                                      ; +0x30, 0x100202c4c\nMOV             W21, #0                                                ; +0x34, 0x100202c50\nMOV             X23, SP                                                ; +0x38, 0x100202c54\nADRL            X22, unk_10063A31C                                     ; +0x3c, 0x100202c58\nMOV             X0, X20                                                ; +0x44, 0x100202c60\nMOV             X1, X21                                                ; +0x48, 0x100202c64\nBL              sub_10024A388                                          ; +0x4c, 0x100202c68\nLDR             W8, [X0,#0x38]                                         ; +0x50, 0x100202c6c\nSTR             W8, [SP,#0x40+var_40]                                  ; +0x54, 0x100202c70\nSTR             X23, [SP,#0x40+var_38]                                 ; +0x58, 0x100202c74\nADD             X0, X19, #0x348                                        ; +0x5c, 0x100202c78\nMOV             X1, SP                                                 ; +0x60, 0x100202c7c\nADD             X3, SP, #0x40+var_38                                   ; +0x64, 0x100202c80\nADD             X4, SP, #0x40+var_39                                   ; +0x68, 0x100202c84\nMOV             X2, X22                                                ; +0x6c, 0x100202c88\nBL              sub_10001D150                                          ; +0x70, 0x100202c8c\nSTR             WZR, [X0,#0x14]                                        ; +0x74, 0x100202c90\nSTR             X23, [SP,#0x40+var_38]                                 ; +0x78, 0x100202c94\nADD             X0, X19, #0x370                                        ; +0x7c, 0x100202c98\nMOV             X1, SP                                                 ; +0x80, 0x100202c9c\nADD             X3, SP, #0x40+var_38                                   ; +0x84, 0x100202ca0\nADD             X4, SP, #0x40+var_39                                   ; +0x88, 0x100202ca4\nMOV             X2, X22                                                ; +0x8c, 0x100202ca8\nBL              sub_100018B20                                          ; +0x90, 0x100202cac\nSTRB            WZR, [X0,#0x14]                                        ; +0x94, 0x100202cb0\nADD             W21, W21, #1                                           ; +0x98, 0x100202cb4\nMOV             X0, X20                                                ; +0x9c, 0x100202cb8\nBL              sub_10024A36C                                          ; +0xa0, 0x100202cbc\nCMP             W21, W0                                                ; +0xa4, 0x100202cc0\nB.CC            loc_100202C60                                          ; +0xa8, 0x100202cc4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xac, 0x100202cc8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb0, 0x100202ccc\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb4, 0x100202cd0\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xb8, 0x100202cd4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xbc, 0x100202cd8\nRET                                                                    ; +0xc0, 0x100202cdc", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x100202748", "LevelEditorLayer::updateGameObjects @ 0x100358a18", "LevelEditorLayer::onPlaytest @ 0x100362d94"], "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"}