{"type": "func", "start": 4296250944, "end": 4296251172, "name": "GJBaseGameLayer::resetSpawnChannelIndex", "pseudocode": "// \n// GJBaseGameLayer::resetSpawnChannelIndex from 0x100139640 to 0x100139724 (228 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::updateGameObjects @ 0x1000ad196\n// > LevelEditorLayer::onPlaytest @ 0x1000c5e81\n// > GJBaseGameLayer::resetLevelVariables @ 0x100138e6f\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:52 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetSpawnChannelIndex(__int64 a1, __m128 a2)\n{\n  __int64 v2; // r14\n  __int64 result; // rax\n  unsigned int v4; // r12d\n  int v5; // [rsp+14h] [rbp-3Ch] BYREF\n  int *v6; // [rsp+18h] [rbp-38h] BYREF\n  _BYTE v7[41]; // [rsp+27h] [rbp-29h] BYREF\n\n  *(_DWORD *)(a1 + 828) = 0;\n  v2 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 3312));\n  result = sub_1007FEF90(v2);\n  if ( (_DWORD)result )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = *(_DWORD *)(sub_1007FEFE0(v2, v4) + 56);\n      v6 = &v5;\n      *((_DWORD *)sub_10001C2C0((float *)(a1 + 840), &v5, a2, (__int64)&unk_100A04ED8, &v6) + 5) = 0;\n      v6 = &v5;\n      *(_BYTE *)(sub_100147B80(a1 + 880, &v5, &unk_100A04ED8, &v6, v7) + 20) = 0;\n      ++v4;\n      result = sub_1007FEF90(v2);\n    }\n    while ( v4 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetSpawnChannelIndex from 0x100139640 to 0x100139724 (228 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::updateGameObjects @ 0x1000ad196\n; > LevelEditorLayer::onPlaytest @ 0x1000c5e81\n; > GJBaseGameLayer::resetLevelVariables @ 0x100138e6f\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100139640\nmov     rbp, rsp                                                       ; +0x1, 0x100139641\npush    r15                                                            ; +0x4, 0x100139644\npush    r14                                                            ; +0x6, 0x100139646\npush    r13                                                            ; +0x8, 0x100139648\npush    r12                                                            ; +0xa, 0x10013964a\npush    rbx                                                            ; +0xc, 0x10013964c\nsub     rsp, 28h                                                       ; +0xd, 0x10013964d\nmov     dword ptr [rdi+33Ch], 0                                        ; +0x11, 0x100139651\nmov     rbx, rdi                                                       ; +0x1b, 0x10013965b\nmov     rdi, [rdi+0CF0h]                                               ; +0x1e, 0x10013965e\ncall    cocos2d__CCDictionary__allKeys                                 ; +0x25, 0x100139665\nmov     r14, rax                                                       ; +0x2a, 0x10013966a\nmov     rdi, rax                                                       ; +0x2d, 0x10013966d\ncall    sub_1007FEF90                                                  ; +0x30, 0x100139670\ntest    eax, eax                                                       ; +0x35, 0x100139675\njz      loc_100139715                                                  ; +0x37, 0x100139677\nlea     rax, [rbx+348h]                                                ; +0x3d, 0x10013967d\nmov     [rbp+var_48], rax                                              ; +0x44, 0x100139684\nadd     rbx, 370h                                                      ; +0x48, 0x100139688\nmov     [rbp+var_50], rbx                                              ; +0x4f, 0x10013968f\nxor     r12d, r12d                                                     ; +0x53, 0x100139693\nnop     word ptr [rax+rax+00000000h]                                   ; +0x56, 0x100139696\nmov     rdi, r14                                                       ; +0x60, 0x1001396a0\nmov     esi, r12d                                                      ; +0x63, 0x1001396a3\ncall    sub_1007FEFE0                                                  ; +0x66, 0x1001396a6\nmov     eax, [rax+38h]                                                 ; +0x6b, 0x1001396ab\nmov     [rbp+var_3C], eax                                              ; +0x6e, 0x1001396ae\nlea     r13, [rbp+var_3C]                                              ; +0x71, 0x1001396b1\nmov     [rbp+var_38], r13                                              ; +0x75, 0x1001396b5\nmov     rdi, [rbp+var_48]                                              ; +0x79, 0x1001396b9\nmov     rsi, r13                                                       ; +0x7d, 0x1001396bd\nlea     r15, unk_100A04ED8                                             ; +0x80, 0x1001396c0\nmov     rdx, r15                                                       ; +0x87, 0x1001396c7\nlea     rcx, [rbp+var_38]                                              ; +0x8a, 0x1001396ca\nmov     rbx, r14                                                       ; +0x8e, 0x1001396ce\nlea     r14, [rbp+var_29]                                              ; +0x91, 0x1001396d1\nmov     r8, r14                                                        ; +0x95, 0x1001396d5\ncall    sub_10001C2C0                                                  ; +0x98, 0x1001396d8\nmov     dword ptr [rax+14h], 0                                         ; +0x9d, 0x1001396dd\nmov     [rbp+var_38], r13                                              ; +0xa4, 0x1001396e4\nmov     rdi, [rbp+var_50]                                              ; +0xa8, 0x1001396e8\nmov     rsi, r13                                                       ; +0xac, 0x1001396ec\nmov     rdx, r15                                                       ; +0xaf, 0x1001396ef\nlea     rcx, [rbp+var_38]                                              ; +0xb2, 0x1001396f2\nmov     r8, r14                                                        ; +0xb6, 0x1001396f6\nmov     r14, rbx                                                       ; +0xb9, 0x1001396f9\ncall    sub_100147B80                                                  ; +0xbc, 0x1001396fc\nmov     byte ptr [rax+14h], 0                                          ; +0xc1, 0x100139701\ninc     r12d                                                           ; +0xc5, 0x100139705\nmov     rdi, rbx                                                       ; +0xc8, 0x100139708\ncall    sub_1007FEF90                                                  ; +0xcb, 0x10013970b\ncmp     r12d, eax                                                      ; +0xd0, 0x100139710\njb      short loc_1001396A0                                            ; +0xd3, 0x100139713\nadd     rsp, 28h                                                       ; +0xd5, 0x100139715\npop     rbx                                                            ; +0xd9, 0x100139719\npop     r12                                                            ; +0xda, 0x10013971a\npop     r13                                                            ; +0xdc, 0x10013971c\npop     r14                                                            ; +0xde, 0x10013971e\npop     r15                                                            ; +0xe0, 0x100139720\npop     rbp                                                            ; +0xe2, 0x100139722\nretn                                                                   ; +0xe3, 0x100139723", "xrefs": ["LevelEditorLayer::updateGameObjects @ 0x1000ad196", "LevelEditorLayer::onPlaytest @ 0x1000c5e81", "GJBaseGameLayer::resetLevelVariables @ 0x100138e6f"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}