{"type": "func", "start": 10996532, "end": 10996772, "name": "AnimatedShopKeeper::init", "pseudocode": "// \n// AnimatedShopKeeper::init from 0xa7cb34 to 0xa7cc24 (240 bytes)\n// \n// 2 xrefs:\n// > AnimatedShopKeeper::create @ 0xa7ccc8\n// > <???> @ 0xec098\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:29 +0000\n// \n\n__int64 __fastcall AnimatedShopKeeper::init(CCAnimatedSprite *this, int a2)\n{\n  char *v3; // x1\n  unsigned __int8 v4; // w0\n  unsigned int v5; // w20\n  float v6; // s0\n  SpriteAnimationManager *v7; // x0\n\n  *((_DWORD *)this + 180) = 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, 0);\n  v5 = v4;\n  if ( v4 )\n  {\n    *((_DWORD *)this + 182) = (int)(float)((float)((float)((float)rand() * 4.6566e-10) * 5.0) + 10.0);\n    v6 = (float)rand();\n    v7 = *((SpriteAnimationManager **)this + 81);\n    *((_DWORD *)this + 181) = (int)(float)((float)((float)(v6 * 4.6566e-10) * 2.0) + 1.0);\n    SpriteAnimationManager::stopAnimations(v7);\n  }\n  return v5;\n}", "assembly": "; \n; AnimatedShopKeeper::init from 0xa7cb34 to 0xa7cc24 (240 bytes)\n; \n; 2 xrefs:\n; > AnimatedShopKeeper::create @ 0xa7ccc8\n; > <???> @ 0xec098\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:29 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xa7cb34\nMOV             X29, SP                                                ; +0x4, 0xa7cb38\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xa7cb3c\nMOV             X19, X0                                                ; +0xc, 0xa7cb40\nSUB             W0, W1, #1; switch 4 cases                             ; +0x10, 0xa7cb44\nSTR             D8, [SP,#0x30+var_10]                                  ; +0x14, 0xa7cb48\nCMP             W0, #3                                                 ; +0x18, 0xa7cb4c\nSTR             W1, [X19,#0x2D0]                                       ; +0x1c, 0xa7cb50\nB.LS            loc_A7CBDC                                             ; +0x20, 0xa7cb54\nADRL            X1, aGjshopkeeper; jumptable 0000000000A7CBF0 default case ; +0x24, 0xa7cb58\nMOV             X0, X19; this                                          ; +0x2c, 0xa7cb60\nMOV             X2, #0; cocos2d::CCTexture2D *                         ; +0x30, 0xa7cb64\nMOV             W3, #0; bool                                           ; +0x34, 0xa7cb68\nBL              _ZN16CCAnimatedSprite12initWithTypeEPKcPN7cocos2d11CCTexture2DEb; CCAnimatedSprite::initWithType(char const*,cocos2d::CCTexture2D *,bool) ; +0x38, 0xa7cb6c\nUXTB            W0, W0                                                 ; +0x3c, 0xa7cb70\nMOV             W20, W0                                                ; +0x40, 0xa7cb74\nCBZ             W0, loc_A7CBC8                                         ; +0x44, 0xa7cb78\nBL              .rand                                                  ; +0x48, 0xa7cb7c\nSCVTF           S2, W0                                                 ; +0x4c, 0xa7cb80\nLDR             S8, =0x30000000                                        ; +0x50, 0xa7cb84\nFMOV            S1, #5.0                                               ; +0x54, 0xa7cb88\nFMOV            S0, #10.0                                              ; +0x58, 0xa7cb8c\nFMUL            S2, S2, S8                                             ; +0x5c, 0xa7cb90\nFMADD           S0, S2, S1, S0                                         ; +0x60, 0xa7cb94\nFCVTZS          W0, S0                                                 ; +0x64, 0xa7cb98\nSTR             W0, [X19,#0x2D8]                                       ; +0x68, 0xa7cb9c\nBL              .rand                                                  ; +0x6c, 0xa7cba0\nSCVTF           S0, W0                                                 ; +0x70, 0xa7cba4\nLDR             X0, [X19,#0x288]; this                                 ; +0x74, 0xa7cba8\nFMOV            S2, #2.0                                               ; +0x78, 0xa7cbac\nFMUL            S1, S0, S8                                             ; +0x7c, 0xa7cbb0\nFMOV            S0, #1.0                                               ; +0x80, 0xa7cbb4\nFMADD           S0, S1, S2, S0                                         ; +0x84, 0xa7cbb8\nFCVTZS          W1, S0                                                 ; +0x88, 0xa7cbbc\nSTR             W1, [X19,#0x2D4]                                       ; +0x8c, 0xa7cbc0\nBL              _ZN22SpriteAnimationManager14stopAnimationsEv; SpriteAnimationManager::stopAnimations(void) ; +0x90, 0xa7cbc4\nMOV             W0, W20                                                ; +0x94, 0xa7cbc8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x98, 0xa7cbcc\nLDR             D8, [SP,#0x30+var_10]                                  ; +0x9c, 0xa7cbd0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xa0, 0xa7cbd4\nRET                                                                    ; +0xa4, 0xa7cbd8\nADRL            X1, jpt_A7CBF0                                         ; +0xa8, 0xa7cbdc\nLDRB            W0, [X1,W0,UXTW]                                       ; +0xb0, 0xa7cbe4\nADR             X1, loc_A7CBF4; jumptable 0000000000A7CBF0 case 1      ; +0xb4, 0xa7cbe8\nADD             X0, X1, W0,SXTB#2                                      ; +0xb8, 0xa7cbec\nBR              X0; switch jump                                        ; +0xbc, 0xa7cbf0\nADRL            X1, aGjshopkeeper2; jumptable 0000000000A7CBF0 case 1  ; +0xc0, 0xa7cbf4\nB               loc_A7CB60                                             ; +0xc8, 0xa7cbfc\nADRL            X1, aGjshopkeeper5; jumptable 0000000000A7CBF0 case 4  ; +0xcc, 0xa7cc00\nB               loc_A7CB60                                             ; +0xd4, 0xa7cc08\nADRL            X1, aGjshopkeeper4; jumptable 0000000000A7CBF0 case 3  ; +0xd8, 0xa7cc0c\nB               loc_A7CB60                                             ; +0xe0, 0xa7cc14\nADRL            X1, aGjshopkeeper3; jumptable 0000000000A7CBF0 case 2  ; +0xe4, 0xa7cc18\nB               loc_A7CB60                                             ; +0xec, 0xa7cc20", "xrefs": ["AnimatedShopKeeper::create @ 0xa7ccc8", "<???> @ 0xec098"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}