{"type": "func", "start": 6017732, "end": 6017964, "name": "CCSpriteGrayscale::createWithTexture", "pseudocode": "// \n// CCSpriteGrayscale::createWithTexture from 0x5bd2c4 to 0x5bd3ac (232 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa0cb0\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\nCCSpriteGrayscale *CCSpriteGrayscale::createWithTexture(cocos2d::CCTexture2D *a1)\n{\n  CCSpriteGrayscale *v2; // x0\n  CCSpriteGrayscale *v3; // x19\n\n  v2 = (CCSpriteGrayscale *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);\n  v3 = v2;\n  if ( v2 )\n  {\n    memset(v2, 0, sizeof(CCSpriteGrayscale));\n    cocos2d::CCSprite::CCSprite(v3);\n    v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteGrayscale_vtbl *)&off_1144F90;\n    v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1145480;\n    v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1145500;\n    if ( CCSpriteWithHue::initWithTexture(v3, a1) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    v3->~CCSpriteGrayscale_0(v3);\n  }\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithTexture from 0x5bd2c4 to 0x5bd3ac (232 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa0cb0\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, 0x5bd2c4\nMOV             X29, SP                                                ; +0x4, 0x5bd2c8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x5bd2cc\nADRP            X20, #_ZSt7nothrow_ptr@PAGE                            ; +0xc, 0x5bd2d0\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x5bd2d4\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x5bd2d8\nMOV             X22, X1                                                ; +0x18, 0x5bd2dc\nMOV             X23, X0                                                ; +0x1c, 0x5bd2e0\nLDR             X1, [X20,#_ZSt7nothrow_ptr@PAGEOFF]; std::nothrow_t *  ; +0x20, 0x5bd2e4\nMOV             X0, #0x298; unsigned __int64                           ; +0x24, 0x5bd2e8\nUXTB            W21, W2                                                ; +0x28, 0x5bd2ec\nBL              _ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x2c, 0x5bd2f0\nMOV             X19, X0                                                ; +0x30, 0x5bd2f4\nCBZ             X0, loc_5BD37C                                         ; +0x34, 0x5bd2f8\nMOV             W1, #0; int                                            ; +0x38, 0x5bd2fc\nMOV             X2, #0x298; size_t                                     ; +0x3c, 0x5bd300\nBL              .memset                                                ; +0x40, 0x5bd304\nMOV             X0, X19; this                                          ; +0x44, 0x5bd308\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x48, 0x5bd30c\nADRP            X4, #_ZTV17CCSpriteGrayscale_ptr@PAGE                  ; +0x4c, 0x5bd310\nMOV             X0, X19; this                                          ; +0x50, 0x5bd314\nMOV             X1, X23; cocos2d::CCTexture2D *                        ; +0x54, 0x5bd318\nMOV             X2, X22; cocos2d::CCRect *                             ; +0x58, 0x5bd31c\nMOV             W3, W21; bool                                          ; +0x5c, 0x5bd320\nLDR             X4, [X4,#_ZTV17CCSpriteGrayscale_ptr@PAGEOFF]; `vtable for'CCSpriteGrayscale ... ; +0x60, 0x5bd324\nADD             X6, X4, #0x10                                          ; +0x64, 0x5bd328\nADD             X5, X4, #0x500                                         ; +0x68, 0x5bd32c\nSTR             X6, [X19]                                              ; +0x6c, 0x5bd330\nADD             X4, X4, #0x580                                         ; +0x70, 0x5bd334\nSTR             X5, [X19,#0x140]                                       ; +0x74, 0x5bd338\nSTR             X4, [X19,#0x158]                                       ; +0x78, 0x5bd33c\nBL              _ZN15CCSpriteWithHue15initWithTextureEPN7cocos2d11CCTexture2DERKNS0_6CCRectEb; CCSpriteWithHue::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&,bool) ; +0x7c, 0x5bd340\nUXTB            W0, W0                                                 ; +0x80, 0x5bd344\nCBZ             W0, loc_5BD36C                                         ; +0x84, 0x5bd348\nMOV             X0, X19; this                                          ; +0x88, 0x5bd34c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x8c, 0x5bd350\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x90, 0x5bd354\nMOV             X0, X19                                                ; +0x94, 0x5bd358\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x98, 0x5bd35c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x9c, 0x5bd360\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa0, 0x5bd364\nRET                                                                    ; +0xa4, 0x5bd368\nLDR             X1, [X19]                                              ; +0xa8, 0x5bd36c\nMOV             X0, X19                                                ; +0xac, 0x5bd370\nLDR             X1, [X1,#0x10]                                         ; +0xb0, 0x5bd374\nBLR             X1                                                     ; +0xb4, 0x5bd378\nMOV             X0, #0                                                 ; +0xb8, 0x5bd37c\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xbc, 0x5bd380\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc0, 0x5bd384\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc4, 0x5bd388\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc8, 0x5bd38c\nRET                                                                    ; +0xcc, 0x5bd390\nLDR             X1, [X20,#0x900]                                       ; +0xd0, 0x5bd394\nMOV             X20, X0                                                ; +0xd4, 0x5bd398\nMOV             X0, X19; p                                             ; +0xd8, 0x5bd39c\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0xdc, 0x5bd3a0\nMOV             X0, X20                                                ; +0xe0, 0x5bd3a4\nBL              _Unwind_Resume                                         ; +0xe4, 0x5bd3a8", "xrefs": ["<???> @ 0xa0cb0"], "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"}