{"type": "func", "start": 4297718172, "end": 4297718368, "name": "GJBaseGameLayer::resetSpawnChannelIndex", "pseudocode": "// \n// GJBaseGameLayer::resetSpawnChannelIndex from 0x10029f99c to 0x10029fa60 (196 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x10029f4c8\n// > sub_1003F823C @ 0x1003f86b4\n// > LevelEditorLayer::onPlaytest @ 0x100404934\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:12 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetSpawnChannelIndex(__int64 a1)\n{\n  __int64 v2; // x20\n  __int64 result; // x0\n  __int64 v4; // x21\n  int v5; // [xsp+0h] [xbp-40h] BYREF\n  int *v6; // [xsp+8h] [xbp-38h] BYREF\n\n  *(_DWORD *)(a1 + 828) = 0;\n  v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 3312));\n  result = sub_1002E757C(v2);\n  if ( (_DWORD)result )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = *(_DWORD *)(sub_1002E75A0(v2, v4) + 56);\n      v6 = &v5;\n      *((_DWORD *)sub_10001DBA4(a1 + 840, &v5, (__int64)&unk_100763014, &v6) + 5) = 0;\n      v6 = &v5;\n      *((_BYTE *)sub_100019574((float *)(a1 + 880), &v5, (__int64)&unk_100763014, &v6) + 20) = 0;\n      v4 = (unsigned int)(v4 + 1);\n      result = sub_1002E757C(v2);\n    }\n    while ( (unsigned int)v4 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetSpawnChannelIndex from 0x10029f99c to 0x10029fa60 (196 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x10029f4c8\n; > sub_1003F823C @ 0x1003f86b4\n; > LevelEditorLayer::onPlaytest @ 0x100404934\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:12 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x10029f99c\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x10029f9a0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x10029f9a4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10029f9a8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x10029f9ac\nADD             X29, SP, #0x40                                         ; +0x14, 0x10029f9b0\nMOV             X19, X0                                                ; +0x18, 0x10029f9b4\nSTR             WZR, [X0,#0x33C]                                       ; +0x1c, 0x10029f9b8\nLDR             X0, [X0,#0xCF0]                                        ; +0x20, 0x10029f9bc\nBL              cocos2d__CCDictionary__allKeys                         ; +0x24, 0x10029f9c0\nMOV             X20, X0                                                ; +0x28, 0x10029f9c4\nBL              sub_1002E757C                                          ; +0x2c, 0x10029f9c8\nCBZ             W0, loc_10029FA48                                      ; +0x30, 0x10029f9cc\nMOV             W21, #0                                                ; +0x34, 0x10029f9d0\nMOV             X23, SP                                                ; +0x38, 0x10029f9d4\nADRL            X22, unk_100763014                                     ; +0x3c, 0x10029f9d8\nMOV             X0, X20                                                ; +0x44, 0x10029f9e0\nMOV             X1, X21                                                ; +0x48, 0x10029f9e4\nBL              sub_1002E75A0                                          ; +0x4c, 0x10029f9e8\nLDR             W8, [X0,#0x38]                                         ; +0x50, 0x10029f9ec\nSTR             W8, [SP,#0x40+var_40]                                  ; +0x54, 0x10029f9f0\nSTR             X23, [SP,#0x40+var_38]                                 ; +0x58, 0x10029f9f4\nADD             X0, X19, #0x348                                        ; +0x5c, 0x10029f9f8\nMOV             X1, SP                                                 ; +0x60, 0x10029f9fc\nADD             X3, SP, #0x40+var_38                                   ; +0x64, 0x10029fa00\nADD             X4, SP, #0x40+var_39                                   ; +0x68, 0x10029fa04\nMOV             X2, X22                                                ; +0x6c, 0x10029fa08\nBL              sub_10001DBA4                                          ; +0x70, 0x10029fa0c\nSTR             WZR, [X0,#0x14]                                        ; +0x74, 0x10029fa10\nSTR             X23, [SP,#0x40+var_38]                                 ; +0x78, 0x10029fa14\nADD             X0, X19, #0x370                                        ; +0x7c, 0x10029fa18\nMOV             X1, SP                                                 ; +0x80, 0x10029fa1c\nADD             X3, SP, #0x40+var_38                                   ; +0x84, 0x10029fa20\nADD             X4, SP, #0x40+var_39                                   ; +0x88, 0x10029fa24\nMOV             X2, X22                                                ; +0x8c, 0x10029fa28\nBL              sub_100019574                                          ; +0x90, 0x10029fa2c\nSTRB            WZR, [X0,#0x14]                                        ; +0x94, 0x10029fa30\nADD             W21, W21, #1                                           ; +0x98, 0x10029fa34\nMOV             X0, X20                                                ; +0x9c, 0x10029fa38\nBL              sub_1002E757C                                          ; +0xa0, 0x10029fa3c\nCMP             W21, W0                                                ; +0xa4, 0x10029fa40\nB.CC            loc_10029F9E0                                          ; +0xa8, 0x10029fa44\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xac, 0x10029fa48\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xb0, 0x10029fa4c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb4, 0x10029fa50\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xb8, 0x10029fa54\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xbc, 0x10029fa58\nRET                                                                    ; +0xc0, 0x10029fa5c", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x10029f4c8", "sub_1003F823C @ 0x1003f86b4", "LevelEditorLayer::onPlaytest @ 0x100404934"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}