{"type": "func", "start": 4301810784, "end": 4301810980, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x100686c60 to 0x100686d24 (196 bytes)\n// \n// 36 xrefs:\n// > EndPortalObject::init @ 0x100385e11\n// > GameObject::customSetup @ 0x10067be86\n// > GameObject::customSetup @ 0x10067d5db\n// > GameObject::customSetup @ 0x10067d962\n// > GameObject::customSetup @ 0x10067da2f\n// > GameObject::customSetup @ 0x10067db44\n// > GameObject::customSetup @ 0x10067dc36\n// > GameObject::customSetup @ 0x10067dd28\n// > GameObject::customSetup @ 0x10067ddea\n// > GameObject::customSetup @ 0x10067df1b\n// > GameObject::customSetup @ 0x10067dfb8\n// > GameObject::customSetup @ 0x10067e05c\n// > GameObject::customSetup @ 0x10067e103\n// > GameObject::customSetup @ 0x10067e19f\n// > GameObject::customSetup @ 0x10067e261\n// > GameObject::customSetup @ 0x10067e3a2\n// > GameObject::customSetup @ 0x10067e5ba\n// > GameObject::customSetup @ 0x10067e637\n// > GameObject::customSetup @ 0x10067e756\n// > GameObject::customSetup @ 0x10067e854\n// > GameObject::customSetup @ 0x10067e8f7\n// > GameObject::customSetup @ 0x10067e979\n// > GameObject::customSetup @ 0x10067ea14\n// > GameObject::customSetup @ 0x10067eb5d\n// > GameObject::customSetup @ 0x10067ec19\n// > GameObject::customSetup @ 0x10067ed5d\n// > GameObject::customSetup @ 0x10067ee02\n// > GameObject::customSetup @ 0x10067eeba\n// > GameObject::customSetup @ 0x10067efac\n// > GameObject::customSetup @ 0x10067f08d\n// > GameObject::customSetup @ 0x10067f163\n// > GameObject::commonInteractiveSetup @ 0x100686c29\n// > EnhancedGameObject::updateUserCoin @ 0x100693245\n// > EnhancedGameObject::customSetup @ 0x10069ee13\n// > EnhancedGameObject::customSetup @ 0x10069f150\n// > EnhancedGameObject::customSetup @ 0x10069f2ca\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:35:05 +0000\n// \n\n__int64 __fastcall GameObject::createAndAddParticle(__int64 a1, unsigned int a2, char *a3, unsigned int a4, int a5)\n{\n  __int64 v9; // rax\n  __int64 v10; // rax\n  __int128 v11; // [rsp+8h] [rbp-48h] BYREF\n  __int64 v12; // [rsp+18h] [rbp-38h]\n  __int64 Particle; // [rsp+20h] [rbp-30h]\n\n  if ( !*(_QWORD *)(GameManager::sharedState() + 544) || *(_BYTE *)(a1 + 1045) )\n    return 0;\n  v9 = GameManager::sharedState();\n  Particle = GJBaseGameLayer::createParticle(*(_QWORD *)(v9 + 544), a2, a3, a4, a5);\n  v10 = GameManager::sharedState();\n  GJBaseGameLayer::getParticleKey((size_t *)&v11, *(_QWORD *)(v10 + 544), a2, a3, a4, a5);\n  if ( (*(_BYTE *)(a1 + 784) & 1) != 0 )\n    operator delete(*(void **)(a1 + 800));\n  *(_QWORD *)(a1 + 800) = v12;\n  *(_OWORD *)(a1 + 784) = v11;\n  *(_BYTE *)(a1 + 808) = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x100686c60 to 0x100686d24 (196 bytes)\n; \n; 36 xrefs:\n; > EndPortalObject::init @ 0x100385e11\n; > GameObject::customSetup @ 0x10067be86\n; > GameObject::customSetup @ 0x10067d5db\n; > GameObject::customSetup @ 0x10067d962\n; > GameObject::customSetup @ 0x10067da2f\n; > GameObject::customSetup @ 0x10067db44\n; > GameObject::customSetup @ 0x10067dc36\n; > GameObject::customSetup @ 0x10067dd28\n; > GameObject::customSetup @ 0x10067ddea\n; > GameObject::customSetup @ 0x10067df1b\n; > GameObject::customSetup @ 0x10067dfb8\n; > GameObject::customSetup @ 0x10067e05c\n; > GameObject::customSetup @ 0x10067e103\n; > GameObject::customSetup @ 0x10067e19f\n; > GameObject::customSetup @ 0x10067e261\n; > GameObject::customSetup @ 0x10067e3a2\n; > GameObject::customSetup @ 0x10067e5ba\n; > GameObject::customSetup @ 0x10067e637\n; > GameObject::customSetup @ 0x10067e756\n; > GameObject::customSetup @ 0x10067e854\n; > GameObject::customSetup @ 0x10067e8f7\n; > GameObject::customSetup @ 0x10067e979\n; > GameObject::customSetup @ 0x10067ea14\n; > GameObject::customSetup @ 0x10067eb5d\n; > GameObject::customSetup @ 0x10067ec19\n; > GameObject::customSetup @ 0x10067ed5d\n; > GameObject::customSetup @ 0x10067ee02\n; > GameObject::customSetup @ 0x10067eeba\n; > GameObject::customSetup @ 0x10067efac\n; > GameObject::customSetup @ 0x10067f08d\n; > GameObject::customSetup @ 0x10067f163\n; > GameObject::commonInteractiveSetup @ 0x100686c29\n; > EnhancedGameObject::updateUserCoin @ 0x100693245\n; > EnhancedGameObject::customSetup @ 0x10069ee13\n; > EnhancedGameObject::customSetup @ 0x10069f150\n; > EnhancedGameObject::customSetup @ 0x10069f2ca\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:35:05 +0000\n; \npush    rbp                                                            ; +0x0, 0x100686c60\nmov     rbp, rsp                                                       ; +0x1, 0x100686c61\npush    r15                                                            ; +0x4, 0x100686c64\npush    r14                                                            ; +0x6, 0x100686c66\npush    r13                                                            ; +0x8, 0x100686c68\npush    r12                                                            ; +0xa, 0x100686c6a\npush    rbx                                                            ; +0xc, 0x100686c6c\nsub     rsp, 28h                                                       ; +0xd, 0x100686c6d\nmov     r14d, r8d                                                      ; +0x11, 0x100686c71\nmov     r15d, ecx                                                      ; +0x14, 0x100686c74\nmov     r12, rdx                                                       ; +0x17, 0x100686c77\nmov     r13d, esi                                                      ; +0x1a, 0x100686c7a\nmov     rbx, rdi                                                       ; +0x1d, 0x100686c7d\ncall    GameManager__sharedState                                       ; +0x20, 0x100686c80\ncmp     qword ptr [rax+220h], 0                                        ; +0x25, 0x100686c85\njz      short loc_100686C98                                            ; +0x2d, 0x100686c8d\ncmp     byte ptr [rbx+415h], 0                                         ; +0x2f, 0x100686c8f\njz      short loc_100686C9C                                            ; +0x36, 0x100686c96\nxor     eax, eax                                                       ; +0x38, 0x100686c98\njmp     short loc_100686D15                                            ; +0x3a, 0x100686c9a\ncall    GameManager__sharedState                                       ; +0x3c, 0x100686c9c\nmov     rdi, [rax+220h]                                                ; +0x41, 0x100686ca1\nmov     esi, r13d                                                      ; +0x48, 0x100686ca8\nmov     rdx, r12                                                       ; +0x4b, 0x100686cab\nmov     ecx, r15d                                                      ; +0x4e, 0x100686cae\nmov     r8d, r14d                                                      ; +0x51, 0x100686cb1\ncall    GJBaseGameLayer__createParticle                                ; +0x54, 0x100686cb4\nmov     [rbp+var_30], rax                                              ; +0x59, 0x100686cb9\ncall    GameManager__sharedState                                       ; +0x5d, 0x100686cbd\nmov     rsi, [rax+220h]                                                ; +0x62, 0x100686cc2\nlea     rdi, [rbp+var_48]                                              ; +0x69, 0x100686cc9\nmov     edx, r13d                                                      ; +0x6d, 0x100686ccd\nmov     rcx, r12                                                       ; +0x70, 0x100686cd0\nmov     r8d, r15d                                                      ; +0x73, 0x100686cd3\nmov     r9d, r14d                                                      ; +0x76, 0x100686cd6\ncall    GJBaseGameLayer__getParticleKey                                ; +0x79, 0x100686cd9\nlea     r14, [rbx+310h]                                                ; +0x7e, 0x100686cde\ntest    byte ptr [rbx+310h], 1                                         ; +0x85, 0x100686ce5\njz      short loc_100686CFA                                            ; +0x8c, 0x100686cec\nmov     rdi, [rbx+320h]; __p                                           ; +0x8e, 0x100686cee\ncall    __ZdlPv; operator delete(void *)                               ; +0x95, 0x100686cf5\nmov     rax, [rbp+var_38]                                              ; +0x9a, 0x100686cfa\nmov     [r14+10h], rax                                                 ; +0x9e, 0x100686cfe\nmovups  xmm0, [rbp+var_48]                                             ; +0xa2, 0x100686d02\nmovups  xmmword ptr [r14], xmm0                                        ; +0xa6, 0x100686d06\nmov     byte ptr [rbx+328h], 1                                         ; +0xaa, 0x100686d0a\nmov     rax, [rbp+var_30]                                              ; +0xb1, 0x100686d11\nadd     rsp, 28h                                                       ; +0xb5, 0x100686d15\npop     rbx                                                            ; +0xb9, 0x100686d19\npop     r12                                                            ; +0xba, 0x100686d1a\npop     r13                                                            ; +0xbc, 0x100686d1c\npop     r14                                                            ; +0xbe, 0x100686d1e\npop     r15                                                            ; +0xc0, 0x100686d20\npop     rbp                                                            ; +0xc2, 0x100686d22\nretn                                                                   ; +0xc3, 0x100686d23", "xrefs": ["EndPortalObject::init @ 0x100385e11", "GameObject::customSetup @ 0x10067be86", "GameObject::customSetup @ 0x10067d5db", "GameObject::customSetup @ 0x10067d962", "GameObject::customSetup @ 0x10067da2f", "GameObject::customSetup @ 0x10067db44", "GameObject::customSetup @ 0x10067dc36", "GameObject::customSetup @ 0x10067dd28", "GameObject::customSetup @ 0x10067ddea", "GameObject::customSetup @ 0x10067df1b", "GameObject::customSetup @ 0x10067dfb8", "GameObject::customSetup @ 0x10067e05c", "GameObject::customSetup @ 0x10067e103", "GameObject::customSetup @ 0x10067e19f", "GameObject::customSetup @ 0x10067e261", "GameObject::customSetup @ 0x10067e3a2", "GameObject::customSetup @ 0x10067e5ba", "GameObject::customSetup @ 0x10067e637", "GameObject::customSetup @ 0x10067e756", "GameObject::customSetup @ 0x10067e854", "GameObject::customSetup @ 0x10067e8f7", "GameObject::customSetup @ 0x10067e979", "GameObject::customSetup @ 0x10067ea14", "GameObject::customSetup @ 0x10067eb5d", "GameObject::customSetup @ 0x10067ec19", "GameObject::customSetup @ 0x10067ed5d", "GameObject::customSetup @ 0x10067ee02", "GameObject::customSetup @ 0x10067eeba", "GameObject::customSetup @ 0x10067efac", "GameObject::customSetup @ 0x10067f08d", "GameObject::customSetup @ 0x10067f163", "GameObject::commonInteractiveSetup @ 0x100686c29", "EnhancedGameObject::updateUserCoin @ 0x100693245", "EnhancedGameObject::customSetup @ 0x10069ee13", "EnhancedGameObject::customSetup @ 0x10069f150", "EnhancedGameObject::customSetup @ 0x10069f2ca"], "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"}