{"type": "func", "start": 4138536, "end": 4138642, "name": "CCSpriteWithHue::create", "pseudocode": "// \n// CCSpriteWithHue::create from 0x3f2628 to 0x3f2692 (106 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:14 +0000\n// \n\nCCSpriteWithHue *__fastcall CCSpriteWithHue::create(int a1, int a2)\n{\n  CCSpriteWithHue *v4; // r0\n  CCSpriteWithHue *v5; // r4\n  int v6; // r1\n\n  v4 = (CCSpriteWithHue *)operator new(0x23Cu, (const std::nothrow_t *)&std::nothrow);\n  v5 = v4;\n  if ( !v4 )\n    return v5;\n  memset(v4, 0, 0x23Cu);\n  CCSpriteWithHue::CCSpriteWithHue(v5);\n  if ( (*(_BYTE *)a1 & 1) != 0 )\n    v6 = *(_DWORD *)(a1 + 8);\n  else\n    v6 = a1 + 1;\n  if ( (*(int (__fastcall **)(CCSpriteWithHue *, int, int))(*(_DWORD *)v5 + 528))(v5, v6, a2) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n    return v5;\n  }\n  (*(void (__fastcall **)(CCSpriteWithHue *))(*(_DWORD *)v5 + 8))(v5);\n  return nullptr;\n}", "assembly": "; \n; CCSpriteWithHue::create from 0x3f2628 to 0x3f2692 (106 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:14 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3f2628\nMOV             R5, R0                                                 ; +0x2, 0x3f262a\nLDR             R6, =(_ZSt7nothrow_ptr - 0x3F2638)                     ; +0x4, 0x3f262c\nMOV             R7, R1                                                 ; +0x6, 0x3f262e\nMOV.W           R0, #0x23C; unsigned int                               ; +0x8, 0x3f2630\nADD             R6, PC; _ZSt7nothrow_ptr                               ; +0xc, 0x3f2634\nLDR             R6, [R6]; std::nothrow ...                             ; +0xe, 0x3f2636\nMOV             R1, R6; std::nothrow_t *                               ; +0x10, 0x3f2638\nBL              _ZnwjRKSt9nothrow_t; operator new(uint,std::nothrow_t const&) ; +0x12, 0x3f263a\nMOV             R4, R0                                                 ; +0x16, 0x3f263e\nCBZ             R0, loc_3F2682                                         ; +0x18, 0x3f2640\nMOVS            R1, #0; int                                            ; +0x1a, 0x3f2642\nMOV.W           R2, #0x23C; size_t                                     ; +0x1c, 0x3f2644\nBLX             memset                                                 ; +0x20, 0x3f2648\nMOV             R0, R4; this                                           ; +0x24, 0x3f264c\nBL              _ZN15CCSpriteWithHueC2Ev; CCSpriteWithHue::CCSpriteWithHue(void) ; +0x26, 0x3f264e\nB               loc_3F2660                                             ; +0x2a, 0x3f2652\nMOV             R0, R4; void *                                         ; +0x2c, 0x3f2654\nMOV             R1, R6; std::nothrow_t *                               ; +0x2e, 0x3f2656\nBL              _ZdlPvRKSt9nothrow_t; operator delete(void *,std::nothrow_t const&) ; +0x30, 0x3f2658\nBL              __cxa_end_cleanup                                      ; +0x34, 0x3f265c\nLDRB            R2, [R5]                                               ; +0x38, 0x3f2660\nLDR             R3, [R4]                                               ; +0x3a, 0x3f2662\nLSLS            R2, R2, #0x1F                                          ; +0x3c, 0x3f2664\nLDR.W           R3, [R3,#0x210]                                        ; +0x3e, 0x3f2666\nBPL             loc_3F2670                                             ; +0x42, 0x3f266a\nLDR             R1, [R5,#8]                                            ; +0x44, 0x3f266c\nB               loc_3F2672                                             ; +0x46, 0x3f266e\nADDS            R1, R5, #1                                             ; +0x48, 0x3f2670\nMOV             R0, R4                                                 ; +0x4a, 0x3f2672\nMOV             R2, R7                                                 ; +0x4c, 0x3f2674\nBLX             R3                                                     ; +0x4e, 0x3f2676\nMOV             R5, R0                                                 ; +0x50, 0x3f2678\nCBZ             R0, loc_3F2686                                         ; +0x52, 0x3f267a\nMOV             R0, R4; this                                           ; +0x54, 0x3f267c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x56, 0x3f267e\nMOV             R0, R4                                                 ; +0x5a, 0x3f2682\nPOP             {R3-R7,PC}                                             ; +0x5c, 0x3f2684\nLDR             R3, [R4]                                               ; +0x5e, 0x3f2686\nMOV             R0, R4                                                 ; +0x60, 0x3f2688\nLDR             R3, [R3,#8]                                            ; +0x62, 0x3f268a\nBLX             R3                                                     ; +0x64, 0x3f268c\nMOV             R0, R5                                                 ; +0x66, 0x3f268e\nPOP             {R3-R7,PC}                                             ; +0x68, 0x3f2690", "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"}