{"type": "func", "start": 416272, "end": 416364, "name": "sub_65A10", "pseudocode": "// \n// sub_65A10 from 0x65a10 to 0x65a6c (92 bytes)\n// \n// 14 xrefs:\n// > sub_658D4 @ 0x659dc\n// > sub_6B7B8 @ 0x6b854\n// > sub_6B8F0 @ 0x6b9fc\n// > sub_6C64C @ 0x6c92c\n// > sub_6C64C @ 0x6c9b8\n// > sub_6C64C @ 0x6ca60\n// > sub_6F158 @ 0x6f328\n// > sub_76B04 @ 0x76bf0\n// > sub_7AB28 @ 0x7ab90\n// > sub_7F380 @ 0x7f4c0\n// > sub_7F910 @ 0x7f9ac\n// > sub_C7E34 @ 0xc7e78\n// > sub_C941C @ 0xc9454\n// > sub_C974C @ 0xc9828\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 12:13:55 +0000\n// \n\n__int64 __fastcall sub_65A10(unsigned int a1)\n{\n  unsigned int v1; // w9\n  __int64 result; // x0\n\n  v1 = a1 - 2;\n  result = 1;\n  switch ( v1 )\n  {\n    case 0u:\n      return result;\n    case 1u:\n      goto LABEL_4;\n    case 2u:\n    case 3u:\n    case 4u:\n      result = a1;\n      break;\n    case 5u:\n      result = 8;\n      break;\n    case 6u:\n      result = 12;\n      break;\n    default:\n      if ( a1 == 1000 )\nLABEL_4:\n        result = 2;\n      else\n        result = 0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; sub_65A10 from 0x65a10 to 0x65a6c (92 bytes)\n; \n; 14 xrefs:\n; > sub_658D4 @ 0x659dc\n; > sub_6B7B8 @ 0x6b854\n; > sub_6B8F0 @ 0x6b9fc\n; > sub_6C64C @ 0x6c92c\n; > sub_6C64C @ 0x6c9b8\n; > sub_6C64C @ 0x6ca60\n; > sub_6F158 @ 0x6f328\n; > sub_76B04 @ 0x76bf0\n; > sub_7AB28 @ 0x7ab90\n; > sub_7F380 @ 0x7f4c0\n; > sub_7F910 @ 0x7f9ac\n; > sub_C7E34 @ 0xc7e78\n; > sub_C941C @ 0xc9454\n; > sub_C974C @ 0xc9828\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 12:13:55 +0000\n; \nSUB             W9, W0, #2; switch 7 cases                             ; +0x0, 0x65a10\nMOV             W8, W0                                                 ; +0x4, 0x65a14\nCMP             W9, #6                                                 ; +0x8, 0x65a18\nB.HI            def_65A38; jumptable 0000000000065A38 default case     ; +0xc, 0x65a1c\nADRL            X10, jpt_65A38                                         ; +0x10, 0x65a20\nADR             X11, loc_65A3C; jumptable 0000000000065A38 cases 4-6   ; +0x18, 0x65a28\nLDRB            W12, [X10,X9]                                          ; +0x1c, 0x65a2c\nADD             X11, X11, X12,LSL#2                                    ; +0x20, 0x65a30\nMOV             W0, #1                                                 ; +0x24, 0x65a34\nBR              X11; switch jump                                       ; +0x28, 0x65a38\nMOV             W0, W8; jumptable 0000000000065A38 cases 4-6           ; +0x2c, 0x65a3c\nRET                                                                    ; +0x30, 0x65a40\nCMP             W8, #0x3E8; jumptable 0000000000065A38 default case    ; +0x34, 0x65a44\nB.NE            loc_65A64                                              ; +0x38, 0x65a48\nMOV             W0, #2; jumptable 0000000000065A38 case 3              ; +0x3c, 0x65a4c\nRET                                                                    ; +0x40, 0x65a50\nMOV             W0, #8; jumptable 0000000000065A38 case 7              ; +0x44, 0x65a54\nRET                                                                    ; +0x48, 0x65a58\nMOV             W0, #0xC; jumptable 0000000000065A38 case 8            ; +0x4c, 0x65a5c\nRET                                                                    ; +0x50, 0x65a60\nMOV             W0, WZR                                                ; +0x54, 0x65a64\nRET; jumptable 0000000000065A38 case 2                                 ; +0x58, 0x65a68", "xrefs": ["sub_658D4 @ 0x659dc", "sub_6B7B8 @ 0x6b854", "sub_6B8F0 @ 0x6b9fc", "sub_6C64C @ 0x6c92c", "sub_6C64C @ 0x6c9b8", "sub_6C64C @ 0x6ca60", "sub_6F158 @ 0x6f328", "sub_76B04 @ 0x76bf0", "sub_7AB28 @ 0x7ab90", "sub_7F380 @ 0x7f4c0", "sub_7F910 @ 0x7f9ac", "sub_C7E34 @ 0xc7e78", "sub_C941C @ 0xc9454", "sub_C974C @ 0xc9828"], "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"}