{"type": "func", "start": 3175076, "end": 3175192, "name": "CCSpriteGrayscale::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteGrayscale::createWithSpriteFrame from 0x3072a4 to 0x307318 (116 bytes)\n// \n// 1 xrefs:\n// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x307332\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::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)\n{\n  CCSpriteGrayscale *v2; // r0\n  CCSpriteGrayscale *v3; // r4\n\n  v2 = (CCSpriteGrayscale *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v3 = v2;\n  if ( !v2 )\n    return v3;\n  memset(v2, 0, sizeof(CCSpriteGrayscale));\n  CCSpriteWithHue::CCSpriteWithHue(v3);\n  v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCSpriteGrayscale_vtbl *)&off_A43940;\n  v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A43BB8;\n  v3->CCSpriteWithHue::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A43BF8;\n  if ( a1 && CCSpriteWithHue::initWithSpriteFrame(v3, a1) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  v3->~CCSpriteGrayscale_0(v3);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithSpriteFrame from 0x3072a4 to 0x307318 (116 bytes)\n; \n; 1 xrefs:\n; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x307332\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            {R4-R6,LR}                                             ; +0x0, 0x3072a4\nMOV             R6, R0                                                 ; +0x2, 0x3072a6\nLDR             R5, =(_ZSt7nothrow_ptr - 0x3072B2)                     ; +0x4, 0x3072a8\nMOV.W           R0, #0x23C; unsigned int                               ; +0x6, 0x3072aa\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0xa, 0x3072ae\nLDR             R5, [R5]; std::nothrow ...                             ; +0xc, 0x3072b0\nMOV             R1, R5; std::nothrow_t *                               ; +0xe, 0x3072b2\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x10, 0x3072b4\nMOV             R4, R0                                                 ; +0x14, 0x3072b8\nCBZ             R0, loc_307308                                         ; +0x16, 0x3072ba\nMOVS            R1, #0; int                                            ; +0x18, 0x3072bc\nMOV.W           R2, #0x23C; size_t                                     ; +0x1a, 0x3072be\nBLX             memset                                                 ; +0x1e, 0x3072c2\nMOV             R0, R4; this                                           ; +0x22, 0x3072c6\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x24, 0x3072c8\nLDR             R3, =(_ZTV17CCSpriteGrayscale_ptr - 0x3072D2)          ; +0x28, 0x3072cc\nADD             R3, PC; _ZTV17CCSpriteGrayscale_ptr                    ; +0x2a, 0x3072ce\nLDR             R3, [R3]; `vtable for'CCSpriteGrayscale ...            ; +0x2c, 0x3072d0\nADD.W           R2, R3, #8                                             ; +0x2e, 0x3072d2\nSTR             R2, [R4]                                               ; +0x32, 0x3072d6\nADD.W           R2, R3, #0x280                                         ; +0x34, 0x3072d8\nADD.W           R3, R3, #0x2C0                                         ; +0x38, 0x3072dc\nSTR.W           R2, [R4,#0x108]                                        ; +0x3c, 0x3072e0\nSTR.W           R3, [R4,#0x118]                                        ; +0x40, 0x3072e4\nCBZ             R6, loc_30730C                                         ; +0x44, 0x3072e8\nMOV             R0, R4; this                                           ; +0x46, 0x3072ea\nMOV             R1, R6; cocos2d::CCSpriteFrame *                       ; +0x48, 0x3072ec\nBL              _ZN15CCSpriteWithHue19initWithSpriteFrameEPN7cocos2d13CCSpriteFrameE; CCSpriteWithHue::initWithSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x4a, 0x3072ee\nCBZ             R0, loc_30730C                                         ; +0x4e, 0x3072f2\nMOV             R0, R4; this                                           ; +0x50, 0x3072f4\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x52, 0x3072f6\nB               loc_307308                                             ; +0x56, 0x3072fa\nMOV             R0, R4; p                                              ; +0x58, 0x3072fc\nMOV             R1, R5; std::nothrow_t *                               ; +0x5a, 0x3072fe\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x5c, 0x307300\nBL              __cxa_end_cleanup                                      ; +0x60, 0x307304\nMOV             R0, R4                                                 ; +0x64, 0x307308\nPOP             {R4-R6,PC}                                             ; +0x66, 0x30730a\nLDR             R3, [R4]                                               ; +0x68, 0x30730c\nMOV             R0, R4                                                 ; +0x6a, 0x30730e\nLDR             R3, [R3,#8]                                            ; +0x6c, 0x307310\nBLX             R3                                                     ; +0x6e, 0x307312\nMOVS            R0, #0                                                 ; +0x70, 0x307314\nPOP             {R4-R6,PC}                                             ; +0x72, 0x307316", "xrefs": ["CCSpriteGrayscale::createWithSpriteFrameName @ 0x307332"], "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"}