{"type": "func", "start": 4296249840, "end": 4296250036, "name": "GJBaseGameLayer::removeTemporaryParticles", "pseudocode": "// \n// GJBaseGameLayer::removeTemporaryParticles from 0x1001391f0 to 0x1001392b4 (196 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x10013863d\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::removeTemporaryParticles(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 result; // rax\n  unsigned int v3; // r15d\n  _DWORD *v4; // r13\n  int v5[11]; // [rsp+0h] [rbp-2Ch] BYREF\n\n  v5[0] = HIDWORD(v1);\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 12352));\n  if ( (_DWORD)result )\n  {\n    v3 = 0;\n    do\n    {\n      while ( 1 )\n      {\n        v4 = (_DWORD *)sub_1007FEFE0(*(_QWORD *)(a1 + 12352), v3);\n        if ( !(*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1576LL))(v4) )\n          break;\n        (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 536LL))(v4);\n        v5[0] = v4[2];\n        sub_10001C120((__int64 *)(a1 + 12360), v5);\n        sub_1007FF1A0(*(_QWORD *)(a1 + 12352), v3);\n        result = sub_1007FEF90(*(_QWORD *)(a1 + 12352));\n        if ( v3 >= (unsigned int)result )\n          return result;\n      }\n      ++v3;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 12352));\n    }\n    while ( v3 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeTemporaryParticles from 0x1001391f0 to 0x1001392b4 (196 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x10013863d\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, 0x1001391f0\nmov     rbp, rsp                                                       ; +0x1, 0x1001391f1\npush    r15                                                            ; +0x4, 0x1001391f4\npush    r14                                                            ; +0x6, 0x1001391f6\npush    r13                                                            ; +0x8, 0x1001391f8\npush    r12                                                            ; +0xa, 0x1001391fa\npush    rbx                                                            ; +0xc, 0x1001391fc\npush    rax                                                            ; +0xd, 0x1001391fd\nmov     rbx, rdi                                                       ; +0xe, 0x1001391fe\nmov     rdi, [rdi+3040h]                                               ; +0x11, 0x100139201\ncall    sub_1007FEF90                                                  ; +0x18, 0x100139208\ntest    eax, eax                                                       ; +0x1d, 0x10013920d\njz      loc_1001392A5                                                  ; +0x1f, 0x10013920f\nlea     r14, [rbx+3048h]                                               ; +0x25, 0x100139215\nxor     r15d, r15d                                                     ; +0x2c, 0x10013921c\nlea     r12, [rbp+var_2C]                                              ; +0x2f, 0x10013921f\njmp     short loc_10013926F                                            ; +0x33, 0x100139223\nalign 10h                                                              ; +0x35, 0x100139225\nmov     rax, [r13+0]                                                   ; +0x40, 0x100139230\nmov     rdi, r13                                                       ; +0x44, 0x100139234\ncall    qword ptr [rax+218h]                                           ; +0x47, 0x100139237\nmov     eax, [r13+8]                                                   ; +0x4d, 0x10013923d\nmov     [rbp+var_2C], eax                                              ; +0x51, 0x100139241\nmov     rdi, r14                                                       ; +0x54, 0x100139244\nmov     rsi, r12                                                       ; +0x57, 0x100139247\ncall    sub_10001C120                                                  ; +0x5a, 0x10013924a\nmov     rdi, [rbx+3040h]                                               ; +0x5f, 0x10013924f\nmov     esi, r15d                                                      ; +0x66, 0x100139256\ncall    sub_1007FF1A0                                                  ; +0x69, 0x100139259\nmov     rdi, [rbx+3040h]                                               ; +0x6e, 0x10013925e\ncall    sub_1007FEF90                                                  ; +0x75, 0x100139265\ncmp     r15d, eax                                                      ; +0x7a, 0x10013926a\njnb     short loc_1001392A5                                            ; +0x7d, 0x10013926d\nmov     rdi, [rbx+3040h]                                               ; +0x7f, 0x10013926f\nmov     esi, r15d                                                      ; +0x86, 0x100139276\ncall    sub_1007FEFE0                                                  ; +0x89, 0x100139279\nmov     r13, rax                                                       ; +0x8e, 0x10013927e\nmov     rax, [rax]                                                     ; +0x91, 0x100139281\nmov     rdi, r13                                                       ; +0x94, 0x100139284\ncall    qword ptr [rax+628h]                                           ; +0x97, 0x100139287\ntest    al, al                                                         ; +0x9d, 0x10013928d\njnz     short loc_100139230                                            ; +0x9f, 0x10013928f\ninc     r15d                                                           ; +0xa1, 0x100139291\nmov     rdi, [rbx+3040h]                                               ; +0xa4, 0x100139294\ncall    sub_1007FEF90                                                  ; +0xab, 0x10013929b\ncmp     r15d, eax                                                      ; +0xb0, 0x1001392a0\njb      short loc_10013926F                                            ; +0xb3, 0x1001392a3\nadd     rsp, 8                                                         ; +0xb5, 0x1001392a5\npop     rbx                                                            ; +0xb9, 0x1001392a9\npop     r12                                                            ; +0xba, 0x1001392aa\npop     r13                                                            ; +0xbc, 0x1001392ac\npop     r14                                                            ; +0xbe, 0x1001392ae\npop     r15                                                            ; +0xc0, 0x1001392b0\npop     rbp                                                            ; +0xc2, 0x1001392b2\nretn                                                                   ; +0xc3, 0x1001392b3", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x10013863d"], "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"}