{"type": "func", "start": 3172976, "end": 3173068, "name": "CCSpriteWithHue::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::createWithSpriteFrame from 0x306a70 to 0x306acc (92 bytes)\n// \n// 1 xrefs:\n// > CCSpriteWithHue::createWithSpriteFrameName @ 0x306ae2\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::createWithSpriteFrame(cocos2d::CCSpriteFrame *a1)\n{\n  CCSpriteWithHue *v2; // r0\n  CCSpriteWithHue *v3; // r4\n\n  v2 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v3 = v2;\n  if ( !v2 )\n    return v3;\n  memset(v2, 0, sizeof(CCSpriteWithHue));\n  CCSpriteWithHue::CCSpriteWithHue(v3);\n  if ( a1 && ((int (__fastcall *)(CCSpriteWithHue *, cocos2d::CCSpriteFrame *))v3->initWithSpriteFrame)(v3, a1) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n    return v3;\n  }\n  v3->~CCSpriteWithHue_0(v3);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteWithHue::createWithSpriteFrame from 0x306a70 to 0x306acc (92 bytes)\n; \n; 1 xrefs:\n; > CCSpriteWithHue::createWithSpriteFrameName @ 0x306ae2\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, 0x306a70\nMOV             R6, R0                                                 ; +0x2, 0x306a72\nLDR             R5, =(_ZSt7nothrow_ptr - 0x306A7E)                     ; +0x4, 0x306a74\nMOV.W           R0, #0x23C; unsigned int                               ; +0x6, 0x306a76\nADD             R5, PC; _ZSt7nothrow_ptr                               ; +0xa, 0x306a7a\nLDR             R5, [R5]; std::nothrow ...                             ; +0xc, 0x306a7c\nMOV             R1, R5; std::nothrow_t *                               ; +0xe, 0x306a7e\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x10, 0x306a80\nMOV             R4, R0                                                 ; +0x14, 0x306a84\nCBZ             R0, loc_306ABC                                         ; +0x16, 0x306a86\nMOVS            R1, #0; int                                            ; +0x18, 0x306a88\nMOV.W           R2, #0x23C; size_t                                     ; +0x1a, 0x306a8a\nBLX             memset                                                 ; +0x1e, 0x306a8e\nMOV             R0, R4; this                                           ; +0x22, 0x306a92\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x24, 0x306a94\nB               loc_306AA6                                             ; +0x28, 0x306a98\nMOV             R0, R4; p                                              ; +0x2a, 0x306a9a\nMOV             R1, R5; std::nothrow_t *                               ; +0x2c, 0x306a9c\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x2e, 0x306a9e\nBL              __cxa_end_cleanup                                      ; +0x32, 0x306aa2\nCBZ             R6, loc_306AC0                                         ; +0x36, 0x306aa6\nLDR             R3, [R4]                                               ; +0x38, 0x306aa8\nMOV             R0, R4                                                 ; +0x3a, 0x306aaa\nMOV             R1, R6                                                 ; +0x3c, 0x306aac\nLDR.W           R3, [R3,#0x1FC]                                        ; +0x3e, 0x306aae\nBLX             R3                                                     ; +0x42, 0x306ab2\nCBZ             R0, loc_306AC0                                         ; +0x44, 0x306ab4\nMOV             R0, R4; this                                           ; +0x46, 0x306ab6\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x48, 0x306ab8\nMOV             R0, R4                                                 ; +0x4c, 0x306abc\nPOP             {R4-R6,PC}                                             ; +0x4e, 0x306abe\nLDR             R3, [R4]                                               ; +0x50, 0x306ac0\nMOV             R0, R4                                                 ; +0x52, 0x306ac2\nLDR             R3, [R3,#8]                                            ; +0x54, 0x306ac4\nBLX             R3                                                     ; +0x56, 0x306ac6\nMOVS            R0, #0                                                 ; +0x58, 0x306ac8\nPOP             {R4-R6,PC}                                             ; +0x5a, 0x306aca", "xrefs": ["CCSpriteWithHue::createWithSpriteFrameName @ 0x306ae2"], "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"}