{"type": "func", "start": 3962700, "end": 3962796, "name": "CCSpritePart::updateDisplayFrame", "pseudocode": "// \n// CCSpritePart::updateDisplayFrame from 0x3c774c to 0x3c77ac (96 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::changeTextureOfID @ 0x3c79f8\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::updateDisplayFrame(int a1, int a2)\n{\n  int v4; // r2\n  int v5; // r3\n  cocos2d::CCSpriteFrameCache *v6; // r0\n  int (__fastcall *v7)(int, int); // r5\n  cocos2d::CCSpriteFrameCache *v8; // r0\n  const char *v9; // r1\n  int v10; // r0\n  int v12[3]; // [sp+0h] [bp-14h] BYREF\n\n  std::string::basic_string(v12, a2);\n  CCSpritePart::frameChanged(a1, (unsigned __int8 *)v12, v4, v5);\n  v6 = (cocos2d::CCSpriteFrameCache *)std::string::~string((int)v12);\n  v7 = *(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 580);\n  v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);\n  if ( (*(_BYTE *)a2 & 1) != 0 )\n    v9 = *(const char **)(a2 + 8);\n  else\n    v9 = (const char *)(a2 + 1);\n  v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9);\n  return v7(a1, v10);\n}", "assembly": "; \n; CCSpritePart::updateDisplayFrame from 0x3c774c to 0x3c77ac (96 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::changeTextureOfID @ 0x3c79f8\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            {R4-R7,LR}                                             ; +0x0, 0x3c774c\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3c774e\nLDR             R6, =(__stack_chk_guard_ptr - 0x3C775C)                ; +0x4, 0x3c7750\nMOV             R7, R0                                                 ; +0x6, 0x3c7752\nMOV             R0, SP                                                 ; +0x8, 0x3c7754\nMOV             R4, R1                                                 ; +0xa, 0x3c7756\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3c7758\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x3c775a\nMOV             R5, SP                                                 ; +0x10, 0x3c775c\nLDR             R3, [R6]                                               ; +0x12, 0x3c775e\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x3c7760\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x16, 0x3c7762\nMOV             R0, R7                                                 ; +0x1a, 0x3c7766\nMOV             R1, SP                                                 ; +0x1c, 0x3c7768\nBL              _ZN12CCSpritePart12frameChangedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCSpritePart::frameChanged(std::string) ; +0x1e, 0x3c776a\nMOV             R0, SP                                                 ; +0x22, 0x3c776e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x24, 0x3c7770\nLDR             R3, [R7]                                               ; +0x28, 0x3c7774\nLDR.W           R5, [R3,#0x244]                                        ; +0x2a, 0x3c7776\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x2e, 0x3c777a\nLDRB            R3, [R4]                                               ; +0x32, 0x3c777e\nLSLS            R3, R3, #0x1F                                          ; +0x34, 0x3c7780\nITE PL                                                                 ; +0x36, 0x3c7782\nADDPL           R1, R4, #1                                             ; +0x38, 0x3c7784\nLDRMI           R1, [R4,#8]; char *                                    ; +0x3a, 0x3c7786\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x3c, 0x3c7788\nMOV             R1, R0                                                 ; +0x40, 0x3c778c\nMOV             R0, R7                                                 ; +0x42, 0x3c778e\nBLX             R5                                                     ; +0x44, 0x3c7790\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x46, 0x3c7792\nLDR             R3, [R6]                                               ; +0x48, 0x3c7794\nCMP             R2, R3                                                 ; +0x4a, 0x3c7796\nBEQ             loc_3C77A8                                             ; +0x4c, 0x3c7798\nBLX             __stack_chk_fail                                       ; +0x4e, 0x3c779a\nMOV             R0, R5                                                 ; +0x52, 0x3c779e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x54, 0x3c77a0\nBL              __cxa_end_cleanup                                      ; +0x58, 0x3c77a4\nADD             SP, SP, #0x14                                          ; +0x5c, 0x3c77a8\nPOP             {R4-R7,PC}                                             ; +0x5e, 0x3c77aa", "xrefs": ["CCPartAnimSprite::changeTextureOfID @ 0x3c79f8"], "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"}