{"type": "func", "start": 5373530656, "end": 5373530773, "name": "GradientTriggerObject::init", "pseudocode": "// \n// GradientTriggerObject::init from 0x140499220 to 0x140499295 (117 bytes)\n// \n// 4 xrefs:\n// > GameObject::createWithKey @ 0x14018ca9f\n// > GameObject::createWithKey @ 0x14018ca8c\n// > <???> @ 0x14061a308\n// > <???> @ 0x1406dc368\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\nbool GradientTriggerObject::init(GradientTriggerObject *a1)\n{\n  a1->m_eObjType = GameObjectObjectType;\n  if ( !cocos2d::CCSprite::initWithSpriteFrameName(a1, \"edit_eGradientBtn_001.png\") )\n    return 0;\n  GameObject::commonSetup(a1);\n  a1->m_bUnkBool2 = 0;\n  a1->m_classType = Effect;\n  *(_WORD *)&a1->m_triggerTargetColor.r = -1;\n  a1->m_triggerTargetColor.b = -1;\n  a1->m_duration = 0.5;\n  a1->m_legacyHSV = 1;\n  a1->m_blendingLayer = 1;\n  return 1;\n}", "assembly": "; \n; GradientTriggerObject::init from 0x140499220 to 0x140499295 (117 bytes)\n; \n; 4 xrefs:\n; > GameObject::createWithKey @ 0x14018ca9f\n; > GameObject::createWithKey @ 0x14018ca8c\n; > <???> @ 0x14061a308\n; > <???> @ 0x1406dc368\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\npush    rbx                                                            ; +0x0, 0x140499220\nsub     rsp, 20h                                                       ; +0x2, 0x140499222\nlea     rdx, aEditEgradientb; \"edit_eGradientBtn_001.png\"              ; +0x6, 0x140499226\nmov     dword ptr [rcx+1Ch], 0Dh                                       ; +0xd, 0x14049922d\nmov     rbx, rcx                                                       ; +0x14, 0x140499234\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x17, 0x140499237\ntest    al, al                                                         ; +0x1d, 0x14049923d\njz      short loc_14049928D                                            ; +0x1f, 0x14049923f\nmov     rcx, rbx                                                       ; +0x21, 0x140499241\ncall    GameObject__commonSetup                                        ; +0x24, 0x140499244\nmov     byte ptr [rbx+139h], 0                                         ; +0x29, 0x140499249\nmov     al, 1                                                          ; +0x30, 0x140499250\nmov     dword ptr [rbx+4E8h], 1                                        ; +0x32, 0x140499252\nmov     word ptr [rbx+5B9h], 0FFFFh                                    ; +0x3c, 0x14049925c\nmov     byte ptr [rbx+5BBh], 0FFh                                      ; +0x45, 0x140499265\nmov     dword ptr [rbx+5BCh], 3F000000h                                ; +0x4c, 0x14049926c\nmov     byte ptr [rbx+674h], 1                                         ; +0x56, 0x140499276\nmov     dword ptr [rbx+740h], 1                                        ; +0x5d, 0x14049927d\nadd     rsp, 20h                                                       ; +0x67, 0x140499287\npop     rbx                                                            ; +0x6b, 0x14049928b\nretn                                                                   ; +0x6c, 0x14049928c\nxor     al, al                                                         ; +0x6d, 0x14049928d\nadd     rsp, 20h                                                       ; +0x6f, 0x14049928f\npop     rbx                                                            ; +0x73, 0x140499293\nretn                                                                   ; +0x74, 0x140499294", "xrefs": ["GameObject::createWithKey @ 0x14018ca9f", "GameObject::createWithKey @ 0x14018ca8c", "<???> @ 0x14061a308", "<???> @ 0x1406dc368"], "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"}