{"type": "func", "start": 4296643312, "end": 4296643882, "name": "AnimatedGameObject::animationForID", "pseudocode": "// \n// AnimatedGameObject::animationForID from 0x1001992f0 to 0x10019952a (570 bytes)\n// \n// 4 xrefs:\n// > AnimatedGameObject::playAnimation @ 0x1001991aa\n// > sub_1003BDEC0 @ 0x1003be083\n// > sub_1003BDEC0 @ 0x1003be143\n// > sub_1003BDEC0 @ 0x1003be203\n// \n// This function is hookable on this platform (idp: pc, 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 12:25:56 +0000\n// \n\n_BYTE *__fastcall AnimatedGameObject::animationForID(_BYTE *a1, int a2, int a3)\n{\n  _BYTE *result; // rax\n  __int64 v4; // rcx\n  __int64 v5; // rcx\n\n  result = a1;\n  switch ( a3 )\n  {\n    case 2012:\n      switch ( a2 )\n      {\n        case 0:\nLABEL_9:\n          *a1 = 12;\n          strcpy(a1 + 1, \"idle01\");\n          return result;\n        case 1:\nLABEL_16:\n          *a1 = 12;\n          strcpy(a1 + 1, \"idle02\");\n          return result;\n        case 2:\n          *a1 = 20;\n          strcpy(a1 + 1, \"toAttack01\");\n          return result;\n        case 3:\nLABEL_11:\n          *a1 = 16;\n          v5 = 0x31306B6361747461LL;\n          goto LABEL_20;\n        case 4:\nLABEL_14:\n          *a1 = 16;\n          v5 = 0x32306B6361747461LL;\n          goto LABEL_20;\n        case 5:\n          *a1 = 20;\n          strcpy(a1 + 1, \"toAttack03\");\n          return result;\n        case 6:\n          *a1 = 16;\n          v5 = 0x33306B6361747461LL;\nLABEL_20:\n          *(_QWORD *)(a1 + 1) = v5;\n          a1[9] = 0;\n          break;\n        case 7:\nLABEL_15:\n          *a1 = 12;\n          strcpy(a1 + 1, \"idle03\");\n          break;\n        case 8:\n          *a1 = 24;\n          strcpy(a1 + 1, \"fromAttack03\");\n          break;\n        default:\n          goto LABEL_10;\n      }\n      break;\n    case 1584:\n      switch ( a2 )\n      {\n        case 0:\n          goto LABEL_9;\n        case 1:\n          goto LABEL_16;\n        case 2:\n          goto LABEL_15;\n        case 3:\n          goto LABEL_11;\n        case 4:\n          goto LABEL_14;\n        case 5:\n          *a1 = 24;\n          v4 = 0x32306B6361747461LL;\nLABEL_13:\n          *(_QWORD *)(a1 + 1) = v4;\n          strcpy(a1 + 9, \"_end\");\n          break;\n        case 6:\n          *a1 = 10;\n          *(_DWORD *)(a1 + 1) = 1701145715;\n          a1[5] = 112;\n          a1[6] = 0;\n          break;\n        case 7:\n          *a1 = 20;\n          strcpy(a1 + 1, \"sleep_loop\");\n          break;\n        case 8:\n          *a1 = 18;\n          strcpy(a1 + 1, \"sleep_end\");\n          break;\n        case 9:\n          *a1 = 26;\n          strcpy(a1 + 1, \"attack02_loop\");\n          break;\n        default:\n          goto LABEL_10;\n      }\n      break;\n    case 918:\n      switch ( a2 )\n      {\n        case 0:\n          *a1 = 8;\n          strcpy(a1 + 1, \"bite\");\n          break;\n        case 1:\n          goto LABEL_11;\n        case 2:\n          *a1 = 24;\n          v4 = 0x31306B6361747461LL;\n          goto LABEL_13;\n        case 3:\n          goto LABEL_9;\n        default:\n          goto LABEL_10;\n      }\n      break;\n    default:\nLABEL_10:\n      *a1 = 0;\n      a1[1] = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::animationForID from 0x1001992f0 to 0x10019952a (570 bytes)\n; \n; 4 xrefs:\n; > AnimatedGameObject::playAnimation @ 0x1001991aa\n; > sub_1003BDEC0 @ 0x1003be083\n; > sub_1003BDEC0 @ 0x1003be143\n; > sub_1003BDEC0 @ 0x1003be203\n; \n; This function is hookable on this platform (idp: pc, 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 12:25:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001992f0\nmov     rbp, rsp                                                       ; +0x1, 0x1001992f1\nmov     rax, rdi                                                       ; +0x4, 0x1001992f4\ncmp     edx, 7DCh                                                      ; +0x7, 0x1001992f7\njz      short loc_100199365                                            ; +0xd, 0x1001992fd\ncmp     edx, 630h                                                      ; +0xf, 0x1001992ff\njz      short loc_10019933F                                            ; +0x15, 0x100199305\ncmp     edx, 396h                                                      ; +0x17, 0x100199307\njnz     def_100199328; jumptable 0000000100199328 default case         ; +0x1d, 0x10019930d\ncmp     esi, 3; switch 4 cases                                         ; +0x23, 0x100199313\nja      short def_100199328; jumptable 0000000100199328 default case   ; +0x26, 0x100199316\nmov     ecx, esi                                                       ; +0x28, 0x100199318\nlea     rdx, jpt_100199328                                             ; +0x2a, 0x10019931a\nmovsxd  rcx, (jpt_100199328 - 100199578h)[rdx+rcx*4]                   ; +0x31, 0x100199321\nadd     rcx, rdx                                                       ; +0x35, 0x100199325\njmp     rcx; switch jump                                               ; +0x38, 0x100199328\nmov     byte ptr [rax], 8; jumptable 0000000100199328 case 0           ; +0x3a, 0x10019932a\nmov     dword ptr [rax+1], 65746962h                                   ; +0x3d, 0x10019932d\nmov     ecx, 5                                                         ; +0x44, 0x100199334\nmov     byte ptr [rax+rcx], 0                                          ; +0x49, 0x100199339\npop     rbp                                                            ; +0x4d, 0x10019933d\nretn                                                                   ; +0x4e, 0x10019933e\ncmp     esi, 9; switch 10 cases                                        ; +0x4f, 0x10019933f\nja      short def_100199328; jumptable 0000000100199328 default case   ; +0x52, 0x100199342\nmov     ecx, esi                                                       ; +0x54, 0x100199344\nlea     rdx, jpt_100199354                                             ; +0x56, 0x100199346\nmovsxd  rcx, (jpt_100199354 - 100199550h)[rdx+rcx*4]                   ; +0x5d, 0x10019934d\nadd     rcx, rdx                                                       ; +0x61, 0x100199351\njmp     rcx; switch jump                                               ; +0x64, 0x100199354\nmov     byte ptr [rax], 18h; jumptable 0000000100199354 case 5         ; +0x66, 0x100199356\nmov     rcx, 32306B6361747461h                                         ; +0x69, 0x100199359\njmp     short loc_1001993C4                                            ; +0x73, 0x100199363\ncmp     esi, 8; switch 9 cases                                         ; +0x75, 0x100199365\nja      short def_100199328; jumptable 0000000100199328 default case   ; +0x78, 0x100199368\nmov     ecx, esi                                                       ; +0x7a, 0x10019936a\nlea     rdx, jpt_10019937A                                             ; +0x7c, 0x10019936c\nmovsxd  rcx, (jpt_10019937A - 10019952Ch)[rdx+rcx*4]                   ; +0x83, 0x100199373\nadd     rcx, rdx                                                       ; +0x87, 0x100199377\njmp     rcx; switch jump                                               ; +0x8a, 0x10019937a\nmov     byte ptr [rax], 0Ch; jumptable 0000000100199328 case 3         ; +0x8c, 0x10019937c\nmov     dword ptr [rax+1], 656C6469h                                   ; +0x8f, 0x10019937f\nmov     word ptr [rax+5], 3130h                                        ; +0x96, 0x100199386\nmov     ecx, 7                                                         ; +0x9c, 0x10019938c\nmov     byte ptr [rax+rcx], 0                                          ; +0xa1, 0x100199391\npop     rbp                                                            ; +0xa5, 0x100199395\nretn                                                                   ; +0xa6, 0x100199396\nmov     byte ptr [rax], 0; jumptable 0000000100199328 default case     ; +0xa7, 0x100199397\nmov     ecx, 1                                                         ; +0xaa, 0x10019939a\nmov     byte ptr [rax+rcx], 0                                          ; +0xaf, 0x10019939f\npop     rbp                                                            ; +0xb3, 0x1001993a3\nretn                                                                   ; +0xb4, 0x1001993a4\nmov     byte ptr [rax], 10h; jumptable 0000000100199328 case 1         ; +0xb5, 0x1001993a5\nmov     rcx, 31306B6361747461h                                         ; +0xb8, 0x1001993a8\njmp     loc_100199473                                                  ; +0xc2, 0x1001993b2\nmov     byte ptr [rax], 18h; jumptable 0000000100199328 case 2         ; +0xc7, 0x1001993b7\nmov     rcx, 31306B6361747461h                                         ; +0xca, 0x1001993ba\nmov     [rax+1], rcx                                                   ; +0xd4, 0x1001993c4\nmov     dword ptr [rax+9], 646E655Fh                                   ; +0xd8, 0x1001993c8\nmov     ecx, 0Dh                                                       ; +0xdf, 0x1001993cf\nmov     byte ptr [rax+rcx], 0                                          ; +0xe4, 0x1001993d4\npop     rbp                                                            ; +0xe8, 0x1001993d8\nretn                                                                   ; +0xe9, 0x1001993d9\nmov     byte ptr [rax], 10h; jumptable 0000000100199354 case 4         ; +0xea, 0x1001993da\nmov     rcx, 32306B6361747461h                                         ; +0xed, 0x1001993dd\njmp     loc_100199473                                                  ; +0xf7, 0x1001993e7\nmov     byte ptr [rax], 0Ch; jumptable 0000000100199354 case 2         ; +0xfc, 0x1001993ec\nmov     dword ptr [rax+1], 656C6469h                                   ; +0xff, 0x1001993ef\nmov     word ptr [rax+5], 3330h                                        ; +0x106, 0x1001993f6\nmov     ecx, 7                                                         ; +0x10c, 0x1001993fc\nmov     byte ptr [rax+rcx], 0                                          ; +0x111, 0x100199401\npop     rbp                                                            ; +0x115, 0x100199405\nretn                                                                   ; +0x116, 0x100199406\nmov     byte ptr [rax], 0Ch; jumptable 0000000100199354 case 1         ; +0x117, 0x100199407\nmov     dword ptr [rax+1], 656C6469h                                   ; +0x11a, 0x10019940a\nmov     word ptr [rax+5], 3230h                                        ; +0x121, 0x100199411\nmov     ecx, 7                                                         ; +0x127, 0x100199417\nmov     byte ptr [rax+rcx], 0                                          ; +0x12c, 0x10019941c\npop     rbp                                                            ; +0x130, 0x100199420\nretn                                                                   ; +0x131, 0x100199421\nmov     byte ptr [rax], 14h; jumptable 000000010019937A case 2         ; +0x132, 0x100199422\nmov     rcx, 6B63617474416F74h                                         ; +0x135, 0x100199425\nmov     [rax+1], rcx                                                   ; +0x13f, 0x10019942f\nmov     word ptr [rax+9], 3130h                                        ; +0x143, 0x100199433\nmov     ecx, 0Bh                                                       ; +0x149, 0x100199439\nmov     byte ptr [rax+rcx], 0                                          ; +0x14e, 0x10019943e\npop     rbp                                                            ; +0x152, 0x100199442\nretn                                                                   ; +0x153, 0x100199443\nmov     byte ptr [rax], 14h; jumptable 000000010019937A case 5         ; +0x154, 0x100199444\nmov     rcx, 6B63617474416F74h                                         ; +0x157, 0x100199447\nmov     [rax+1], rcx                                                   ; +0x161, 0x100199451\nmov     word ptr [rax+9], 3330h                                        ; +0x165, 0x100199455\nmov     ecx, 0Bh                                                       ; +0x16b, 0x10019945b\nmov     byte ptr [rax+rcx], 0                                          ; +0x170, 0x100199460\npop     rbp                                                            ; +0x174, 0x100199464\nretn                                                                   ; +0x175, 0x100199465\nmov     byte ptr [rax], 10h; jumptable 000000010019937A case 6         ; +0x176, 0x100199466\nmov     rcx, 33306B6361747461h                                         ; +0x179, 0x100199469\nmov     [rax+1], rcx                                                   ; +0x183, 0x100199473\nmov     ecx, 9                                                         ; +0x187, 0x100199477\nmov     byte ptr [rax+rcx], 0                                          ; +0x18c, 0x10019947c\npop     rbp                                                            ; +0x190, 0x100199480\nretn                                                                   ; +0x191, 0x100199481\nmov     byte ptr [rax], 18h; jumptable 000000010019937A case 8         ; +0x192, 0x100199482\nmov     rcx, 617474416D6F7266h                                         ; +0x195, 0x100199485\nmov     [rax+1], rcx                                                   ; +0x19f, 0x10019948f\nmov     dword ptr [rax+9], 33306B63h                                   ; +0x1a3, 0x100199493\nmov     ecx, 0Dh                                                       ; +0x1aa, 0x10019949a\nmov     byte ptr [rax+rcx], 0                                          ; +0x1af, 0x10019949f\npop     rbp                                                            ; +0x1b3, 0x1001994a3\nretn                                                                   ; +0x1b4, 0x1001994a4\nmov     byte ptr [rax], 1Ah; jumptable 0000000100199354 case 9         ; +0x1b5, 0x1001994a5\nmov     rcx, 32306B6361747461h                                         ; +0x1b8, 0x1001994a8\nmov     [rax+1], rcx                                                   ; +0x1c2, 0x1001994b2\nmov     rcx, 706F6F6C5F32306Bh                                         ; +0x1c6, 0x1001994b6\nmov     [rax+6], rcx                                                   ; +0x1d0, 0x1001994c0\nmov     ecx, 0Eh                                                       ; +0x1d4, 0x1001994c4\nmov     byte ptr [rax+rcx], 0                                          ; +0x1d9, 0x1001994c9\npop     rbp                                                            ; +0x1dd, 0x1001994cd\nretn                                                                   ; +0x1de, 0x1001994ce\nmov     byte ptr [rax], 14h; jumptable 0000000100199354 case 7         ; +0x1df, 0x1001994cf\nmov     rcx, 6F6C5F7065656C73h                                         ; +0x1e2, 0x1001994d2\nmov     [rax+1], rcx                                                   ; +0x1ec, 0x1001994dc\nmov     word ptr [rax+9], 706Fh                                        ; +0x1f0, 0x1001994e0\nmov     ecx, 0Bh                                                       ; +0x1f6, 0x1001994e6\nmov     byte ptr [rax+rcx], 0                                          ; +0x1fb, 0x1001994eb\npop     rbp                                                            ; +0x1ff, 0x1001994ef\nretn                                                                   ; +0x200, 0x1001994f0\nmov     byte ptr [rax], 0Ah; jumptable 0000000100199354 case 6         ; +0x201, 0x1001994f1\nmov     dword ptr [rax+1], 65656C73h                                   ; +0x204, 0x1001994f4\nmov     byte ptr [rax+5], 70h ; 'p'                                    ; +0x20b, 0x1001994fb\nmov     ecx, 6                                                         ; +0x20f, 0x1001994ff\nmov     byte ptr [rax+rcx], 0                                          ; +0x214, 0x100199504\npop     rbp                                                            ; +0x218, 0x100199508\nretn                                                                   ; +0x219, 0x100199509\nmov     byte ptr [rax], 12h; jumptable 0000000100199354 case 8         ; +0x21a, 0x10019950a\nmov     rcx, 6E655F7065656C73h                                         ; +0x21d, 0x10019950d\nmov     [rax+1], rcx                                                   ; +0x227, 0x100199517\nmov     byte ptr [rax+9], 64h ; 'd'                                    ; +0x22b, 0x10019951b\nmov     ecx, 0Ah                                                       ; +0x22f, 0x10019951f\nmov     byte ptr [rax+rcx], 0                                          ; +0x234, 0x100199524\npop     rbp                                                            ; +0x238, 0x100199528\nretn                                                                   ; +0x239, 0x100199529", "xrefs": ["AnimatedGameObject::playAnimation @ 0x1001991aa", "sub_1003BDEC0 @ 0x1003be083", "sub_1003BDEC0 @ 0x1003be143", "sub_1003BDEC0 @ 0x1003be203"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}