{"type": "func", "start": 326376, "end": 326426, "name": "sub_4FAE8", "pseudocode": "// \n// sub_4FAE8 from 0x4fae8 to 0x4fb1a (50 bytes)\n// \n// 1 xrefs:\n// > sub_4FBA8 @ 0x4fbac\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\nint __fastcall sub_4FAE8(_DWORD *a1, _DWORD *a2, int a3)\n{\n  int v3; // r0\n\n  switch ( a3 )\n  {\n    case 1024:\n      v3 = *((unsigned __int8 *)a1 + a1[610] + 492);\n      break;\n    case 512:\n      v3 = a1[609];\n      break;\n    case 256:\n      v3 = a1[610];\n      break;\n    default:\n      v3 = a1[379];\n      break;\n  }\n  *a2 = v3;\n  return 0;\n}", "assembly": "; \n; sub_4FAE8 from 0x4fae8 to 0x4fb1a (50 bytes)\n; \n; 1 xrefs:\n; > sub_4FBA8 @ 0x4fbac\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\nCMP.W           R2, #0x400                                             ; +0x0, 0x4fae8\nBEQ             loc_4FB04                                              ; +0x4, 0x4faec\nCMP.W           R2, #0x200                                             ; +0x6, 0x4faee\nBEQ             loc_4FB10                                              ; +0xa, 0x4faf2\nCMP.W           R2, #0x100                                             ; +0xc, 0x4faf4\nITE NE                                                                 ; +0x10, 0x4faf8\nLDRNE.W         R0, [R0,#0x5EC]                                        ; +0x12, 0x4fafa\nLDREQ.W         R0, [R0,#0x988]                                        ; +0x16, 0x4fafe\nB               loc_4FB14                                              ; +0x1a, 0x4fb02\nLDR.W           R2, [R0,#0x988]                                        ; +0x1c, 0x4fb04\nADD             R0, R2                                                 ; +0x20, 0x4fb08\nLDRB.W          R0, [R0,#0x1EC]                                        ; +0x22, 0x4fb0a\nB               loc_4FB14                                              ; +0x26, 0x4fb0e\nLDR.W           R0, [R0,#0x984]                                        ; +0x28, 0x4fb10\nSTR             R0, [R1]                                               ; +0x2c, 0x4fb14\nMOVS            R0, #0                                                 ; +0x2e, 0x4fb16\nBX              LR                                                     ; +0x30, 0x4fb18", "xrefs": ["sub_4FBA8 @ 0x4fbac"], "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"}