{"type": "func", "start": 3174936, "end": 3175066, "name": "CCSpriteGrayscale::createWithTexture", "pseudocode": "// \n// CCSpriteGrayscale::createWithTexture from 0x307218 to 0x30729a (130 bytes)\n// \n// 0 xrefs:\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; // 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 ( CCSpriteWithHue::initWithTexture(v3, a1) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  v3->~CCSpriteGrayscale_0(v3);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithTexture from 0x307218 to 0x30729a (130 bytes)\n; \n; 0 xrefs:\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.W          {R4-R8,LR}                                             ; +0x0, 0x307218\nMOV             R8, R0                                                 ; +0x4, 0x30721c\nLDR             R5, =(_ZSt7nothrow_ptr - 0x30722C)                     ; +0x6, 0x30721e\nMOV             R7, R1                                                 ; +0x8, 0x307220\nMOV.W           R0, #0x23C; unsigned int                               ; +0xa, 0x307222\nMOV             R6, R2                                                 ; +0xe, 0x307226\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0x10, 0x307228\nLDR             R5, [R5]; std::nothrow ...                             ; +0x12, 0x30722a\nMOV             R1, R5; std::nothrow_t *                               ; +0x14, 0x30722c\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x16, 0x30722e\nMOV             R4, R0                                                 ; +0x1a, 0x307232\nCBZ             R0, loc_307286                                         ; +0x1c, 0x307234\nMOVS            R1, #0; int                                            ; +0x1e, 0x307236\nMOV.W           R2, #0x23C; size_t                                     ; +0x20, 0x307238\nBLX             memset                                                 ; +0x24, 0x30723c\nMOV             R0, R4; this                                           ; +0x28, 0x307240\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x2a, 0x307242\nLDR             R3, =(_ZTV17CCSpriteGrayscale_ptr - 0x307250)          ; +0x2e, 0x307246\nMOV             R0, R4; this                                           ; +0x30, 0x307248\nMOV             R1, R8; cocos2d::CCTexture2D *                         ; +0x32, 0x30724a\nADD             R3, PC; _ZTV17CCSpriteGrayscale_ptr                    ; +0x34, 0x30724c\nLDR             R3, [R3]; `vtable for'CCSpriteGrayscale ...            ; +0x36, 0x30724e\nADD.W           R2, R3, #8                                             ; +0x38, 0x307250\nSTR             R2, [R4]                                               ; +0x3c, 0x307254\nADD.W           R2, R3, #0x280                                         ; +0x3e, 0x307256\nADD.W           R3, R3, #0x2C0                                         ; +0x42, 0x30725a\nSTR.W           R2, [R4,#0x108]                                        ; +0x46, 0x30725e\nMOV             R2, R7; cocos2d::CCRect *                              ; +0x4a, 0x307262\nSTR.W           R3, [R4,#0x118]                                        ; +0x4c, 0x307264\nMOV             R3, R6; bool                                           ; +0x50, 0x307268\nBL              _ZN15CCSpriteWithHue15initWithTextureEPN7cocos2d11CCTexture2DERKNS0_6CCRectEb; CCSpriteWithHue::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&,bool) ; +0x52, 0x30726a\nMOV             R5, R0                                                 ; +0x56, 0x30726e\nCBZ             R0, loc_30728C                                         ; +0x58, 0x307270\nMOV             R0, R4; this                                           ; +0x5a, 0x307272\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x5c, 0x307274\nB               loc_307286                                             ; +0x60, 0x307278\nMOV             R0, R4; p                                              ; +0x62, 0x30727a\nMOV             R1, R5; std::nothrow_t *                               ; +0x64, 0x30727c\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x66, 0x30727e\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x307282\nMOV             R0, R4                                                 ; +0x6e, 0x307286\nPOP.W           {R4-R8,PC}                                             ; +0x70, 0x307288\nLDR             R3, [R4]                                               ; +0x74, 0x30728c\nMOV             R0, R4                                                 ; +0x76, 0x30728e\nLDR             R3, [R3,#8]                                            ; +0x78, 0x307290\nBLX             R3                                                     ; +0x7a, 0x307292\nMOV             R0, R5                                                 ; +0x7c, 0x307294\nPOP.W           {R4-R8,PC}                                             ; +0x7e, 0x307296", "xrefs": [], "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"}