{"type": "func", "start": 4298614704, "end": 4298614892, "name": "GradientTriggerObject::create", "pseudocode": "// \n// GradientTriggerObject::create from 0x10037a7b0 to 0x10037a86c (188 bytes)\n// \n// 1 xrefs:\n// > GameObject::createWithKey @ 0x10025497c\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\nGradientTriggerObject *__fastcall GradientTriggerObject::create()\n{\n  char *v0; // x19\n\n  v0 = (char *)operator new(0x750u);\n  EffectGameObject::EffectGameObject((EffectGameObject *)v0);\n  *(_QWORD *)v0 = &off_1007FC198;\n  *((_QWORD *)v0 + 40) = off_1007FC8E0;\n  *((_QWORD *)v0 + 43) = off_1007FC960;\n  *(_QWORD *)(v0 + 1844) = 0;\n  *(_QWORD *)(v0 + 1852) = 0;\n  *(_QWORD *)(v0 + 1836) = 0;\n  *(_QWORD *)(v0 + 1859) = 0;\n  *((_DWORD *)v0 + 467) = 1065353216;\n  if ( EnhancedGameObject::init((EnhancedGameObject *)v0, \"edit_eGradientBtn_001.png\") )\n  {\n    *((_DWORD *)v0 + 312) = 1;\n    v0[1450] = -1;\n    *((_WORD *)v0 + 724) = -1;\n    *((_DWORD *)v0 + 363) = 1056964608;\n    v0[1636] = 1;\n    *((_DWORD *)v0 + 459) = 1;\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return (GradientTriggerObject *)v0;\n}", "assembly": "; \n; GradientTriggerObject::create from 0x10037a7b0 to 0x10037a86c (188 bytes)\n; \n; 1 xrefs:\n; > GameObject::createWithKey @ 0x10025497c\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, 0x10037a7b0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10037a7b4\nADD             X29, SP, #0x10                                         ; +0x8, 0x10037a7b8\nMOV             W0, #0x750; __sz                                       ; +0xc, 0x10037a7bc\nBL              __Znwm; operator new(ulong)                            ; +0x10, 0x10037a7c0\nMOV             X19, X0                                                ; +0x14, 0x10037a7c4\nBL              EffectGameObject__EffectGameObject                     ; +0x18, 0x10037a7c8\nADRL            X8, off_1007FC198                                      ; +0x1c, 0x10037a7cc\nSTR             X8, [X19]                                              ; +0x24, 0x10037a7d4\nADD             X9, X8, #(off_1007FC8E0 - 0x1007FC198)                 ; +0x28, 0x10037a7d8\nSTR             X9, [X19,#0x140]                                       ; +0x2c, 0x10037a7dc\nADD             X8, X8, #(off_1007FC960 - 0x1007FC198)                 ; +0x30, 0x10037a7e0\nSTR             X8, [X19,#0x158]                                       ; +0x34, 0x10037a7e4\nADD             X8, X19, #0x72C                                        ; +0x38, 0x10037a7e8\nSTP             XZR, XZR, [X8,#8]                                      ; +0x3c, 0x10037a7ec\nSTR             XZR, [X8]                                              ; +0x40, 0x10037a7f0\nSTUR            XZR, [X8,#0x17]                                        ; +0x44, 0x10037a7f4\nMOV             W8, #0x3F800000                                        ; +0x48, 0x10037a7f8\nSTR             W8, [X19,#0x74C]                                       ; +0x4c, 0x10037a7fc\nADRL            X1, aEditEgradientb; \"edit_eGradientBtn_001.png\"       ; +0x50, 0x10037a800\nMOV             X0, X19                                                ; +0x58, 0x10037a808\nBL              EnhancedGameObject__init                               ; +0x5c, 0x10037a80c\nCBZ             W0, loc_10037A848                                      ; +0x60, 0x10037a810\nMOV             W8, #1                                                 ; +0x64, 0x10037a814\nSTR             W8, [X19,#0x4E0]                                       ; +0x68, 0x10037a818\nMOV             W9, #0xFF                                              ; +0x6c, 0x10037a81c\nSTRB            W9, [X19,#0x5AA]                                       ; +0x70, 0x10037a820\nMOV             W9, #0xFFFF                                            ; +0x74, 0x10037a824\nSTRH            W9, [X19,#0x5A8]                                       ; +0x78, 0x10037a828\nMOV             W9, #0x3F000000                                        ; +0x7c, 0x10037a82c\nSTR             W9, [X19,#0x5AC]                                       ; +0x80, 0x10037a830\nSTRB            W8, [X19,#0x664]                                       ; +0x84, 0x10037a834\nSTR             W8, [X19,#0x72C]                                       ; +0x88, 0x10037a838\nMOV             X0, X19                                                ; +0x8c, 0x10037a83c\nBL              cocos2d__CCObject__autorelease                         ; +0x90, 0x10037a840\nB               loc_10037A85C                                          ; +0x94, 0x10037a844\nLDR             X8, [X19]                                              ; +0x98, 0x10037a848\nLDR             X8, [X8,#0x10]                                         ; +0x9c, 0x10037a84c\nMOV             X0, X19                                                ; +0xa0, 0x10037a850\nBLR             X8                                                     ; +0xa4, 0x10037a854\nMOV             X19, #0                                                ; +0xa8, 0x10037a858\nMOV             X0, X19                                                ; +0xac, 0x10037a85c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb0, 0x10037a860\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb4, 0x10037a864\nRET                                                                    ; +0xb8, 0x10037a868", "xrefs": ["GameObject::createWithKey @ 0x10025497c"], "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"}