{"type": "func", "start": 4296154400, "end": 4296154556, "name": "GJBaseGameLayer::resetStoppedAreaObjects", "pseudocode": "// \n// GJBaseGameLayer::resetStoppedAreaObjects from 0x100121d20 to 0x100121dbc (156 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c6c35\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:39 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetStoppedAreaObjects(__int64 a1)\n{\n  __int64 v1; // r15\n  __int64 result; // rax\n  __int64 v3; // r14\n\n  if ( *(int *)(a1 + 3564) > 0 )\n  {\n    v1 = 0;\n    do\n    {\n      v3 = *(_QWORD *)(*(_QWORD *)(a1 + 3400) + 8 * v1);\n      *(_BYTE *)(v3 + 840) = 1;\n      *(_WORD *)(v3 + 864) = 257;\n      if ( (unsigned __int8)GJBaseGameLayer::resetAreaObjectValues(a1, v3, 0) )\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1368LL))(a1, v3);\n      (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v3 + 1480LL))(v3, 0.0);\n      (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 1456LL))(v3, 1.0);\n      ++v1;\n      result = *(int *)(a1 + 3564);\n    }\n    while ( v1 < result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetStoppedAreaObjects from 0x100121d20 to 0x100121dbc (156 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c6c35\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:39 +0000\n; \ncmp     dword ptr [rdi+0DECh], 0                                       ; +0x0, 0x100121d20\njle     locret_100121DBB                                               ; +0x7, 0x100121d27\npush    rbp                                                            ; +0xd, 0x100121d2d\nmov     rbp, rsp                                                       ; +0xe, 0x100121d2e\npush    r15                                                            ; +0x11, 0x100121d31\npush    r14                                                            ; +0x13, 0x100121d33\npush    rbx                                                            ; +0x15, 0x100121d35\npush    rax                                                            ; +0x16, 0x100121d36\nmov     rbx, rdi                                                       ; +0x17, 0x100121d37\nxor     r15d, r15d                                                     ; +0x1a, 0x100121d3a\njmp     short loc_100121D72                                            ; +0x1d, 0x100121d3d\nalign 20h                                                              ; +0x1f, 0x100121d3f\nmov     rax, [r14]                                                     ; +0x20, 0x100121d40\nxorps   xmm0, xmm0                                                     ; +0x23, 0x100121d43\nmov     rdi, r14                                                       ; +0x26, 0x100121d46\ncall    qword ptr [rax+5C8h]                                           ; +0x29, 0x100121d49\nmov     rax, [r14]                                                     ; +0x2f, 0x100121d4f\nmov     rdi, r14                                                       ; +0x32, 0x100121d52\nmovss   xmm0, cs:alpha                                                 ; +0x35, 0x100121d55\ncall    qword ptr [rax+5B0h]                                           ; +0x3d, 0x100121d5d\ninc     r15                                                            ; +0x43, 0x100121d63\nmovsxd  rax, dword ptr [rbx+0DECh]                                     ; +0x46, 0x100121d66\ncmp     r15, rax                                                       ; +0x4d, 0x100121d6d\njge     short loc_100121DB1                                            ; +0x50, 0x100121d70\nmov     rax, [rbx+0D48h]                                               ; +0x52, 0x100121d72\nmov     r14, [rax+r15*8]                                               ; +0x59, 0x100121d79\nmov     byte ptr [r14+348h], 1                                         ; +0x5d, 0x100121d7d\nmov     word ptr [r14+360h], 101h                                      ; +0x65, 0x100121d85\nmov     rdi, rbx                                                       ; +0x6f, 0x100121d8f\nmov     rsi, r14                                                       ; +0x72, 0x100121d92\nxor     edx, edx                                                       ; +0x75, 0x100121d95\ncall    GJBaseGameLayer__resetAreaObjectValues                         ; +0x77, 0x100121d97\ntest    al, al                                                         ; +0x7c, 0x100121d9c\njz      short loc_100121D40                                            ; +0x7e, 0x100121d9e\nmov     rax, [rbx]                                                     ; +0x80, 0x100121da0\nmov     rdi, rbx                                                       ; +0x83, 0x100121da3\nmov     rsi, r14                                                       ; +0x86, 0x100121da6\ncall    qword ptr [rax+558h]                                           ; +0x89, 0x100121da9\njmp     short loc_100121D40                                            ; +0x8f, 0x100121daf\nadd     rsp, 8                                                         ; +0x91, 0x100121db1\npop     rbx                                                            ; +0x95, 0x100121db5\npop     r14                                                            ; +0x96, 0x100121db6\npop     r15                                                            ; +0x98, 0x100121db8\npop     rbp                                                            ; +0x9a, 0x100121dba\nretn                                                                   ; +0x9b, 0x100121dbb", "xrefs": ["LevelEditorLayer::onStopPlaytest @ 0x1000c6c35"], "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"}