{"type": "func", "start": 4298731532, "end": 4298731696, "name": "ArtTriggerGameObject::create", "pseudocode": "// \n// ArtTriggerGameObject::create from 0x10039700c to 0x1003970b0 (164 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x10025483c\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\nArtTriggerGameObject *__fastcall ArtTriggerGameObject::create(const char *a1)\n{\n  ArtTriggerGameObject *v2; // x19\n\n  v2 = (ArtTriggerGameObject *)operator new(0x730u);\n  EffectGameObject::EffectGameObject(v2);\n  v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ArtTriggerGameObject_vtbl *)&off_100806BA8;\n  v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1008072F0;\n  v2->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100807370;\n  v2->m_artIndex = 0;\n  if ( EnhancedGameObject::init(v2, a1) )\n  {\n    v2->m_classType = Effect;\n    v2->m_triggerTargetColor.b = -1;\n    *(_WORD *)&v2->m_triggerTargetColor.r = -1;\n    v2->m_duration = 0.5;\n    v2->m_legacyHSV = 1;\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(ArtTriggerGameObject *))v2->~ArtTriggerGameObject_0)(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; ArtTriggerGameObject::create from 0x10039700c to 0x1003970b0 (164 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x10025483c\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10039700c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100397010\nADD             X29, SP, #0x10                                         ; +0x8, 0x100397014\nMOV             X20, X0                                                ; +0xc, 0x100397018\nMOV             W0, #0x730; __sz                                       ; +0x10, 0x10039701c\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100397020\nMOV             X19, X0                                                ; +0x18, 0x100397024\nBL              EffectGameObject__EffectGameObject                     ; +0x1c, 0x100397028\nADRL            X8, off_100806BA8                                      ; +0x20, 0x10039702c\nSTR             X8, [X19]                                              ; +0x28, 0x100397034\nADD             X9, X8, #(off_1008072F0 - 0x100806BA8)                 ; +0x2c, 0x100397038\nSTR             X9, [X19,#0x140]                                       ; +0x30, 0x10039703c\nADD             X8, X8, #(off_100807370 - 0x100806BA8)                 ; +0x34, 0x100397040\nSTR             X8, [X19,#0x158]                                       ; +0x38, 0x100397044\nSTR             WZR, [X19,#0x72C]                                      ; +0x3c, 0x100397048\nMOV             X0, X19                                                ; +0x40, 0x10039704c\nMOV             X1, X20                                                ; +0x44, 0x100397050\nBL              EnhancedGameObject__init                               ; +0x48, 0x100397054\nCBZ             W0, loc_10039708C                                      ; +0x4c, 0x100397058\nMOV             W8, #1                                                 ; +0x50, 0x10039705c\nSTR             W8, [X19,#0x4E0]                                       ; +0x54, 0x100397060\nMOV             W9, #0xFF                                              ; +0x58, 0x100397064\nSTRB            W9, [X19,#0x5AA]                                       ; +0x5c, 0x100397068\nMOV             W9, #0xFFFF                                            ; +0x60, 0x10039706c\nSTRH            W9, [X19,#0x5A8]                                       ; +0x64, 0x100397070\nMOV             W9, #0x3F000000                                        ; +0x68, 0x100397074\nSTR             W9, [X19,#0x5AC]                                       ; +0x6c, 0x100397078\nSTRB            W8, [X19,#0x664]                                       ; +0x70, 0x10039707c\nMOV             X0, X19                                                ; +0x74, 0x100397080\nBL              cocos2d__CCObject__autorelease                         ; +0x78, 0x100397084\nB               loc_1003970A0                                          ; +0x7c, 0x100397088\nLDR             X8, [X19]                                              ; +0x80, 0x10039708c\nLDR             X8, [X8,#0x10]                                         ; +0x84, 0x100397090\nMOV             X0, X19                                                ; +0x88, 0x100397094\nBLR             X8                                                     ; +0x8c, 0x100397098\nMOV             X19, #0                                                ; +0x90, 0x10039709c\nMOV             X0, X19                                                ; +0x94, 0x1003970a0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x98, 0x1003970a4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x9c, 0x1003970a8\nRET                                                                    ; +0xa0, 0x1003970ac", "xrefs": ["GameObject::createWithKey @ 0x10025483c"], "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"}