{"type": "func", "start": 5370383136, "end": 5370383432, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x140198b20 to 0x140198c48 (296 bytes)\n// \n// 41 xrefs:\n// > EndPortalObject::init @ 0x140137e10\n// > GameObject::customSetup @ 0x140191788\n// > GameObject::customSetup @ 0x140191817\n// > GameObject::customSetup @ 0x140191951\n// > GameObject::customSetup @ 0x14019199f\n// > GameObject::customSetup @ 0x140191a1c\n// > GameObject::customSetup @ 0x140191aab\n// > GameObject::customSetup @ 0x140191b36\n// > GameObject::customSetup @ 0x140191bfe\n// > GameObject::customSetup @ 0x140191ce8\n// > GameObject::customSetup @ 0x140191da6\n// > GameObject::customSetup @ 0x140191e64\n// > GameObject::customSetup @ 0x140191f22\n// > GameObject::customSetup @ 0x140191feb\n// > GameObject::customSetup @ 0x1401920c5\n// > GameObject::customSetup @ 0x14019218a\n// > GameObject::customSetup @ 0x140192778\n// > GameObject::customSetup @ 0x1401927db\n// > GameObject::customSetup @ 0x14019283e\n// > GameObject::customSetup @ 0x1401928a1\n// > GameObject::customSetup @ 0x140192904\n// > GameObject::customSetup @ 0x1401929c8\n// > GameObject::customSetup @ 0x140192a2b\n// > GameObject::customSetup @ 0x140192ad4\n// > GameObject::customSetup @ 0x140192b49\n// > GameObject::customSetup @ 0x140192c39\n// > GameObject::customSetup @ 0x140192d39\n// > GameObject::customSetup @ 0x140192e39\n// > GameObject::customSetup @ 0x140192f11\n// > GameObject::customSetup @ 0x14019301a\n// > GameObject::customSetup @ 0x140193102\n// > GameObject::customSetup @ 0x1401931da\n// > GameObject::customSetup @ 0x1401932b2\n// > GameObject::customSetup @ 0x14019338a\n// > GameObject::customSetup @ 0x1401938b8\n// > GameObject::commonInteractiveSetup @ 0x140196e08\n// > EnhancedGameObject::customSetup @ 0x1401a53af\n// > EnhancedGameObject::customSetup @ 0x1401a54e1\n// > EnhancedGameObject::customSetup @ 0x1401a58d7\n// > EnhancedGameObject::updateUserCoin @ 0x1401a698c\n// > <???> @ 0x1406cbcc4\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// Hidden C++ exception states: #wind=3\ncocos2d::CCParticleSystemQuad *GameObject::createAndAddParticle(\n        GameObject *a1,\n        int a2,\n        const char *a3,\n        int a4,\n        cocos2d::tCCPositionType a5)\n{\n  __int64 v9; // rcx\n  GJBaseGameLayer *v10; // rcx\n  int v11; // ecx\n  cocos2d::CCParticleSystemQuad *Particle; // r15\n  __int64 ParticleKey; // rax\n  void *v15; // [rsp+30h] [rbp-68h]\n  void *v16; // [rsp+30h] [rbp-68h]\n  _BYTE v17[32]; // [rsp+38h] [rbp-60h] BYREF\n\n  v9 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v15 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v9 = qword_1406C2ED8;\n  }\n  v10 = *(GJBaseGameLayer **)(v9 + 520);\n  if ( !v10 || a1->m_hasNoParticles )\n    return nullptr;\n  Particle = GJBaseGameLayer::createParticle(v10, a2, a3, a4, a5);\n  if ( !qword_1406C2ED8 )\n  {\n    v16 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v16);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n  }\n  ParticleKey = GJBaseGameLayer::getParticleKey(v11, (unsigned int)v17, a2, (_DWORD)a3, a4, a5);\n  sub_140051590((__int64)&a1->m_particleString, ParticleKey);\n  sub_14003A830((__int64)v17);\n  a1->m_hasParticles = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x140198b20 to 0x140198c48 (296 bytes)\n; \n; 41 xrefs:\n; > EndPortalObject::init @ 0x140137e10\n; > GameObject::customSetup @ 0x140191788\n; > GameObject::customSetup @ 0x140191817\n; > GameObject::customSetup @ 0x140191951\n; > GameObject::customSetup @ 0x14019199f\n; > GameObject::customSetup @ 0x140191a1c\n; > GameObject::customSetup @ 0x140191aab\n; > GameObject::customSetup @ 0x140191b36\n; > GameObject::customSetup @ 0x140191bfe\n; > GameObject::customSetup @ 0x140191ce8\n; > GameObject::customSetup @ 0x140191da6\n; > GameObject::customSetup @ 0x140191e64\n; > GameObject::customSetup @ 0x140191f22\n; > GameObject::customSetup @ 0x140191feb\n; > GameObject::customSetup @ 0x1401920c5\n; > GameObject::customSetup @ 0x14019218a\n; > GameObject::customSetup @ 0x140192778\n; > GameObject::customSetup @ 0x1401927db\n; > GameObject::customSetup @ 0x14019283e\n; > GameObject::customSetup @ 0x1401928a1\n; > GameObject::customSetup @ 0x140192904\n; > GameObject::customSetup @ 0x1401929c8\n; > GameObject::customSetup @ 0x140192a2b\n; > GameObject::customSetup @ 0x140192ad4\n; > GameObject::customSetup @ 0x140192b49\n; > GameObject::customSetup @ 0x140192c39\n; > GameObject::customSetup @ 0x140192d39\n; > GameObject::customSetup @ 0x140192e39\n; > GameObject::customSetup @ 0x140192f11\n; > GameObject::customSetup @ 0x14019301a\n; > GameObject::customSetup @ 0x140193102\n; > GameObject::customSetup @ 0x1401931da\n; > GameObject::customSetup @ 0x1401932b2\n; > GameObject::customSetup @ 0x14019338a\n; > GameObject::customSetup @ 0x1401938b8\n; > GameObject::commonInteractiveSetup @ 0x140196e08\n; > EnhancedGameObject::customSetup @ 0x1401a53af\n; > EnhancedGameObject::customSetup @ 0x1401a54e1\n; > EnhancedGameObject::customSetup @ 0x1401a58d7\n; > EnhancedGameObject::updateUserCoin @ 0x1401a698c\n; > <???> @ 0x1406cbcc4\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    rbx                                                            ; +0x0, 0x140198b20\npush    rbp                                                            ; +0x2, 0x140198b22\npush    rsi                                                            ; +0x3, 0x140198b23\npush    rdi                                                            ; +0x4, 0x140198b24\npush    r14                                                            ; +0x5, 0x140198b25\npush    r15                                                            ; +0x7, 0x140198b27\nsub     rsp, 68h                                                       ; +0x9, 0x140198b29\nmov     rax, cs:__security_cookie                                      ; +0xd, 0x140198b2d\nxor     rax, rsp                                                       ; +0x14, 0x140198b34\nmov     [rsp+98h+var_40], rax                                          ; +0x17, 0x140198b37\nmov     ebp, r9d                                                       ; +0x1c, 0x140198b3c\nmov     rsi, r8                                                        ; +0x1f, 0x140198b3f\nmov     edi, edx                                                       ; +0x22, 0x140198b42\nmov     rbx, rcx                                                       ; +0x24, 0x140198b44\nmov     r14d, [rsp+98h+arg_20]                                         ; +0x27, 0x140198b47\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2f, 0x140198b4f\ntest    rcx, rcx                                                       ; +0x36, 0x140198b56\njnz     short loc_140198B8A                                            ; +0x39, 0x140198b59\nmov     ecx, 668h; Size                                                ; +0x3b, 0x140198b5b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x40, 0x140198b60\nmov     [rsp+98h+var_68], rax                                          ; +0x45, 0x140198b65\nmov     rcx, rax                                                       ; +0x4a, 0x140198b6a\ncall    sub_14017AB00                                                  ; +0x4d, 0x140198b6d\nnop                                                                    ; +0x52, 0x140198b72\nmov     cs:qword_1406C2ED8, rax                                        ; +0x53, 0x140198b73\nmov     rdx, [rax]                                                     ; +0x5a, 0x140198b7a\nmov     rcx, rax                                                       ; +0x5d, 0x140198b7d\ncall    qword ptr [rdx+48h]                                            ; +0x60, 0x140198b80\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x63, 0x140198b83\nmov     rcx, [rcx+208h]                                                ; +0x6a, 0x140198b8a\ntest    rcx, rcx                                                       ; +0x71, 0x140198b91\njz      loc_140198C2C                                                  ; +0x74, 0x140198b94\ncmp     byte ptr [rbx+41Dh], 0                                         ; +0x7a, 0x140198b9a\njnz     loc_140198C2C                                                  ; +0x81, 0x140198ba1\nmov     [rsp+98h+var_78], r14d                                         ; +0x87, 0x140198ba7\nmov     r9d, ebp                                                       ; +0x8c, 0x140198bac\nmov     r8, rsi                                                        ; +0x8f, 0x140198baf\nmov     edx, edi                                                       ; +0x92, 0x140198bb2\ncall    GJBaseGameLayer__createParticle                                ; +0x94, 0x140198bb4\nmov     r15, rax                                                       ; +0x99, 0x140198bb9\ncmp     cs:qword_1406C2ED8, 0                                          ; +0x9c, 0x140198bbc\njnz     short loc_140198BEE                                            ; +0xa4, 0x140198bc4\nmov     ecx, 668h; Size                                                ; +0xa6, 0x140198bc6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xab, 0x140198bcb\nmov     [rsp+98h+var_68], rax                                          ; +0xb0, 0x140198bd0\nmov     rcx, rax                                                       ; +0xb5, 0x140198bd5\ncall    sub_14017AB00                                                  ; +0xb8, 0x140198bd8\nnop                                                                    ; +0xbd, 0x140198bdd\nmov     cs:qword_1406C2ED8, rax                                        ; +0xbe, 0x140198bde\nmov     rdx, [rax]                                                     ; +0xc5, 0x140198be5\nmov     rcx, rax                                                       ; +0xc8, 0x140198be8\ncall    qword ptr [rdx+48h]                                            ; +0xcb, 0x140198beb\nmov     [rsp+98h+var_70], r14d                                         ; +0xce, 0x140198bee\nmov     [rsp+98h+var_78], ebp                                          ; +0xd3, 0x140198bf3\nmov     r9, rsi                                                        ; +0xd7, 0x140198bf7\nmov     r8d, edi                                                       ; +0xda, 0x140198bfa\nlea     rdx, [rsp+98h+var_60]                                          ; +0xdd, 0x140198bfd\ncall    GJBaseGameLayer__getParticleKey                                ; +0xe2, 0x140198c02\nlea     rcx, [rbx+310h]                                                ; +0xe7, 0x140198c07\nmov     rdx, rax                                                       ; +0xee, 0x140198c0e\ncall    sub_140051590                                                  ; +0xf1, 0x140198c11\nlea     rcx, [rsp+98h+var_60]                                          ; +0xf6, 0x140198c16\ncall    sub_14003A830                                                  ; +0xfb, 0x140198c1b\nmov     byte ptr [rbx+330h], 1                                         ; +0x100, 0x140198c20\nmov     rax, r15                                                       ; +0x107, 0x140198c27\njmp     short loc_140198C2E                                            ; +0x10a, 0x140198c2a\nxor     eax, eax                                                       ; +0x10c, 0x140198c2c\nmov     rcx, [rsp+98h+var_40]                                          ; +0x10e, 0x140198c2e\nxor     rcx, rsp; StackCookie                                          ; +0x113, 0x140198c33\ncall    __security_check_cookie                                        ; +0x116, 0x140198c36\nadd     rsp, 68h                                                       ; +0x11b, 0x140198c3b\npop     r15                                                            ; +0x11f, 0x140198c3f\npop     r14                                                            ; +0x121, 0x140198c41\npop     rdi                                                            ; +0x123, 0x140198c43\npop     rsi                                                            ; +0x124, 0x140198c44\npop     rbp                                                            ; +0x125, 0x140198c45\npop     rbx                                                            ; +0x126, 0x140198c46\nretn                                                                   ; +0x127, 0x140198c47", "xrefs": ["EndPortalObject::init @ 0x140137e10", "GameObject::customSetup @ 0x140191788", "GameObject::customSetup @ 0x140191817", "GameObject::customSetup @ 0x140191951", "GameObject::customSetup @ 0x14019199f", "GameObject::customSetup @ 0x140191a1c", "GameObject::customSetup @ 0x140191aab", "GameObject::customSetup @ 0x140191b36", "GameObject::customSetup @ 0x140191bfe", "GameObject::customSetup @ 0x140191ce8", "GameObject::customSetup @ 0x140191da6", "GameObject::customSetup @ 0x140191e64", "GameObject::customSetup @ 0x140191f22", "GameObject::customSetup @ 0x140191feb", "GameObject::customSetup @ 0x1401920c5", "GameObject::customSetup @ 0x14019218a", "GameObject::customSetup @ 0x140192778", "GameObject::customSetup @ 0x1401927db", "GameObject::customSetup @ 0x14019283e", "GameObject::customSetup @ 0x1401928a1", "GameObject::customSetup @ 0x140192904", "GameObject::customSetup @ 0x1401929c8", "GameObject::customSetup @ 0x140192a2b", "GameObject::customSetup @ 0x140192ad4", "GameObject::customSetup @ 0x140192b49", "GameObject::customSetup @ 0x140192c39", "GameObject::customSetup @ 0x140192d39", "GameObject::customSetup @ 0x140192e39", "GameObject::customSetup @ 0x140192f11", "GameObject::customSetup @ 0x14019301a", "GameObject::customSetup @ 0x140193102", "GameObject::customSetup @ 0x1401931da", "GameObject::customSetup @ 0x1401932b2", "GameObject::customSetup @ 0x14019338a", "GameObject::customSetup @ 0x1401938b8", "GameObject::commonInteractiveSetup @ 0x140196e08", "EnhancedGameObject::customSetup @ 0x1401a53af", "EnhancedGameObject::customSetup @ 0x1401a54e1", "EnhancedGameObject::customSetup @ 0x1401a58d7", "EnhancedGameObject::updateUserCoin @ 0x1401a698c", "<???> @ 0x1406cbcc4"], "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"}