{"type": "func", "start": 4140568, "end": 4140698, "name": "CCSpriteGrayscale::createWithTexture", "pseudocode": "// \n// CCSpriteGrayscale::createWithTexture from 0x3f2e18 to 0x3f2e9a (130 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:47:15 +0000\n// \n\nCCSpriteWithHue *__fastcall CCSpriteGrayscale::createWithTexture(\n        CCSpriteGrayscale *this,\n        cocos2d::CCTexture2D *a2,\n        const cocos2d::CCRect *a3,\n        bool a4)\n{\n  char v6; // r6\n  CCSpriteWithHue *v7; // r0\n  CCSpriteWithHue *v8; // r4\n\n  v6 = (char)a3;\n  v7 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v8 = v7;\n  if ( !v7 )\n    return v8;\n  memset(v7, 0, 0x23Cu);\n  CCSpriteWithHue::CCSpriteWithHue(v8);\n  *(_DWORD *)v8 = &off_C8B898;\n  *((_DWORD *)v8 + 66) = &off_C8BB18;\n  *((_DWORD *)v8 + 70) = &off_C8BB58;\n  if ( CCSpriteWithHue::initWithTexture(v8, this, a2, v6) )\n  {\n    cocos2d::CCObject::autorelease(v8);\n    return v8;\n  }\n  (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v8 + 8))(v8);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithTexture from 0x3f2e18 to 0x3f2e9a (130 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:47:15 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3f2e18\nMOV             R8, R0                                                 ; +0x4, 0x3f2e1c\nLDR             R5, =(_ZSt7nothrow_ptr - 0x3F2E2C)                     ; +0x6, 0x3f2e1e\nMOV             R7, R1                                                 ; +0x8, 0x3f2e20\nMOV.W           R0, #0x23C; unsigned int                               ; +0xa, 0x3f2e22\nMOV             R6, R2                                                 ; +0xe, 0x3f2e26\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0x10, 0x3f2e28\nLDR             R5, [R5]; std::nothrow ...                             ; +0x12, 0x3f2e2a\nMOV             R1, R5; std::nothrow_t *                               ; +0x14, 0x3f2e2c\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x16, 0x3f2e2e\nMOV             R4, R0                                                 ; +0x1a, 0x3f2e32\nCBZ             R0, loc_3F2E86                                         ; +0x1c, 0x3f2e34\nMOVS            R1, #0; int                                            ; +0x1e, 0x3f2e36\nMOV.W           R2, #0x23C; size_t                                     ; +0x20, 0x3f2e38\nBLX             memset                                                 ; +0x24, 0x3f2e3c\nMOV             R0, R4; this                                           ; +0x28, 0x3f2e40\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x2a, 0x3f2e42\nLDR             R3, =(_ZTV17CCSpriteGrayscale_ptr - 0x3F2E50)          ; +0x2e, 0x3f2e46\nMOV             R0, R4; this                                           ; +0x30, 0x3f2e48\nMOV             R1, R8; cocos2d::CCTexture2D *                         ; +0x32, 0x3f2e4a\nADD             R3, PC; _ZTV17CCSpriteGrayscale_ptr                    ; +0x34, 0x3f2e4c\nLDR             R3, [R3]; `vtable for'CCSpriteGrayscale ...            ; +0x36, 0x3f2e4e\nADD.W           R2, R3, #8                                             ; +0x38, 0x3f2e50\nSTR             R2, [R4]                                               ; +0x3c, 0x3f2e54\nADD.W           R2, R3, #0x288                                         ; +0x3e, 0x3f2e56\nADD.W           R3, R3, #0x2C8                                         ; +0x42, 0x3f2e5a\nSTR.W           R2, [R4,#0x108]                                        ; +0x46, 0x3f2e5e\nMOV             R2, R7; cocos2d::CCRect *                              ; +0x4a, 0x3f2e62\nSTR.W           R3, [R4,#0x118]                                        ; +0x4c, 0x3f2e64\nMOV             R3, R6; bool                                           ; +0x50, 0x3f2e68\nBL              _ZN15CCSpriteWithHue15initWithTextureEPN7cocos2d11CCTexture2DERKNS0_6CCRectEb; CCSpriteWithHue::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const&,bool) ; +0x52, 0x3f2e6a\nMOV             R5, R0                                                 ; +0x56, 0x3f2e6e\nCBZ             R0, loc_3F2E8C                                         ; +0x58, 0x3f2e70\nMOV             R0, R4; this                                           ; +0x5a, 0x3f2e72\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x5c, 0x3f2e74\nB               loc_3F2E86                                             ; +0x60, 0x3f2e78\nMOV             R0, R4; void *                                         ; +0x62, 0x3f2e7a\nMOV             R1, R5; std::nothrow_t *                               ; +0x64, 0x3f2e7c\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x66, 0x3f2e7e\nBL              __cxa_end_cleanup                                      ; +0x6a, 0x3f2e82\nMOV             R0, R4                                                 ; +0x6e, 0x3f2e86\nPOP.W           {R4-R8,PC}                                             ; +0x70, 0x3f2e88\nLDR             R3, [R4]                                               ; +0x74, 0x3f2e8c\nMOV             R0, R4                                                 ; +0x76, 0x3f2e8e\nLDR             R3, [R3,#8]                                            ; +0x78, 0x3f2e90\nBLX             R3                                                     ; +0x7a, 0x3f2e92\nMOV             R0, R5                                                 ; +0x7c, 0x3f2e94\nPOP.W           {R4-R8,PC}                                             ; +0x7e, 0x3f2e96", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}