{"type": "func", "start": 6017316, "end": 6017528, "name": "CCSpriteGrayscale::create", "pseudocode": "// \n// CCSpriteGrayscale::create from 0x5bd124 to 0x5bd1f8 (212 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x630d8\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\ncocos2d::CCSprite *__fastcall CCSpriteGrayscale::create(const char **a1)\n{\n  cocos2d::CCSprite *v2; // x0\n  cocos2d::CCSprite *v3; // x19\n  const char *v4; // x1\n\n  v2 = (cocos2d::CCSprite *)operator new(0x298u, (const std::nothrow_t *)&std::nothrow);\n  v3 = v2;\n  if ( v2 )\n  {\n    memset(v2, 0, 0x298u);\n    cocos2d::CCSprite::CCSprite(v3);\n    v4 = *a1;\n    v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCSprite_vtbl *)&off_1144F90;\n    v3->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1145480;\n    v3->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1145500;\n    if ( cocos2d::CCSprite::initWithFile(v3, v4) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n      return v3;\n    }\n    v3->~CCSprite_0(v3);\n  }\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::create from 0x5bd124 to 0x5bd1f8 (212 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x630d8\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,#-0x30+var_s0]!                          ; +0x0, 0x5bd124\nMOV             X29, SP                                                ; +0x4, 0x5bd128\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x5bd12c\nADRP            X20, #_ZSt7nothrow_ptr@PAGE                            ; +0xc, 0x5bd130\nSTP             X21, X22, [SP,#var_s20]                                ; +0x10, 0x5bd134\nMOV             X21, X1                                                ; +0x14, 0x5bd138\nMOV             X22, X0                                                ; +0x18, 0x5bd13c\nLDR             X1, [X20,#_ZSt7nothrow_ptr@PAGEOFF]; std::nothrow_t *  ; +0x1c, 0x5bd140\nMOV             X0, #0x298; unsigned __int64                           ; +0x20, 0x5bd144\nBL              _ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x24, 0x5bd148\nMOV             X19, X0                                                ; +0x28, 0x5bd14c\nCBZ             X0, loc_5BD1CC                                         ; +0x2c, 0x5bd150\nMOV             W1, #0; int                                            ; +0x30, 0x5bd154\nMOV             X2, #0x298; size_t                                     ; +0x34, 0x5bd158\nBL              .memset                                                ; +0x38, 0x5bd15c\nMOV             X0, X19; this                                          ; +0x3c, 0x5bd160\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x40, 0x5bd164\nADRP            X3, #_ZTV17CCSpriteGrayscale_ptr@PAGE                  ; +0x44, 0x5bd168\nLDR             X1, [X22]; char *                                      ; +0x48, 0x5bd16c\nMOV             X0, X19; this                                          ; +0x4c, 0x5bd170\nMOV             X2, X21; cocos2d::CCRect *                             ; +0x50, 0x5bd174\nLDR             X3, [X3,#_ZTV17CCSpriteGrayscale_ptr@PAGEOFF]; `vtable for'CCSpriteGrayscale ... ; +0x54, 0x5bd178\nADD             X5, X3, #0x10                                          ; +0x58, 0x5bd17c\nADD             X4, X3, #0x500                                         ; +0x5c, 0x5bd180\nSTR             X5, [X19]                                              ; +0x60, 0x5bd184\nADD             X3, X3, #0x580                                         ; +0x64, 0x5bd188\nSTR             X4, [X19,#0x140]                                       ; +0x68, 0x5bd18c\nSTR             X3, [X19,#0x158]                                       ; +0x6c, 0x5bd190\nBL              _ZN7cocos2d8CCSprite12initWithFileEPKcRKNS_6CCRectE; cocos2d::CCSprite::initWithFile(char const*,cocos2d::CCRect const&) ; +0x70, 0x5bd194\nUXTB            W0, W0                                                 ; +0x74, 0x5bd198\nCBZ             W0, loc_5BD1BC                                         ; +0x78, 0x5bd19c\nMOV             X0, X19; this                                          ; +0x7c, 0x5bd1a0\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x80, 0x5bd1a4\nMOV             X0, X19                                                ; +0x84, 0x5bd1a8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x88, 0x5bd1ac\nLDP             X21, X22, [SP,#var_s20]                                ; +0x8c, 0x5bd1b0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x90, 0x5bd1b4\nRET                                                                    ; +0x94, 0x5bd1b8\nLDR             X1, [X19]                                              ; +0x98, 0x5bd1bc\nMOV             X0, X19                                                ; +0x9c, 0x5bd1c0\nLDR             X1, [X1,#0x10]                                         ; +0xa0, 0x5bd1c4\nBLR             X1                                                     ; +0xa4, 0x5bd1c8\nMOV             X0, #0                                                 ; +0xa8, 0x5bd1cc\nLDP             X19, X20, [SP,#var_s10]                                ; +0xac, 0x5bd1d0\nLDP             X21, X22, [SP,#var_s20]                                ; +0xb0, 0x5bd1d4\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0xb4, 0x5bd1d8\nRET                                                                    ; +0xb8, 0x5bd1dc\nLDR             X1, [X20,#0x900]                                       ; +0xbc, 0x5bd1e0\nMOV             X20, X0                                                ; +0xc0, 0x5bd1e4\nMOV             X0, X19; p                                             ; +0xc4, 0x5bd1e8\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0xc8, 0x5bd1ec\nMOV             X0, X20                                                ; +0xcc, 0x5bd1f0\nBL              _Unwind_Resume                                         ; +0xd0, 0x5bd1f4", "xrefs": ["<???> @ 0x630d8"], "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"}