{"type": "func", "start": 6361544, "end": 6361704, "name": "AnimatedShopKeeper::init", "pseudocode": "// \n// AnimatedShopKeeper::init from 0x6111c8 to 0x611268 (160 bytes)\n// \n// 1 xrefs:\n// > AnimatedShopKeeper::create @ 0x61130c\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:54:51 +0000\n// \n\nint __fastcall AnimatedShopKeeper::init(CCAnimatedSprite *this, int a2)\n{\n  const char *v3; // r1\n  int v4; // r5\n  int v5; // s15\n  SpriteAnimationManager *v6; // r0\n\n  *((_DWORD *)this + 142) = a2;\n  switch ( a2 )\n  {\n    case 1:\n      v3 = \"GJShopKeeper2\";\n      break;\n    case 2:\n      v3 = \"GJShopKeeper3\";\n      break;\n    case 3:\n      v3 = \"GJShopKeeper4\";\n      break;\n    case 4:\n      v3 = \"GJShopKeeper5\";\n      break;\n    default:\n      v3 = \"GJShopKeeper\";\n      break;\n  }\n  v4 = CCAnimatedSprite::initWithType(this, v3, nullptr, nullptr);\n  if ( v4 )\n  {\n    *((_DWORD *)this + 144) = (int)(float)((float)((float)((float)rand() * 4.6566e-10) * 5.0) + 10.0);\n    v5 = rand();\n    v6 = *((SpriteAnimationManager **)this + 133);\n    *((_DWORD *)this + 143) = (int)(float)((float)((float)((float)v5 * 4.6566e-10) + (float)((float)v5 * 4.6566e-10))\n                                         + 1.0);\n    SpriteAnimationManager::stopAnimations(v6);\n  }\n  return v4;\n}", "assembly": "; \n; AnimatedShopKeeper::init from 0x6111c8 to 0x611268 (160 bytes)\n; \n; 1 xrefs:\n; > AnimatedShopKeeper::create @ 0x61130c\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:54:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x6111c8\nMOV             R4, R0                                                 ; +0x2, 0x6111ca\nVPUSH           {D8}                                                   ; +0x4, 0x6111cc\nSTR.W           R1, [R0,#0x238]                                        ; +0x8, 0x6111d0\nSUBS            R1, #1; switch 4 cases                                 ; +0xc, 0x6111d4\nCMP             R1, #3                                                 ; +0xe, 0x6111d6\nBHI             def_6111DA; jumptable 006111DA default case            ; +0x10, 0x6111d8\nTBB.W           [PC,R1]; switch jump                                   ; +0x12, 0x6111da\nDCB 0xE; jump table for switch statement                               ; +0x16, 0x6111de\nDCB 2                                                                  ; +0x17, 0x6111df\nDCB 5                                                                  ; +0x18, 0x6111e0\nDCB 8                                                                  ; +0x19, 0x6111e1\nLDR             R1, =(aGjshopkeeper3 - 0x6111E8); jumptable 006111DA case 2 ; +0x1a, 0x6111e2\nADD             R1, PC; \"GJShopKeeper3\"                                ; +0x1c, 0x6111e4\nB               loc_6111FE                                             ; +0x1e, 0x6111e6\nLDR             R1, =(aGjshopkeeper4 - 0x6111EE); jumptable 006111DA case 3 ; +0x20, 0x6111e8\nADD             R1, PC; \"GJShopKeeper4\"                                ; +0x22, 0x6111ea\nB               loc_6111FE                                             ; +0x24, 0x6111ec\nLDR             R1, =(aGjshopkeeper5 - 0x6111F4); jumptable 006111DA case 4 ; +0x26, 0x6111ee\nADD             R1, PC; \"GJShopKeeper5\"                                ; +0x28, 0x6111f0\nB               loc_6111FE                                             ; +0x2a, 0x6111f2\nLDR             R1, =(aGjshopkeeper - 0x6111FA); jumptable 006111DA default case ; +0x2c, 0x6111f4\nADD             R1, PC; \"GJShopKeeper\"                                 ; +0x2e, 0x6111f6\nB               loc_6111FE                                             ; +0x30, 0x6111f8\nLDR             R1, =(aGjshopkeeper2 - 0x611200); jumptable 006111DA case 1 ; +0x32, 0x6111fa\nADD             R1, PC; \"GJShopKeeper2\"                                ; +0x34, 0x6111fc\nMOVS            R2, #0; cocos2d::CCTexture2D *                         ; +0x36, 0x6111fe\nMOV             R0, R4; this                                           ; +0x38, 0x611200\nMOV             R3, R2; bool                                           ; +0x3a, 0x611202\nBL              _ZN16CCAnimatedSprite12initWithTypeEPKcPN7cocos2d11CCTexture2DEb; CCAnimatedSprite::initWithType(char const*,cocos2d::CCTexture2D *,bool) ; +0x3c, 0x611204\nMOV             R5, R0                                                 ; +0x40, 0x611208\nCBZ             R0, loc_611260                                         ; +0x42, 0x61120a\nBLX             rand                                                   ; +0x44, 0x61120c\nVLDR            S16, =4.6566e-10                                       ; +0x48, 0x611210\nVMOV.F32        S13, #5.0                                              ; +0x4c, 0x611214\nVMOV            S15, R0                                                ; +0x50, 0x611218\nVCVT.F32.S32    S14, S15                                               ; +0x54, 0x61121c\nVMUL.F32        S14, S14, S16                                          ; +0x58, 0x611220\nVMOV.F32        S15, #10.0                                             ; +0x5c, 0x611224\nVMLA.F32        S15, S14, S13                                          ; +0x60, 0x611228\nVCVT.S32.F32    S15, S15                                               ; +0x64, 0x61122c\nVSTR            S15, [R4,#0x240]                                       ; +0x68, 0x611230\nBLX             rand                                                   ; +0x6c, 0x611234\nVMOV.F32        S14, #1.0                                              ; +0x70, 0x611238\nVMOV            S15, R0                                                ; +0x74, 0x61123c\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x78, 0x611240\nVCVT.F32.S32    S15, S15                                               ; +0x7c, 0x611244\nVMUL.F32        S15, S15, S16                                          ; +0x80, 0x611248\nVADD.F32        S15, S15, S15                                          ; +0x84, 0x61124c\nVADD.F32        S15, S15, S14                                          ; +0x88, 0x611250\nVCVT.S32.F32    S15, S15                                               ; +0x8c, 0x611254\nVSTR            S15, [R4,#0x23C]                                       ; +0x90, 0x611258\nBL              _ZN22SpriteAnimationManager14stopAnimationsEv; SpriteAnimationManager::stopAnimations(void) ; +0x94, 0x61125c\nVPOP            {D8}                                                   ; +0x98, 0x611260\nMOV             R0, R5                                                 ; +0x9c, 0x611264\nPOP             {R3-R5,PC}                                             ; +0x9e, 0x611266", "xrefs": ["AnimatedShopKeeper::create @ 0x61130c"], "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"}