{"type": "func", "start": 6014156, "end": 6014388, "name": "CCSpriteWithHue::createWithTexture", "pseudocode": "// \n// CCSpriteWithHue::createWithTexture from 0x5bc4cc to 0x5bc5b4 (232 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x39210\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\nCCSpriteWithHue *CCSpriteWithHue::createWithTexture(cocos2d::CCTexture2D *a1)\n{\n  CCSpriteWithHue *v2; // x0\n  CCSpriteWithHue *v3; // x19\n\n  v2 = (CCSpriteWithHue *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);\n  v3 = v2;\n  if ( v2 )\n  {\n    memset(v2, 0, sizeof(CCSpriteWithHue));\n    cocos2d::CCSprite::CCSprite(v3);\n    v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteWithHue_vtbl *)&off_11449F0;\n    v3->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1144EE0;\n    v3->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1144F60;\n    if ( CCSpriteWithHue::initWithTexture(v3, a1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    v3->~CCSpriteWithHue_0(v3);\n  }\n  return nullptr;\n}", "assembly": "; \n; CCSpriteWithHue::createWithTexture from 0x5bc4cc to 0x5bc5b4 (232 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x39210\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             X29, X30, [SP,#var_40]!                                ; +0x0, 0x5bc4cc\nMOV             X29, SP                                                ; +0x4, 0x5bc4d0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x5bc4d4\nADRP            X20, #_ZSt7nothrow_ptr@PAGE                            ; +0xc, 0x5bc4d8\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x5bc4dc\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x5bc4e0\nMOV             X22, X1                                                ; +0x18, 0x5bc4e4\nMOV             X23, X0                                                ; +0x1c, 0x5bc4e8\nLDR             X1, [X20,#_ZSt7nothrow_ptr@PAGEOFF]; std::nothrow_t *  ; +0x20, 0x5bc4ec\nMOV             X0, #0x298; unsigned __int64                           ; +0x24, 0x5bc4f0\nUXTB            W21, W2                                                ; +0x28, 0x5bc4f4\nBL              _ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x2c, 0x5bc4f8\nMOV             X19, X0                                                ; +0x30, 0x5bc4fc\nCBZ             X0, loc_5BC584                                         ; +0x34, 0x5bc500\nMOV             W1, #0; int                                            ; +0x38, 0x5bc504\nMOV             X2, #0x298; size_t                                     ; +0x3c, 0x5bc508\nBL              .memset                                                ; +0x40, 0x5bc50c\nMOV             X0, X19; this                                          ; +0x44, 0x5bc510\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x48, 0x5bc514\nADRP            X4, #_ZTV15CCSpriteWithHue_ptr@PAGE                    ; +0x4c, 0x5bc518\nMOV             X0, X19; this                                          ; +0x50, 0x5bc51c\nMOV             X1, X23; cocos2d::CCTexture2D *                        ; +0x54, 0x5bc520\nMOV             X2, X22; cocos2d::CCRect *                             ; +0x58, 0x5bc524\nMOV             W3, W21; bool                                          ; +0x5c, 0x5bc528\nLDR             X4, [X4,#_ZTV15CCSpriteWithHue_ptr@PAGEOFF]; `vtable for'CCSpriteWithHue ... ; +0x60, 0x5bc52c\nADD             X6, X4, #0x10                                          ; +0x64, 0x5bc530\nADD             X5, X4, #0x500                                         ; +0x68, 0x5bc534\nSTR             X6, [X19]                                              ; +0x6c, 0x5bc538\nADD             X4, X4, #0x580                                         ; +0x70, 0x5bc53c\nSTR             X5, [X19,#0x140]                                       ; +0x74, 0x5bc540\nSTR             X4, [X19,#0x158]                                       ; +0x78, 0x5bc544\nBL              _ZN15CCSpriteWithHue15initWithTextureEPN7cocos2d11CCTexture2DERKNS0_6CCRectEb; CCSpriteWithHue::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&,bool) ; +0x7c, 0x5bc548\nUXTB            W0, W0                                                 ; +0x80, 0x5bc54c\nCBZ             W0, loc_5BC574                                         ; +0x84, 0x5bc550\nMOV             X0, X19; this                                          ; +0x88, 0x5bc554\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x8c, 0x5bc558\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x90, 0x5bc55c\nMOV             X0, X19                                                ; +0x94, 0x5bc560\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x5bc564\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x9c, 0x5bc568\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x5bc56c\nRET                                                                    ; +0xa4, 0x5bc570\nLDR             X1, [X19]                                              ; +0xa8, 0x5bc574\nMOV             X0, X19                                                ; +0xac, 0x5bc578\nLDR             X1, [X1,#0x10]                                         ; +0xb0, 0x5bc57c\nBLR             X1                                                     ; +0xb4, 0x5bc580\nMOV             X0, #0                                                 ; +0xb8, 0x5bc584\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xbc, 0x5bc588\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc0, 0x5bc58c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc4, 0x5bc590\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc8, 0x5bc594\nRET                                                                    ; +0xcc, 0x5bc598\nLDR             X1, [X20,#0x900]                                       ; +0xd0, 0x5bc59c\nMOV             X20, X0                                                ; +0xd4, 0x5bc5a0\nMOV             X0, X19; p                                             ; +0xd8, 0x5bc5a4\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0xdc, 0x5bc5a8\nMOV             X0, X20                                                ; +0xe0, 0x5bc5ac\nBL              _Unwind_Resume                                         ; +0xe4, 0x5bc5b0", "xrefs": ["<???> @ 0x39210"], "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"}