{"type": "func", "start": 4297717484, "end": 4297717652, "name": "GJBaseGameLayer::removeTemporaryParticles", "pseudocode": "// \n// GJBaseGameLayer::removeTemporaryParticles from 0x10029f6ec to 0x10029f794 (168 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::resetLevelVariables @ 0x10029f084\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::removeTemporaryParticles(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x20\n  _DWORD *v4; // x21\n  int v5; // [xsp+Ch] [xbp-24h] BYREF\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 12352));\n  if ( (_DWORD)result )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = (_DWORD *)sub_1002E75A0(*(_QWORD *)(a1 + 12352), v3);\n      if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 1576LL))(v4) )\n      {\n        (*(void (__fastcall **)(_DWORD *))(*(_QWORD *)v4 + 536LL))(v4);\n        v5 = v4[2];\n        sub_10001BB58((_QWORD *)(a1 + 12360), &v5);\n        sub_1002E767C(*(_QWORD *)(a1 + 12352), v3);\n      }\n      else\n      {\n        v3 = (unsigned int)(v3 + 1);\n      }\n      result = sub_1002E757C(*(_QWORD *)(a1 + 12352));\n    }\n    while ( (unsigned int)v3 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeTemporaryParticles from 0x10029f6ec to 0x10029f794 (168 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::resetLevelVariables @ 0x10029f084\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, #0x40                                          ; +0x0, 0x10029f6ec\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10029f6f0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10029f6f4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10029f6f8\nADD             X29, SP, #0x30                                         ; +0x10, 0x10029f6fc\nMOV             X19, X0                                                ; +0x14, 0x10029f700\nLDR             X0, [X0,#0x3040]                                       ; +0x18, 0x10029f704\nBL              sub_1002E757C                                          ; +0x1c, 0x10029f708\nCBZ             W0, loc_10029F780                                      ; +0x20, 0x10029f70c\nMOV             W20, #0                                                ; +0x24, 0x10029f710\nMOV             W22, #0x3048                                           ; +0x28, 0x10029f714\nLDR             X0, [X19,#0x3040]                                      ; +0x2c, 0x10029f718\nMOV             X1, X20                                                ; +0x30, 0x10029f71c\nBL              sub_1002E75A0                                          ; +0x34, 0x10029f720\nMOV             X21, X0                                                ; +0x38, 0x10029f724\nLDR             X8, [X0]                                               ; +0x3c, 0x10029f728\nLDR             X8, [X8,#0x628]                                        ; +0x40, 0x10029f72c\nBLR             X8                                                     ; +0x44, 0x10029f730\nCBZ             W0, loc_10029F76C                                      ; +0x48, 0x10029f734\nLDR             X8, [X21]                                              ; +0x4c, 0x10029f738\nLDR             X8, [X8,#0x218]                                        ; +0x50, 0x10029f73c\nMOV             X0, X21                                                ; +0x54, 0x10029f740\nBLR             X8                                                     ; +0x58, 0x10029f744\nLDR             W8, [X21,#8]                                           ; +0x5c, 0x10029f748\nSTR             W8, [SP,#0x30+var_24]                                  ; +0x60, 0x10029f74c\nADD             X0, X19, X22                                           ; +0x64, 0x10029f750\nADD             X1, SP, #0x30+var_24                                   ; +0x68, 0x10029f754\nBL              sub_10001BB58                                          ; +0x6c, 0x10029f758\nLDR             X0, [X19,#0x3040]                                      ; +0x70, 0x10029f75c\nMOV             X1, X20                                                ; +0x74, 0x10029f760\nBL              sub_1002E767C                                          ; +0x78, 0x10029f764\nB               loc_10029F770                                          ; +0x7c, 0x10029f768\nADD             W20, W20, #1                                           ; +0x80, 0x10029f76c\nLDR             X0, [X19,#0x3040]                                      ; +0x84, 0x10029f770\nBL              sub_1002E757C                                          ; +0x88, 0x10029f774\nCMP             W20, W0                                                ; +0x8c, 0x10029f778\nB.CC            loc_10029F718                                          ; +0x90, 0x10029f77c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x94, 0x10029f780\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x98, 0x10029f784\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x9c, 0x10029f788\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa0, 0x10029f78c\nRET                                                                    ; +0xa4, 0x10029f790", "xrefs": ["GJBaseGameLayer::resetLevelVariables @ 0x10029f084"], "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"}