{"type": "func", "start": 4298657412, "end": 4298657524, "name": "AnimatedGameObject::animationForID", "pseudocode": "// \n// AnimatedGameObject::animationForID from 0x100384e84 to 0x100384ef4 (112 bytes)\n// \n// 4 xrefs:\n// > AnimatedGameObject::playAnimation @ 0x100384d44\n// > SetupAnimationPopup::init @ 0x1003c3488\n// > SetupAnimationPopup::init @ 0x1003c3538\n// > SetupAnimationPopup::init @ 0x1003c35e8\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\n_QWORD *__usercall AnimatedGameObject::animationForID@<X0>(unsigned int a1@<W0>, int a2@<W1>, _QWORD *a3@<X8>)\n{\n  char **v5; // x8\n  char *v6; // x1\n\n  if ( a2 == 2012 )\n  {\n    if ( a1 < 9 )\n    {\n      v5 = off_10080A478;\n      goto LABEL_10;\n    }\n    goto LABEL_12;\n  }\n  if ( a2 == 1584 )\n  {\n    if ( a1 < 0xA )\n    {\n      v5 = off_10080A428;\n      goto LABEL_10;\n    }\nLABEL_12:\n    v6 = \"\";\n    return sub_100009900(a3, v6);\n  }\n  if ( a2 != 918 || a1 >= 4 )\n    goto LABEL_12;\n  v5 = off_10080A408;\nLABEL_10:\n  v6 = v5[a1];\n  return sub_100009900(a3, v6);\n}", "assembly": "; \n; AnimatedGameObject::animationForID from 0x100384e84 to 0x100384ef4 (112 bytes)\n; \n; 4 xrefs:\n; > AnimatedGameObject::playAnimation @ 0x100384d44\n; > SetupAnimationPopup::init @ 0x1003c3488\n; > SetupAnimationPopup::init @ 0x1003c3538\n; > SetupAnimationPopup::init @ 0x1003c35e8\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\nMOV             X9, X0                                                 ; +0x0, 0x100384e84\nMOV             X0, X8; int                                            ; +0x4, 0x100384e88\nCMP             W1, #0x7DC                                             ; +0x8, 0x100384e8c\nB.EQ            loc_100384ECC                                          ; +0xc, 0x100384e90\nCMP             W1, #0x630                                             ; +0x10, 0x100384e94\nB.EQ            loc_100384EB8                                          ; +0x14, 0x100384e98\nCMP             W1, #0x396                                             ; +0x18, 0x100384e9c\nB.NE            loc_100384EE8                                          ; +0x1c, 0x100384ea0\nCMP             W9, #4                                                 ; +0x20, 0x100384ea4\nB.CS            loc_100384EE8                                          ; +0x24, 0x100384ea8\nADRL            X8, off_10080A408; \"bite\"                              ; +0x28, 0x100384eac\nB               loc_100384EDC                                          ; +0x30, 0x100384eb4\nCMP             W9, #0xA                                               ; +0x34, 0x100384eb8\nB.CS            loc_100384EE8                                          ; +0x38, 0x100384ebc\nADRL            X8, off_10080A428; \"idle01\"                            ; +0x3c, 0x100384ec0\nB               loc_100384EDC                                          ; +0x44, 0x100384ec8\nCMP             W9, #9                                                 ; +0x48, 0x100384ecc\nB.CS            loc_100384EE8                                          ; +0x4c, 0x100384ed0\nADRL            X8, off_10080A478; \"idle01\"                            ; +0x50, 0x100384ed4\nADD             X8, X8, W9,UXTW#3                                      ; +0x58, 0x100384edc\nLDR             X1, [X8]; __s                                          ; +0x5c, 0x100384ee0\nB               sub_100009900                                          ; +0x60, 0x100384ee4\nADRL            X1, asc_100746688; \"\"                                  ; +0x64, 0x100384ee8\nB               sub_100009900                                          ; +0x6c, 0x100384ef0", "xrefs": ["AnimatedGameObject::playAnimation @ 0x100384d44", "SetupAnimationPopup::init @ 0x1003c3488", "SetupAnimationPopup::init @ 0x1003c3538", "SetupAnimationPopup::init @ 0x1003c35e8"], "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"}