{"type": "func", "start": 5123248, "end": 5123412, "name": "AnimatedShopKeeper::create", "pseudocode": "// \n// AnimatedShopKeeper::create from 0x4e2cb0 to 0x4e2d54 (164 bytes)\n// \n// 1 xrefs:\n// > GJShopLayer::init @ 0x4e3330\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\nAnimatedShopKeeper *AnimatedShopKeeper::create(ShopType a1)\n{\n  AnimatedShopKeeper *v2; // r4\n  AnimatedShopKeeper_vtbl *v3; // r3\n  int *v4; // r0\n\n  v2 = (AnimatedShopKeeper *)operator new(0x238u);\n  cocos2d::CCSprite::CCSprite(v2);\n  v2->m_animationManager = nullptr;\n  v2->m_sprite = nullptr;\n  v2->m_unkString1.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v2->m_activeTween.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v2->m_currentAnim.m_data.m_data = (stl::StringData<char>::Internal *)&unk_ACDDA8;\n  v2->m_fbfSprite = nullptr;\n  v2->m_paSprite = nullptr;\n  v2->m_spriteMode = 0;\n  v2->CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (AnimatedShopKeeper_vtbl *)&off_A792F0;\n  v2->m_delegate = nullptr;\n  v2->CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A79564;\n  v2->CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A795A4;\n  v2->m_type = 0;\n  v2->m_idleInt1 = 0;\n  v2->m_idleInt2 = 0;\n  v2->m_looking = 0;\n  v2->m_reacting = 0;\n  v2->m_reactCount = 0;\n  v2->m_gruntIndex = 0;\n  if ( AnimatedShopKeeper::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->CCAnimatedSprite::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = (int *)v2;\n    v2 = nullptr;\n    v3->~AnimatedShopKeeper_0((AnimatedShopKeeper *)v4);\n  }\n  return v2;\n}", "assembly": "; \n; AnimatedShopKeeper::create from 0x4e2cb0 to 0x4e2d54 (164 bytes)\n; \n; 1 xrefs:\n; > GJShopLayer::init @ 0x4e3330\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            {R3-R5,LR}                                             ; +0x0, 0x4e2cb0\nMOV             R5, R0                                                 ; +0x2, 0x4e2cb2\nMOV.W           R0, #0x238; unsigned int                               ; +0x4, 0x4e2cb4\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x4e2cb8\nMOV             R4, R0                                                 ; +0xc, 0x4e2cbc\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0xe, 0x4e2cbe\nLDR             R2, =(off_AB5BA0 - 0x4E2CD0)                           ; +0x12, 0x4e2cc2\nMOVS            R3, #0                                                 ; +0x14, 0x4e2cc4\nMOV             R0, R4; this                                           ; +0x16, 0x4e2cc6\nSTR.W           R3, [R4,#0x204]                                        ; +0x18, 0x4e2cc8\nADD             R2, PC; off_AB5BA0                                     ; +0x1c, 0x4e2ccc\nLDR             R2, [R2]; dword_ACDD9C                                 ; +0x1e, 0x4e2cce\nSTR.W           R3, [R4,#0x208]                                        ; +0x20, 0x4e2cd0\nADDS            R2, #0xC                                               ; +0x24, 0x4e2cd4\nSTR.W           R2, [R4,#0x1FC]                                        ; +0x26, 0x4e2cd6\nSTR.W           R2, [R4,#0x200]                                        ; +0x2a, 0x4e2cda\nSTR.W           R2, [R4,#0x218]                                        ; +0x2e, 0x4e2cde\nLDR             R2, =(_ZTV18AnimatedShopKeeper_ptr - 0x4E2CEC)         ; +0x32, 0x4e2ce2\nSTR.W           R3, [R4,#0x20C]                                        ; +0x34, 0x4e2ce4\nADD             R2, PC; _ZTV18AnimatedShopKeeper_ptr                   ; +0x38, 0x4e2ce8\nLDR             R2, [R2]; `vtable for'AnimatedShopKeeper ...           ; +0x3a, 0x4e2cea\nSTR.W           R3, [R4,#0x210]                                        ; +0x3c, 0x4e2cec\nADD.W           R1, R2, #8                                             ; +0x40, 0x4e2cf0\nSTR.W           R3, [R4,#0x214]                                        ; +0x44, 0x4e2cf4\nSTR             R1, [R4]                                               ; +0x48, 0x4e2cf8\nADD.W           R1, R2, #0x27C                                         ; +0x4a, 0x4e2cfa\nSTR.W           R3, [R4,#0x21C]                                        ; +0x4e, 0x4e2cfe\nADD.W           R2, R2, #0x2BC                                         ; +0x52, 0x4e2d02\nSTR.W           R1, [R4,#0x108]                                        ; +0x56, 0x4e2d06\nMOV             R1, R5                                                 ; +0x5a, 0x4e2d0a\nSTR.W           R2, [R4,#0x118]                                        ; +0x5c, 0x4e2d0c\nSTR.W           R3, [R4,#0x220]                                        ; +0x60, 0x4e2d10\nSTR.W           R3, [R4,#0x224]                                        ; +0x64, 0x4e2d14\nSTR.W           R3, [R4,#0x228]                                        ; +0x68, 0x4e2d18\nSTRB.W          R3, [R4,#0x22C]                                        ; +0x6c, 0x4e2d1c\nSTRB.W          R3, [R4,#0x22D]                                        ; +0x70, 0x4e2d20\nSTR.W           R3, [R4,#0x230]                                        ; +0x74, 0x4e2d24\nSTR.W           R3, [R4,#0x234]                                        ; +0x78, 0x4e2d28\nBL              _ZN18AnimatedShopKeeper4initE8ShopType; AnimatedShopKeeper::init(ShopType) ; +0x7c, 0x4e2d2c\nMOV             R5, R0                                                 ; +0x80, 0x4e2d30\nCBZ             R0, loc_4E2D46                                         ; +0x82, 0x4e2d32\nMOV             R0, R4; this                                           ; +0x84, 0x4e2d34\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x86, 0x4e2d36\nB               loc_4E2D50                                             ; +0x8a, 0x4e2d3a\nMOV             R0, R4; p                                              ; +0x8c, 0x4e2d3c\nBL              _ZdlPv; operator delete(void *)                        ; +0x8e, 0x4e2d3e\nBL              __cxa_end_cleanup                                      ; +0x92, 0x4e2d42\nLDR             R3, [R4]                                               ; +0x96, 0x4e2d46\nMOV             R0, R4                                                 ; +0x98, 0x4e2d48\nMOV             R4, R5                                                 ; +0x9a, 0x4e2d4a\nLDR             R3, [R3,#8]                                            ; +0x9c, 0x4e2d4c\nBLX             R3                                                     ; +0x9e, 0x4e2d4e\nMOV             R0, R4                                                 ; +0xa0, 0x4e2d50\nPOP             {R3-R5,PC}                                             ; +0xa2, 0x4e2d52", "xrefs": ["GJShopLayer::init @ 0x4e3330"], "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"}