{"type": "func", "start": 3172864, "end": 3172970, "name": "CCSpriteWithHue::createWithTexture", "pseudocode": "// \n// CCSpriteWithHue::createWithTexture from 0x306a00 to 0x306a6a (106 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\nCCSpriteWithHue *CCSpriteWithHue::createWithTexture(cocos2d::CCTexture2D *a1)\n{\n  int v1; // r1\n  int v2; // r2\n  int v4; // r7\n  int v5; // r6\n  CCSpriteWithHue *v6; // r0\n  CCSpriteWithHue *v7; // r4\n\n  v4 = v1;\n  v5 = v2;\n  v6 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v7 = v6;\n  if ( !v6 )\n    return v7;\n  memset(v6, 0, sizeof(CCSpriteWithHue));\n  CCSpriteWithHue::CCSpriteWithHue(v7);\n  if ( ((int (__fastcall *)(CCSpriteWithHue *, cocos2d::CCTexture2D *, int, int))v7->initWithTexture_1)(v7, a1, v4, v5) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n    return v7;\n  }\n  v7->~CCSpriteWithHue_0(v7);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteWithHue::createWithTexture from 0x306a00 to 0x306a6a (106 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, 0x306a00\nMOV             R8, R0                                                 ; +0x4, 0x306a04\nLDR             R5, =(_ZSt7nothrow_ptr - 0x306A14)                     ; +0x6, 0x306a06\nMOV             R7, R1                                                 ; +0x8, 0x306a08\nMOV.W           R0, #0x23C; unsigned int                               ; +0xa, 0x306a0a\nMOV             R6, R2                                                 ; +0xe, 0x306a0e\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0x10, 0x306a10\nLDR             R5, [R5]; std::nothrow ...                             ; +0x12, 0x306a12\nMOV             R1, R5; std::nothrow_t *                               ; +0x14, 0x306a14\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x16, 0x306a16\nMOV             R4, R0                                                 ; +0x1a, 0x306a1a\nCBZ             R0, loc_306A56                                         ; +0x1c, 0x306a1c\nMOVS            R1, #0; int                                            ; +0x1e, 0x306a1e\nMOV.W           R2, #0x23C; size_t                                     ; +0x20, 0x306a20\nBLX             memset                                                 ; +0x24, 0x306a24\nMOV             R0, R4; this                                           ; +0x28, 0x306a28\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x2a, 0x306a2a\nB               loc_306A3C                                             ; +0x2e, 0x306a2e\nMOV             R0, R4; p                                              ; +0x30, 0x306a30\nMOV             R1, R5; std::nothrow_t *                               ; +0x32, 0x306a32\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x34, 0x306a34\nBL              __cxa_end_cleanup                                      ; +0x38, 0x306a38\nLDR             R3, [R4]                                               ; +0x3c, 0x306a3c\nMOV             R0, R4                                                 ; +0x3e, 0x306a3e\nMOV             R1, R8                                                 ; +0x40, 0x306a40\nMOV             R2, R7                                                 ; +0x42, 0x306a42\nLDR.W           R5, [R3,#0x1F8]                                        ; +0x44, 0x306a44\nMOV             R3, R6                                                 ; +0x48, 0x306a48\nBLX             R5                                                     ; +0x4a, 0x306a4a\nMOV             R5, R0                                                 ; +0x4c, 0x306a4c\nCBZ             R0, loc_306A5C                                         ; +0x4e, 0x306a4e\nMOV             R0, R4; this                                           ; +0x50, 0x306a50\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x52, 0x306a52\nMOV             R0, R4                                                 ; +0x56, 0x306a56\nPOP.W           {R4-R8,PC}                                             ; +0x58, 0x306a58\nLDR             R3, [R4]                                               ; +0x5c, 0x306a5c\nMOV             R0, R4                                                 ; +0x5e, 0x306a5e\nLDR             R3, [R3,#8]                                            ; +0x60, 0x306a60\nBLX             R3                                                     ; +0x62, 0x306a62\nMOV             R0, R5                                                 ; +0x64, 0x306a64\nPOP.W           {R4-R8,PC}                                             ; +0x66, 0x306a66", "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"}