{"type": "func", "start": 4298074476, "end": 4298074684, "name": "GameObject::createAndAddParticle", "pseudocode": "// \n// GameObject::createAndAddParticle from 0x1002f696c to 0x1002f6a3c (208 bytes)\n// \n// 35 xrefs:\n// > GameObject::customSetup @ 0x1002f4648\n// > GameObject::customSetup @ 0x1002f5448\n// > GameObject::customSetup @ 0x1002f5500\n// > GameObject::customSetup @ 0x1002f560c\n// > GameObject::customSetup @ 0x1002f56c8\n// > GameObject::customSetup @ 0x1002f5768\n// > GameObject::customSetup @ 0x1002f57f4\n// > GameObject::customSetup @ 0x1002f5918\n// > GameObject::customSetup @ 0x1002f59a0\n// > GameObject::customSetup @ 0x1002f5a30\n// > GameObject::customSetup @ 0x1002f5ac0\n// > GameObject::customSetup @ 0x1002f5b4c\n// > GameObject::customSetup @ 0x1002f5bd8\n// > GameObject::customSetup @ 0x1002f5cdc\n// > GameObject::customSetup @ 0x1002f5e9c\n// > GameObject::customSetup @ 0x1002f5f10\n// > GameObject::customSetup @ 0x1002f5ff0\n// > GameObject::customSetup @ 0x1002f60f0\n// > GameObject::customSetup @ 0x1002f6184\n// > GameObject::customSetup @ 0x1002f61f0\n// > GameObject::customSetup @ 0x1002f6260\n// > GameObject::customSetup @ 0x1002f6350\n// > GameObject::customSetup @ 0x1002f63e4\n// > GameObject::customSetup @ 0x1002f64fc\n// > GameObject::customSetup @ 0x1002f6588\n// > GameObject::customSetup @ 0x1002f6608\n// > GameObject::customSetup @ 0x1002f66d4\n// > GameObject::customSetup @ 0x1002f6790\n// > GameObject::customSetup @ 0x1002f6850\n// > sub_1002F68BC @ 0x1002f693c\n// > EnhancedGameObject::updateUserCoin @ 0x1002fc858\n// > EnhancedGameObject::customSetup @ 0x1003016cc\n// > EnhancedGameObject::customSetup @ 0x100301948\n// > EnhancedGameObject::customSetup @ 0x1003019f0\n// > EndPortalObject::init @ 0x10047f100\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:03:00 +0000\n// \n\n__int64 __fastcall GameObject::createAndAddParticle(__int64 a1, __int64 a2, char *a3, __int64 a4, __int64 a5)\n{\n  __int64 v10; // x0\n  __int64 Particle; // x21\n  __int64 v12; // x0\n  void **v13; // x20\n  __int128 v15; // [xsp+8h] [xbp-48h] BYREF\n  __int64 v16; // [xsp+18h] [xbp-38h]\n\n  v10 = GameManager::sharedState(a1);\n  if ( !*(_QWORD *)(v10 + 544) || (*(_BYTE *)(a1 + 1045) & 1) != 0 )\n    return 0;\n  v12 = GameManager::sharedState(v10);\n  Particle = GJBaseGameLayer::createParticle(*(_QWORD *)(v12 + 544), a2, a3, a4, a5);\n  GameManager::sharedState(Particle);\n  GJBaseGameLayer::getParticleKey(a2, a3, a4, a5, &v15);\n  v13 = (void **)(a1 + 784);\n  if ( *(char *)(a1 + 807) < 0 )\n    operator delete(*v13);\n  *(_OWORD *)v13 = v15;\n  *(_QWORD *)(a1 + 800) = v16;\n  *(_BYTE *)(a1 + 808) = 1;\n  return Particle;\n}", "assembly": "; \n; GameObject::createAndAddParticle from 0x1002f696c to 0x1002f6a3c (208 bytes)\n; \n; 35 xrefs:\n; > GameObject::customSetup @ 0x1002f4648\n; > GameObject::customSetup @ 0x1002f5448\n; > GameObject::customSetup @ 0x1002f5500\n; > GameObject::customSetup @ 0x1002f560c\n; > GameObject::customSetup @ 0x1002f56c8\n; > GameObject::customSetup @ 0x1002f5768\n; > GameObject::customSetup @ 0x1002f57f4\n; > GameObject::customSetup @ 0x1002f5918\n; > GameObject::customSetup @ 0x1002f59a0\n; > GameObject::customSetup @ 0x1002f5a30\n; > GameObject::customSetup @ 0x1002f5ac0\n; > GameObject::customSetup @ 0x1002f5b4c\n; > GameObject::customSetup @ 0x1002f5bd8\n; > GameObject::customSetup @ 0x1002f5cdc\n; > GameObject::customSetup @ 0x1002f5e9c\n; > GameObject::customSetup @ 0x1002f5f10\n; > GameObject::customSetup @ 0x1002f5ff0\n; > GameObject::customSetup @ 0x1002f60f0\n; > GameObject::customSetup @ 0x1002f6184\n; > GameObject::customSetup @ 0x1002f61f0\n; > GameObject::customSetup @ 0x1002f6260\n; > GameObject::customSetup @ 0x1002f6350\n; > GameObject::customSetup @ 0x1002f63e4\n; > GameObject::customSetup @ 0x1002f64fc\n; > GameObject::customSetup @ 0x1002f6588\n; > GameObject::customSetup @ 0x1002f6608\n; > GameObject::customSetup @ 0x1002f66d4\n; > GameObject::customSetup @ 0x1002f6790\n; > GameObject::customSetup @ 0x1002f6850\n; > sub_1002F68BC @ 0x1002f693c\n; > EnhancedGameObject::updateUserCoin @ 0x1002fc858\n; > EnhancedGameObject::customSetup @ 0x1003016cc\n; > EnhancedGameObject::customSetup @ 0x100301948\n; > EnhancedGameObject::customSetup @ 0x1003019f0\n; > EndPortalObject::init @ 0x10047f100\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:03:00 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1002f696c\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x1002f6970\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x1002f6974\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x1002f6978\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x1002f697c\nADD             X29, SP, #0x50                                         ; +0x14, 0x1002f6980\nMOV             X20, X4                                                ; +0x18, 0x1002f6984\nMOV             X22, X3                                                ; +0x1c, 0x1002f6988\nMOV             X23, X2                                                ; +0x20, 0x1002f698c\nMOV             X24, X1                                                ; +0x24, 0x1002f6990\nMOV             X19, X0                                                ; +0x28, 0x1002f6994\nBL              GameManager__sharedState                               ; +0x2c, 0x1002f6998\nLDR             X8, [X0,#0x220]                                        ; +0x30, 0x1002f699c\nCBZ             X8, loc_1002F69AC                                      ; +0x34, 0x1002f69a0\nLDRB            W8, [X19,#0x415]                                       ; +0x38, 0x1002f69a4\nTBZ             W8, #0, loc_1002F69B4                                  ; +0x3c, 0x1002f69a8\nMOV             X21, #0                                                ; +0x40, 0x1002f69ac\nB               loc_1002F6A20                                          ; +0x44, 0x1002f69b0\nBL              GameManager__sharedState                               ; +0x48, 0x1002f69b4\nLDR             X0, [X0,#0x220]                                        ; +0x4c, 0x1002f69b8\nMOV             X1, X24                                                ; +0x50, 0x1002f69bc\nMOV             X2, X23                                                ; +0x54, 0x1002f69c0\nMOV             X3, X22                                                ; +0x58, 0x1002f69c4\nMOV             X4, X20                                                ; +0x5c, 0x1002f69c8\nBL              GJBaseGameLayer__createParticle                        ; +0x60, 0x1002f69cc\nMOV             X21, X0                                                ; +0x64, 0x1002f69d0\nBL              GameManager__sharedState                               ; +0x68, 0x1002f69d4\nLDR             X0, [X0,#0x220]                                        ; +0x6c, 0x1002f69d8\nADD             X8, SP, #0x50+var_48                                   ; +0x70, 0x1002f69dc\nMOV             X1, X24                                                ; +0x74, 0x1002f69e0\nMOV             X2, X23                                                ; +0x78, 0x1002f69e4\nMOV             X3, X22                                                ; +0x7c, 0x1002f69e8\nMOV             X4, X20                                                ; +0x80, 0x1002f69ec\nBL              GJBaseGameLayer__getParticleKey                        ; +0x84, 0x1002f69f0\nADD             X20, X19, #0x310                                       ; +0x88, 0x1002f69f4\nLDRSB           W8, [X19,#0x327]                                       ; +0x8c, 0x1002f69f8\nTBZ             W8, #0x1F, loc_1002F6A08                               ; +0x90, 0x1002f69fc\nLDR             X0, [X20]; __p                                         ; +0x94, 0x1002f6a00\nBL              __ZdlPv; operator delete(void *)                       ; +0x98, 0x1002f6a04\nLDUR            Q0, [SP,#0x50+var_48]                                  ; +0x9c, 0x1002f6a08\nSTR             Q0, [X20]                                              ; +0xa0, 0x1002f6a0c\nLDR             X8, [SP,#0x50+var_38]                                  ; +0xa4, 0x1002f6a10\nSTR             X8, [X20,#0x10]                                        ; +0xa8, 0x1002f6a14\nMOV             W8, #1                                                 ; +0xac, 0x1002f6a18\nSTRB            W8, [X19,#0x328]                                       ; +0xb0, 0x1002f6a1c\nMOV             X0, X21                                                ; +0xb4, 0x1002f6a20\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xb8, 0x1002f6a24\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xbc, 0x1002f6a28\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xc0, 0x1002f6a2c\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xc4, 0x1002f6a30\nADD             SP, SP, #0x60 ; '`'                                    ; +0xc8, 0x1002f6a34\nRET                                                                    ; +0xcc, 0x1002f6a38", "xrefs": ["GameObject::customSetup @ 0x1002f4648", "GameObject::customSetup @ 0x1002f5448", "GameObject::customSetup @ 0x1002f5500", "GameObject::customSetup @ 0x1002f560c", "GameObject::customSetup @ 0x1002f56c8", "GameObject::customSetup @ 0x1002f5768", "GameObject::customSetup @ 0x1002f57f4", "GameObject::customSetup @ 0x1002f5918", "GameObject::customSetup @ 0x1002f59a0", "GameObject::customSetup @ 0x1002f5a30", "GameObject::customSetup @ 0x1002f5ac0", "GameObject::customSetup @ 0x1002f5b4c", "GameObject::customSetup @ 0x1002f5bd8", "GameObject::customSetup @ 0x1002f5cdc", "GameObject::customSetup @ 0x1002f5e9c", "GameObject::customSetup @ 0x1002f5f10", "GameObject::customSetup @ 0x1002f5ff0", "GameObject::customSetup @ 0x1002f60f0", "GameObject::customSetup @ 0x1002f6184", "GameObject::customSetup @ 0x1002f61f0", "GameObject::customSetup @ 0x1002f6260", "GameObject::customSetup @ 0x1002f6350", "GameObject::customSetup @ 0x1002f63e4", "GameObject::customSetup @ 0x1002f64fc", "GameObject::customSetup @ 0x1002f6588", "GameObject::customSetup @ 0x1002f6608", "GameObject::customSetup @ 0x1002f66d4", "GameObject::customSetup @ 0x1002f6790", "GameObject::customSetup @ 0x1002f6850", "sub_1002F68BC @ 0x1002f693c", "EnhancedGameObject::updateUserCoin @ 0x1002fc858", "EnhancedGameObject::customSetup @ 0x1003016cc", "EnhancedGameObject::customSetup @ 0x100301948", "EnhancedGameObject::customSetup @ 0x1003019f0", "EndPortalObject::init @ 0x10047f100"], "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"}