{"type": "func", "start": 4298722144, "end": 4298722352, "name": "ItemTriggerGameObject::create", "pseudocode": "// \n// ItemTriggerGameObject::create from 0x100394b60 to 0x100394c30 (208 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x10025482c\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\nItemTriggerGameObject *__fastcall ItemTriggerGameObject::create(const char *a1)\n{\n  char *v2; // x19\n\n  v2 = (char *)operator new(0x768u);\n  EffectGameObject::EffectGameObject((EffectGameObject *)v2);\n  *(_QWORD *)v2 = &off_100805378;\n  *((_QWORD *)v2 + 40) = off_100805AC0;\n  *((_QWORD *)v2 + 43) = off_100805B40;\n  *((_DWORD *)v2 + 459) = 0;\n  *((_QWORD *)v2 + 230) = &_mh_execute_header;\n  __asm { FMOV            V1.2S, #1.0 }\n  *((_QWORD *)v2 + 231) = _D1;\n  *((_QWORD *)v2 + 232) = &_mh_execute_header;\n  *((_DWORD *)v2 + 466) = 3;\n  *(_QWORD *)(v2 + 1876) = 0;\n  *(_QWORD *)(v2 + 1884) = 0;\n  *(_QWORD *)(v2 + 1868) = 0;\n  if ( EnhancedGameObject::init((EnhancedGameObject *)v2, a1) )\n  {\n    *((_DWORD *)v2 + 312) = 1;\n    v2[1450] = -1;\n    *((_WORD *)v2 + 724) = -1;\n    *((_DWORD *)v2 + 363) = 1056964608;\n    v2[1636] = 1;\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (ItemTriggerGameObject *)v2;\n}", "assembly": "; \n; ItemTriggerGameObject::create from 0x100394b60 to 0x100394c30 (208 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x10025482c\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, 0x100394b60\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100394b64\nADD             X29, SP, #0x10                                         ; +0x8, 0x100394b68\nMOV             X20, X0                                                ; +0xc, 0x100394b6c\nMOV             W0, #0x768; __sz                                       ; +0x10, 0x100394b70\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x100394b74\nMOV             X19, X0                                                ; +0x18, 0x100394b78\nBL              EffectGameObject__EffectGameObject                     ; +0x1c, 0x100394b7c\nADRL            X8, off_100805378                                      ; +0x20, 0x100394b80\nSTR             X8, [X19]                                              ; +0x28, 0x100394b88\nADD             X9, X8, #(off_100805AC0 - 0x100805378)                 ; +0x2c, 0x100394b8c\nSTR             X9, [X19,#0x140]                                       ; +0x30, 0x100394b90\nADD             X8, X8, #(off_100805B40 - 0x100805378)                 ; +0x34, 0x100394b94\nSTR             X8, [X19,#0x158]                                       ; +0x38, 0x100394b98\nSTR             WZR, [X19,#0x72C]                                      ; +0x3c, 0x100394b9c\nADRP            X8, #qword_100642750@PAGE                              ; +0x40, 0x100394ba0\nLDR             D0, [X8,#qword_100642750@PAGEOFF]                      ; +0x44, 0x100394ba4\nSTR             D0, [X19,#0x730]                                       ; +0x48, 0x100394ba8\nFMOV            V1.2S, #1.0                                            ; +0x4c, 0x100394bac\nSTR             D1, [X19,#0x738]                                       ; +0x50, 0x100394bb0\nSTR             D0, [X19,#0x740]                                       ; +0x54, 0x100394bb4\nMOV             W8, #3                                                 ; +0x58, 0x100394bb8\nSTR             W8, [X19,#0x748]                                       ; +0x5c, 0x100394bbc\nADD             X8, X19, #0x74C                                        ; +0x60, 0x100394bc0\nSTP             XZR, XZR, [X8,#8]                                      ; +0x64, 0x100394bc4\nSTR             XZR, [X8]                                              ; +0x68, 0x100394bc8\nMOV             X0, X19                                                ; +0x6c, 0x100394bcc\nMOV             X1, X20                                                ; +0x70, 0x100394bd0\nBL              EnhancedGameObject__init                               ; +0x74, 0x100394bd4\nCBZ             W0, loc_100394C0C                                      ; +0x78, 0x100394bd8\nMOV             W8, #1                                                 ; +0x7c, 0x100394bdc\nSTR             W8, [X19,#0x4E0]                                       ; +0x80, 0x100394be0\nMOV             W9, #0xFF                                              ; +0x84, 0x100394be4\nSTRB            W9, [X19,#0x5AA]                                       ; +0x88, 0x100394be8\nMOV             W9, #0xFFFF                                            ; +0x8c, 0x100394bec\nSTRH            W9, [X19,#0x5A8]                                       ; +0x90, 0x100394bf0\nMOV             W9, #0x3F000000                                        ; +0x94, 0x100394bf4\nSTR             W9, [X19,#0x5AC]                                       ; +0x98, 0x100394bf8\nSTRB            W8, [X19,#0x664]                                       ; +0x9c, 0x100394bfc\nMOV             X0, X19                                                ; +0xa0, 0x100394c00\nBL              cocos2d__CCObject__autorelease                         ; +0xa4, 0x100394c04\nB               loc_100394C20                                          ; +0xa8, 0x100394c08\nLDR             X8, [X19]                                              ; +0xac, 0x100394c0c\nLDR             X8, [X8,#0x10]                                         ; +0xb0, 0x100394c10\nMOV             X0, X19                                                ; +0xb4, 0x100394c14\nBLR             X8                                                     ; +0xb8, 0x100394c18\nMOV             X19, #0                                                ; +0xbc, 0x100394c1c\nMOV             X0, X19                                                ; +0xc0, 0x100394c20\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc4, 0x100394c24\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xc8, 0x100394c28\nRET                                                                    ; +0xcc, 0x100394c2c", "xrefs": ["GameObject::createWithKey @ 0x10025482c"], "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"}