{"type": "func", "start": 4296401872, "end": 4296402333, "name": "GJBaseGameLayer::updateParticles", "pseudocode": "// \n// GJBaseGameLayer::updateParticles from 0x10015e3d0 to 0x10015e59d (461 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::updateVisibility @ 0x1000b7d76\n// > LevelEditorLayer::updateVisibility @ 0x1000eb698\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJBaseGameLayer::updateParticles(GJBaseGameLayer *a1, float a2)\n{\n  unsigned int v2; // r15d\n  __int64 v3; // rax\n  __int64 v4; // r13\n  unsigned int v5; // r15d\n  __int64 v6; // r12\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  __int64 v10; // [rsp+8h] [rbp-58h] BYREF\n  __int128 v11; // [rsp+10h] [rbp-50h] BYREF\n  void *__p; // [rsp+20h] [rbp-40h]\n  float v13; // [rsp+30h] [rbp-30h]\n  _BYTE v14[41]; // [rsp+37h] [rbp-29h] BYREF\n\n  v13 = a2;\n  a1->m_particleCount = 0;\n  if ( (unsigned int)sub_100720070(a1->m_temporaryParticles) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007200C0(a1->m_temporaryParticles, v2);\n      if ( *(_BYTE *)(v3 + 551) == 1 )\n      {\n        LODWORD(v11) = *(_DWORD *)(v3 + 8);\n        sub_1000569A0(&a1->m_customParticlesUIDs.__table_.__bucket_list_.__ptr_.__value_, (int *)&v11);\n        sub_100720280(a1->m_temporaryParticles, v2);\n      }\n      else\n      {\n        v4 = v3;\n        a1->m_particleCount += (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1480LL))(v3);\n        *(_QWORD *)&a2 = LODWORD(v13);\n        (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 40LL))(v4, v13);\n        ++v2;\n      }\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_temporaryParticles) );\n  }\n  if ( (unsigned int)sub_100720070(a1->m_unclaimedParticles) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1007200C0(a1->m_unclaimedParticles, v5);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v6 + 896LL))(v6) )\n      {\n        ++v5;\n      }\n      else\n      {\n        v10 = v6 + 780;\n        v7 = sub_100172F30(&a1->m_particleCountToParticleString, v6 + 780, &unk_100816AE0, &v10, v14);\n        if ( (*(_BYTE *)(v7 + 24) & 1) != 0 )\n        {\n          sub_100006B70(&v11, *(const void **)(v7 + 40), *(_QWORD *)(v7 + 32), *(double *)&a2);\n        }\n        else\n        {\n          v8 = v7 + 24;\n          __p = *(void **)(v8 + 16);\n          *(_OWORD *)&a2 = *(_OWORD *)v8;\n          v11 = *(_OWORD *)v8;\n        }\n        v9 = cocos2d::CCDictionary::objectForKey_1(a1->m_customParticles, &v11);\n        if ( v9 )\n          sub_10071FCD0(v9, v6);\n        sub_100720280(a1->m_unclaimedParticles, v5);\n        if ( (v11 & 1) != 0 )\n          operator delete(__p);\n      }\n    }\n    while ( v5 < (unsigned int)sub_100720070(a1->m_unclaimedParticles) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::updateParticles from 0x10015e3d0 to 0x10015e59d (461 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::updateVisibility @ 0x1000b7d76\n; > LevelEditorLayer::updateVisibility @ 0x1000eb698\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10015e3d0\nmov     rbp, rsp                                                       ; +0x1, 0x10015e3d1\npush    r15                                                            ; +0x4, 0x10015e3d4\npush    r14                                                            ; +0x6, 0x10015e3d6\npush    r13                                                            ; +0x8, 0x10015e3d8\npush    r12                                                            ; +0xa, 0x10015e3da\npush    rbx                                                            ; +0xc, 0x10015e3dc\nsub     rsp, 38h                                                       ; +0xd, 0x10015e3dd\nmovss   [rbp+var_30], xmm0                                             ; +0x11, 0x10015e3e1\nmov     rbx, rdi                                                       ; +0x16, 0x10015e3e6\nmov     dword ptr [rdi+2F48h], 0                                       ; +0x19, 0x10015e3e9\nmov     rdi, [rdi+2FA0h]                                               ; +0x23, 0x10015e3f3\ncall    sub_100720070                                                  ; +0x2a, 0x10015e3fa\ntest    eax, eax                                                       ; +0x2f, 0x10015e3ff\njz      loc_10015E492                                                  ; +0x31, 0x10015e401\nlea     r14, [rbx+2FA8h]                                               ; +0x37, 0x10015e407\nxor     r15d, r15d                                                     ; +0x3e, 0x10015e40e\nlea     r12, [rbp+var_50]                                              ; +0x41, 0x10015e411\njmp     short loc_10015E451                                            ; +0x45, 0x10015e415\nalign 20h                                                              ; +0x47, 0x10015e417\nmov     eax, [rax+8]                                                   ; +0x50, 0x10015e420\nmov     dword ptr [rbp+var_50], eax                                    ; +0x53, 0x10015e423\nmov     rdi, r14                                                       ; +0x56, 0x10015e426\nmov     rsi, r12                                                       ; +0x59, 0x10015e429\ncall    sub_1000569A0                                                  ; +0x5c, 0x10015e42c\nmov     rdi, [rbx+2FA0h]                                               ; +0x61, 0x10015e431\nmov     esi, r15d                                                      ; +0x68, 0x10015e438\ncall    sub_100720280                                                  ; +0x6b, 0x10015e43b\nmov     rdi, [rbx+2FA0h]                                               ; +0x70, 0x10015e440\ncall    sub_100720070                                                  ; +0x77, 0x10015e447\ncmp     r15d, eax                                                      ; +0x7c, 0x10015e44c\njnb     short loc_10015E492                                            ; +0x7f, 0x10015e44f\nmov     rdi, [rbx+2FA0h]                                               ; +0x81, 0x10015e451\nmov     esi, r15d                                                      ; +0x88, 0x10015e458\ncall    sub_1007200C0                                                  ; +0x8b, 0x10015e45b\ncmp     byte ptr [rax+227h], 1                                         ; +0x90, 0x10015e460\njz      short loc_10015E420                                            ; +0x97, 0x10015e467\nmov     rcx, [rax]                                                     ; +0x99, 0x10015e469\nmov     rdi, rax                                                       ; +0x9c, 0x10015e46c\nmov     r13, rax                                                       ; +0x9f, 0x10015e46f\ncall    qword ptr [rcx+5C8h]                                           ; +0xa2, 0x10015e472\nadd     [rbx+2F48h], eax                                               ; +0xa8, 0x10015e478\nmov     rax, [r13+0]                                                   ; +0xae, 0x10015e47e\nmov     rdi, r13                                                       ; +0xb2, 0x10015e482\nmovss   xmm0, [rbp+var_30]                                             ; +0xb5, 0x10015e485\ncall    qword ptr [rax+28h]                                            ; +0xba, 0x10015e48a\ninc     r15d                                                           ; +0xbd, 0x10015e48d\njmp     short loc_10015E440                                            ; +0xc0, 0x10015e490\nmov     rdi, [rbx+2F68h]                                               ; +0xc2, 0x10015e492\ncall    sub_100720070                                                  ; +0xc9, 0x10015e499\ntest    eax, eax                                                       ; +0xce, 0x10015e49e\njz      loc_10015E58E                                                  ; +0xd0, 0x10015e4a0\nlea     r14, [rbx+2F70h]                                               ; +0xd6, 0x10015e4a6\nxor     r15d, r15d                                                     ; +0xdd, 0x10015e4ad\nlea     r13, [rbp+var_50]                                              ; +0xe0, 0x10015e4b0\njmp     short loc_10015E4D8                                            ; +0xe4, 0x10015e4b4\nalign 20h                                                              ; +0xe6, 0x10015e4b6\ninc     r15d                                                           ; +0xf0, 0x10015e4c0\nmov     rdi, [rbx+2F68h]                                               ; +0xf3, 0x10015e4c3\ncall    sub_100720070                                                  ; +0xfa, 0x10015e4ca\ncmp     r15d, eax                                                      ; +0xff, 0x10015e4cf\njnb     loc_10015E58E                                                  ; +0x102, 0x10015e4d2\nmov     rdi, [rbx+2F68h]                                               ; +0x108, 0x10015e4d8\nmov     esi, r15d                                                      ; +0x10f, 0x10015e4df\ncall    sub_1007200C0                                                  ; +0x112, 0x10015e4e2\nmov     r12, rax                                                       ; +0x117, 0x10015e4e7\nmov     rax, [rax]                                                     ; +0x11a, 0x10015e4ea\nmov     rdi, r12                                                       ; +0x11d, 0x10015e4ed\ncall    qword ptr [rax+380h]                                           ; +0x120, 0x10015e4f0\ntest    eax, eax                                                       ; +0x126, 0x10015e4f6\njnz     short loc_10015E4C0                                            ; +0x128, 0x10015e4f8\nlea     rsi, [r12+30Ch]                                                ; +0x12a, 0x10015e4fa\nmov     [rbp+var_58], rsi                                              ; +0x132, 0x10015e502\nmov     rdi, r14                                                       ; +0x136, 0x10015e506\nlea     rdx, unk_100816AE0                                             ; +0x139, 0x10015e509\nlea     rcx, [rbp+var_58]                                              ; +0x140, 0x10015e510\nlea     r8, [rbp+var_29]                                               ; +0x144, 0x10015e514\ncall    sub_100172F30                                                  ; +0x148, 0x10015e518\ntest    byte ptr [rax+18h], 1                                          ; +0x14d, 0x10015e51d\njnz     short loc_10015E538                                            ; +0x151, 0x10015e521\nadd     rax, 18h                                                       ; +0x153, 0x10015e523\nmov     rcx, [rax+10h]                                                 ; +0x157, 0x10015e527\nmov     [rbp+__p], rcx                                                 ; +0x15b, 0x10015e52b\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x15f, 0x10015e52f\nmovaps  [rbp+var_50], xmm0                                             ; +0x162, 0x10015e532\njmp     short loc_10015E548                                            ; +0x166, 0x10015e536\nmov     rdx, [rax+20h]                                                 ; +0x168, 0x10015e538\nmov     rsi, [rax+28h]                                                 ; +0x16c, 0x10015e53c\nmov     rdi, r13                                                       ; +0x170, 0x10015e540\ncall    sub_100006B70                                                  ; +0x173, 0x10015e543\nmov     rdi, [rbx+2F60h]                                               ; +0x178, 0x10015e548\nmov     rsi, r13                                                       ; +0x17f, 0x10015e54f\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x182, 0x10015e552\ntest    rax, rax                                                       ; +0x187, 0x10015e557\njz      short loc_10015E567                                            ; +0x18a, 0x10015e55a\nmov     rdi, rax                                                       ; +0x18c, 0x10015e55c\nmov     rsi, r12                                                       ; +0x18f, 0x10015e55f\ncall    sub_10071FCD0                                                  ; +0x192, 0x10015e562\nmov     rdi, [rbx+2F68h]                                               ; +0x197, 0x10015e567\nmov     esi, r15d                                                      ; +0x19e, 0x10015e56e\ncall    sub_100720280                                                  ; +0x1a1, 0x10015e571\ntest    byte ptr [rbp+var_50], 1                                       ; +0x1a6, 0x10015e576\njz      loc_10015E4C3                                                  ; +0x1aa, 0x10015e57a\nmov     rdi, [rbp+__p]; __p                                            ; +0x1b0, 0x10015e580\ncall    __ZdlPv; operator delete(void *)                               ; +0x1b4, 0x10015e584\njmp     loc_10015E4C3                                                  ; +0x1b9, 0x10015e589\nadd     rsp, 38h                                                       ; +0x1be, 0x10015e58e\npop     rbx                                                            ; +0x1c2, 0x10015e592\npop     r12                                                            ; +0x1c3, 0x10015e593\npop     r13                                                            ; +0x1c5, 0x10015e595\npop     r14                                                            ; +0x1c7, 0x10015e597\npop     r15                                                            ; +0x1c9, 0x10015e599\npop     rbp                                                            ; +0x1cb, 0x10015e59b\nretn                                                                   ; +0x1cc, 0x10015e59c", "xrefs": ["PlayLayer::updateVisibility @ 0x1000b7d76", "LevelEditorLayer::updateVisibility @ 0x1000eb698"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}