{"type": "func", "start": 4140708, "end": 4140824, "name": "CCSpriteGrayscale::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteGrayscale::createWithSpriteFrame from 0x3f2ea4 to 0x3f2f18 (116 bytes)\n// \n// 1 xrefs:\n// > CCSpriteGrayscale::createWithSpriteFrameName @ 0x3f2f3a\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::createWithSpriteFrame(\n        CCSpriteGrayscale *this,\n        cocos2d::CCSpriteFrame *a2)\n{\n  CCSpriteWithHue *v3; // r0\n  CCSpriteWithHue *v4; // r4\n\n  v3 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v4 = v3;\n  if ( !v3 )\n    return v4;\n  memset(v3, 0, 0x23Cu);\n  CCSpriteWithHue::CCSpriteWithHue(v4);\n  *(_DWORD *)v4 = &off_C8B898;\n  *((_DWORD *)v4 + 66) = &off_C8BB18;\n  *((_DWORD *)v4 + 70) = &off_C8BB58;\n  if ( this && CCSpriteWithHue::initWithSpriteFrame(v4, this) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v4 + 8))(v4);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteGrayscale::createWithSpriteFrame from 0x3f2ea4 to 0x3f2f18 (116 bytes)\n; \n; 1 xrefs:\n; > CCSpriteGrayscale::createWithSpriteFrameName @ 0x3f2f3a\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            {R4-R6,LR}                                             ; +0x0, 0x3f2ea4\nMOV             R6, R0                                                 ; +0x2, 0x3f2ea6\nLDR             R5, =(_ZSt7nothrow_ptr - 0x3F2EB2)                     ; +0x4, 0x3f2ea8\nMOV.W           R0, #0x23C; unsigned int                               ; +0x6, 0x3f2eaa\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0xa, 0x3f2eae\nLDR             R5, [R5]; std::nothrow ...                             ; +0xc, 0x3f2eb0\nMOV             R1, R5; std::nothrow_t *                               ; +0xe, 0x3f2eb2\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x10, 0x3f2eb4\nMOV             R4, R0                                                 ; +0x14, 0x3f2eb8\nCBZ             R0, loc_3F2F08                                         ; +0x16, 0x3f2eba\nMOVS            R1, #0; int                                            ; +0x18, 0x3f2ebc\nMOV.W           R2, #0x23C; size_t                                     ; +0x1a, 0x3f2ebe\nBLX             memset                                                 ; +0x1e, 0x3f2ec2\nMOV             R0, R4; this                                           ; +0x22, 0x3f2ec6\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x24, 0x3f2ec8\nLDR             R3, =(_ZTV17CCSpriteGrayscale_ptr - 0x3F2ED2)          ; +0x28, 0x3f2ecc\nADD             R3, PC; _ZTV17CCSpriteGrayscale_ptr                    ; +0x2a, 0x3f2ece\nLDR             R3, [R3]; `vtable for'CCSpriteGrayscale ...            ; +0x2c, 0x3f2ed0\nADD.W           R2, R3, #8                                             ; +0x2e, 0x3f2ed2\nSTR             R2, [R4]                                               ; +0x32, 0x3f2ed6\nADD.W           R2, R3, #0x288                                         ; +0x34, 0x3f2ed8\nADD.W           R3, R3, #0x2C8                                         ; +0x38, 0x3f2edc\nSTR.W           R2, [R4,#0x108]                                        ; +0x3c, 0x3f2ee0\nSTR.W           R3, [R4,#0x118]                                        ; +0x40, 0x3f2ee4\nCBZ             R6, loc_3F2F0C                                         ; +0x44, 0x3f2ee8\nMOV             R0, R4; this                                           ; +0x46, 0x3f2eea\nMOV             R1, R6; cocos2d::CCSpriteFrame *                       ; +0x48, 0x3f2eec\nBL              _ZN15CCSpriteWithHue19initWithSpriteFrameEPN7cocos2d13CCSpriteFrameE; CCSpriteWithHue::initWithSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x4a, 0x3f2eee\nCBZ             R0, loc_3F2F0C                                         ; +0x4e, 0x3f2ef2\nMOV             R0, R4; this                                           ; +0x50, 0x3f2ef4\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x52, 0x3f2ef6\nB               loc_3F2F08                                             ; +0x56, 0x3f2efa\nMOV             R0, R4; void *                                         ; +0x58, 0x3f2efc\nMOV             R1, R5; std::nothrow_t *                               ; +0x5a, 0x3f2efe\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x5c, 0x3f2f00\nBL              __cxa_end_cleanup                                      ; +0x60, 0x3f2f04\nMOV             R0, R4                                                 ; +0x64, 0x3f2f08\nPOP             {R4-R6,PC}                                             ; +0x66, 0x3f2f0a\nLDR             R3, [R4]                                               ; +0x68, 0x3f2f0c\nMOV             R0, R4                                                 ; +0x6a, 0x3f2f0e\nLDR             R3, [R3,#8]                                            ; +0x6c, 0x3f2f10\nBLX             R3                                                     ; +0x6e, 0x3f2f12\nMOVS            R0, #0                                                 ; +0x70, 0x3f2f14\nPOP             {R4-R6,PC}                                             ; +0x72, 0x3f2f16", "xrefs": ["CCSpriteGrayscale::createWithSpriteFrameName @ 0x3f2f3a"], "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"}