{"type": "func", "start": 3962800, "end": 3963010, "name": "CCSpritePart::createWithSpriteFrameName", "pseudocode": "// \n// CCSpritePart::createWithSpriteFrameName from 0x3c77b0 to 0x3c7882 (210 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::initWithAnimDesc @ 0x3c7bee\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:46:35 +0000\n// \n\nint __fastcall CCSpritePart::createWithSpriteFrameName(CCSpritePart *this, const char *a2, int a3, int a4)\n{\n  int v5; // r4\n  size_t v6; // r0\n  CCSpritePart *v8; // [sp+0h] [bp-10h] BYREF\n  const char *v9; // [sp+4h] [bp-Ch]\n  int v10; // [sp+8h] [bp-8h]\n  int v11; // [sp+Ch] [bp-4h]\n\n  v8 = this;\n  v9 = a2;\n  v10 = a3;\n  v11 = a4;\n  v5 = operator new(0x218u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v5);\n  *(_DWORD *)(v5 + 508) = 0;\n  *(_DWORD *)(v5 + 512) = 0;\n  *(_BYTE *)(v5 + 516) = 0;\n  *(_DWORD *)v5 = &off_C855F0;\n  *(_BYTE *)(v5 + 517) = 0;\n  *(_BYTE *)(v5 + 518) = 0;\n  *(_DWORD *)(v5 + 264) = &off_C8586C;\n  *(_DWORD *)(v5 + 280) = &off_C858AC;\n  *(_BYTE *)(v5 + 519) = 0;\n  *(_DWORD *)(v5 + 520) = 0;\n  *(_DWORD *)(v5 + 524) = 0;\n  *(_DWORD *)(v5 + 528) = 0;\n  *(_DWORD *)(v5 + 532) = 0;\n  if ( CCSpritePlus::initWithSpriteFrameName((CCSpritePlus *)v5, (const char *)this) )\n  {\n    v8 = nullptr;\n    v9 = nullptr;\n    v10 = 0;\n    v6 = strlen((const char *)this);\n    std::string::__init((int *)&v8, this, v6);\n    std::string::operator=((unsigned __int8 *)(v5 + 520), (unsigned __int8 *)&v8);\n    std::string::~string((int)&v8);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n    return v5;\n  }\n  else\n  {\n    (*(void (__fastcall **)(int))(*(_DWORD *)v5 + 8))(v5);\n    return 0;\n  }\n}", "assembly": "; \n; CCSpritePart::createWithSpriteFrameName from 0x3c77b0 to 0x3c7882 (210 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::initWithAnimDesc @ 0x3c7bee\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:46:35 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x3c77b0\nMOV             R8, R0                                                 ; +0x4, 0x3c77b4\nLDR             R6, =(__stack_chk_guard_ptr - 0x3C77C0)                ; +0x6, 0x3c77b6\nMOV.W           R0, #0x218; unsigned int                               ; +0x8, 0x3c77b8\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3c77bc\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x3c77be\nLDR             R3, [R6]                                               ; +0x10, 0x3c77c0\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x12, 0x3c77c2\nBL              _Znwj; operator new(uint)                              ; +0x14, 0x3c77c4\nMOV             R4, R0                                                 ; +0x18, 0x3c77c8\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x1a, 0x3c77ca\nLDR             R3, =(_ZTV12CCSpritePart_ptr - 0x3C77DC)               ; +0x1e, 0x3c77ce\nMOVS            R5, #0                                                 ; +0x20, 0x3c77d0\nMOV             R0, R4; this                                           ; +0x22, 0x3c77d2\nSTR.W           R5, [R4,#0x1FC]                                        ; +0x24, 0x3c77d4\nADD             R3, PC; _ZTV12CCSpritePart_ptr                         ; +0x28, 0x3c77d8\nLDR             R3, [R3]; `vtable for'CCSpritePart ...                 ; +0x2a, 0x3c77da\nSTR.W           R5, [R4,#0x200]                                        ; +0x2c, 0x3c77dc\nADD.W           R2, R3, #8                                             ; +0x30, 0x3c77e0\nSTRB.W          R5, [R4,#0x204]                                        ; +0x34, 0x3c77e4\nSTR             R2, [R4]                                               ; +0x38, 0x3c77e8\nMOV             R1, R8; char *                                         ; +0x3a, 0x3c77ea\nADD.W           R2, R3, #0x284                                         ; +0x3c, 0x3c77ec\nSTRB.W          R5, [R4,#0x205]                                        ; +0x40, 0x3c77f0\nADD.W           R3, R3, #0x2C4                                         ; +0x44, 0x3c77f4\nSTRB.W          R5, [R4,#0x206]                                        ; +0x48, 0x3c77f8\nSTR.W           R2, [R4,#0x108]                                        ; +0x4c, 0x3c77fc\nSTR.W           R3, [R4,#0x118]                                        ; +0x50, 0x3c7800\nSTRB.W          R5, [R4,#0x207]                                        ; +0x54, 0x3c7804\nSTR.W           R5, [R4,#0x208]                                        ; +0x58, 0x3c7808\nSTR.W           R5, [R4,#0x20C]                                        ; +0x5c, 0x3c780c\nSTR.W           R5, [R4,#0x210]                                        ; +0x60, 0x3c7810\nSTR.W           R5, [R4,#0x214]                                        ; +0x64, 0x3c7814\nBL              _ZN12CCSpritePlus23initWithSpriteFrameNameEPKc; CCSpritePlus::initWithSpriteFrameName(char const*) ; +0x68, 0x3c7818\nMOV             R7, R0                                                 ; +0x6c, 0x3c781c\nCBNZ            R0, loc_3C7834                                         ; +0x6e, 0x3c781e\nB               loc_3C7870                                             ; +0x70, 0x3c7820\nMOV             R0, R4; void *                                         ; +0x72, 0x3c7822\nBL              _ZdlPv; operator delete(void *)                        ; +0x74, 0x3c7824\nB               loc_3C7830                                             ; +0x78, 0x3c7828\nMOV             R0, R5                                                 ; +0x7a, 0x3c782a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7c, 0x3c782c\nBL              __cxa_end_cleanup                                      ; +0x80, 0x3c7830\nMOV             R0, R8; char *                                         ; +0x84, 0x3c7834\nSTR             R5, [SP,#0x10+var_10]                                  ; +0x86, 0x3c7836\nSTR             R5, [SP,#0x10+var_C]                                   ; +0x88, 0x3c7838\nSTR             R5, [SP,#0x10+var_8]                                   ; +0x8a, 0x3c783a\nBLX             strlen                                                 ; +0x8c, 0x3c783c\nMOV             R1, R8                                                 ; +0x90, 0x3c7840\nMOV             R5, SP                                                 ; +0x92, 0x3c7842\nMOV             R2, R0                                                 ; +0x94, 0x3c7844\nMOV             R0, SP                                                 ; +0x96, 0x3c7846\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x98, 0x3c7848\nADD.W           R0, R4, #0x208                                         ; +0x9c, 0x3c784c\nMOV             R1, SP                                                 ; +0xa0, 0x3c7850\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xa2, 0x3c7852\nMOV             R0, R5                                                 ; +0xa6, 0x3c7856\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa8, 0x3c7858\nMOV             R0, R4; this                                           ; +0xac, 0x3c785c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xae, 0x3c785e\nMOV             R0, R4                                                 ; +0xb2, 0x3c7862\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xb4, 0x3c7864\nLDR             R3, [R6]                                               ; +0xb6, 0x3c7866\nCMP             R2, R3                                                 ; +0xb8, 0x3c7868\nBEQ             loc_3C787C                                             ; +0xba, 0x3c786a\nBLX             __stack_chk_fail                                       ; +0xbc, 0x3c786c\nLDR             R3, [R4]                                               ; +0xc0, 0x3c7870\nMOV             R0, R4                                                 ; +0xc2, 0x3c7872\nLDR             R3, [R3,#8]                                            ; +0xc4, 0x3c7874\nBLX             R3                                                     ; +0xc6, 0x3c7876\nMOV             R0, R7                                                 ; +0xc8, 0x3c7878\nB               loc_3C7864                                             ; +0xca, 0x3c787a\nADD             SP, SP, #0x10                                          ; +0xcc, 0x3c787c\nPOP.W           {R4-R8,PC}                                             ; +0xce, 0x3c787e", "xrefs": ["CCPartAnimSprite::initWithAnimDesc @ 0x3c7bee"], "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"}