{"type": "func", "start": 3043184, "end": 3043254, "name": "CCPartAnimSprite::getSpriteForKey", "pseudocode": "// \n// CCPartAnimSprite::getSpriteForKey from 0x2e6f70 to 0x2e6fb6 (70 bytes)\n// \n// 3 xrefs:\n// > GJRobotSprite::updateColors @ 0x4b7fb8\n// > GJRobotSprite::updateColors @ 0x4b7fc6\n// > GJRobotSprite::updateColors @ 0x4b7fd4\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\nCCSpritePart *CCPartAnimSprite::getSpriteForKey(CCPartAnimSprite *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_spritePartIDs; // r6\n  CCSpritePart *v3; // r6\n  std::string v5; // [sp+8h] [bp-8h] BYREF\n\n  m_spritePartIDs = a1->m_spritePartIDs;\n  sub_776584((int)&v5, (char *)a2);\n  v3 = (CCSpritePart *)cocos2d::CCDictionary::objectForKey(m_spritePartIDs, &v5);\n  sub_774008(&v5);\n  return v3;\n}", "assembly": "; \n; CCPartAnimSprite::getSpriteForKey from 0x2e6f70 to 0x2e6fb6 (70 bytes)\n; \n; 3 xrefs:\n; > GJRobotSprite::updateColors @ 0x4b7fb8\n; > GJRobotSprite::updateColors @ 0x4b7fc6\n; > GJRobotSprite::updateColors @ 0x4b7fd4\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            {R0-R6,LR}                                             ; +0x0, 0x2e6f70\nADD             R5, SP, #0x10+var_8                                    ; +0x2, 0x2e6f72\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E6F82)                ; +0x4, 0x2e6f74\nADD             R2, SP, #0x10+var_C                                    ; +0x6, 0x2e6f76\nLDR.W           R6, [R0,#0x1FC]                                        ; +0x8, 0x2e6f78\nMOV             R0, R5; int                                            ; +0xc, 0x2e6f7c\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e6f7e\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x2e6f80\nLDR             R3, [R4]                                               ; +0x12, 0x2e6f82\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x2e6f84\nBL              sub_776584                                             ; +0x16, 0x2e6f86\nMOV             R0, R6                                                 ; +0x1a, 0x2e6f8a\nMOV             R1, R5                                                 ; +0x1c, 0x2e6f8c\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x1e, 0x2e6f8e\nMOV             R6, R0                                                 ; +0x22, 0x2e6f92\nMOV             R0, R5                                                 ; +0x24, 0x2e6f94\nBL              sub_774008                                             ; +0x26, 0x2e6f96\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x2a, 0x2e6f9a\nLDR             R3, [R4]                                               ; +0x2c, 0x2e6f9c\nMOV             R0, R6                                                 ; +0x2e, 0x2e6f9e\nCMP             R2, R3                                                 ; +0x30, 0x2e6fa0\nBEQ             loc_2E6FB2                                             ; +0x32, 0x2e6fa2\nBLX             __stack_chk_fail                                       ; +0x34, 0x2e6fa4\nMOV             R0, R5                                                 ; +0x38, 0x2e6fa8\nBL              sub_774008                                             ; +0x3a, 0x2e6faa\nBL              __cxa_end_cleanup                                      ; +0x3e, 0x2e6fae\nADD             SP, SP, #0x10                                          ; +0x42, 0x2e6fb2\nPOP             {R4-R6,PC}                                             ; +0x44, 0x2e6fb4", "xrefs": ["GJRobotSprite::updateColors @ 0x4b7fb8", "GJRobotSprite::updateColors @ 0x4b7fc6", "GJRobotSprite::updateColors @ 0x4b7fd4"], "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"}