{"type": "func", "start": 525160, "end": 525292, "name": "sub_80368", "pseudocode": "// \n// sub_80368 from 0x80368 to 0x803ec (132 bytes)\n// \n// 1 xrefs:\n// > sub_80A0C @ 0x80a10\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__int64 __fastcall sub_80368(_DWORD *a1, int a2, float *a3, _BYTE *a4)\n{\n  __int64 result; // x0\n  unsigned int v6; // s0\n  int v7; // w8\n\n  if ( !a3 )\n    return 31;\n  result = 31;\n  switch ( a2 )\n  {\n    case 1:\n      v6 = a1[169];\n      goto LABEL_8;\n    case 2:\n      v7 = a1[142];\n      goto LABEL_12;\n    case 3:\n      v7 = a1[143];\n      goto LABEL_12;\n    case 4:\n      v6 = a1[172];\nLABEL_8:\n      *a3 = (float)v6;\n      goto LABEL_13;\n    case 5:\n      v7 = a1[173];\n      goto LABEL_12;\n    case 6:\n      v7 = a1[174];\n      goto LABEL_12;\n    case 8:\n      v7 = a1[178];\nLABEL_12:\n      *(_DWORD *)a3 = v7;\nLABEL_13:\n      result = 0;\n      if ( a4 )\n        *a4 = 0;\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; sub_80368 from 0x80368 to 0x803ec (132 bytes)\n; \n; 1 xrefs:\n; > sub_80A0C @ 0x80a10\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\nCBZ             X2, loc_803A0                                          ; +0x0, 0x80368\nSUB             W9, W1, #1; switch 8 cases                             ; +0x4, 0x8036c\nMOV             X8, X0                                                 ; +0x8, 0x80370\nCMP             W9, #7                                                 ; +0xc, 0x80374\nMOV             W0, #0x1F                                              ; +0x10, 0x80378\nB.HI            def_80394; jumptable 0000000000080394 default case, case 7 ; +0x14, 0x8037c\nADRL            X10, jpt_80394                                         ; +0x18, 0x80380\nADR             X11, loc_80398; jumptable 0000000000080394 case 1      ; +0x20, 0x80388\nLDRB            W12, [X10,X9]                                          ; +0x24, 0x8038c\nADD             X11, X11, X12,LSL#2                                    ; +0x28, 0x80390\nBR              X11; switch jump                                       ; +0x2c, 0x80394\nLDR             S0, [X8,#0x2A4]; jumptable 0000000000080394 case 1     ; +0x30, 0x80398\nB               loc_803B8                                              ; +0x34, 0x8039c\nB               loc_80AAC                                              ; +0x38, 0x803a0\nLDR             W8, [X8,#0x238]; jumptable 0000000000080394 case 2     ; +0x3c, 0x803a4\nB               loc_803D8                                              ; +0x40, 0x803a8\nLDR             W8, [X8,#0x23C]; jumptable 0000000000080394 case 3     ; +0x44, 0x803ac\nB               loc_803D8                                              ; +0x48, 0x803b0\nLDR             S0, [X8,#0x2B0]; jumptable 0000000000080394 case 4     ; +0x4c, 0x803b4\nUCVTF           S0, S0                                                 ; +0x50, 0x803b8\nSTR             S0, [X2]                                               ; +0x54, 0x803bc\nB               loc_803DC                                              ; +0x58, 0x803c0\nLDR             W8, [X8,#0x2B4]; jumptable 0000000000080394 case 5     ; +0x5c, 0x803c4\nB               loc_803D8                                              ; +0x60, 0x803c8\nLDR             W8, [X8,#0x2B8]; jumptable 0000000000080394 case 6     ; +0x64, 0x803cc\nB               loc_803D8                                              ; +0x68, 0x803d0\nLDR             W8, [X8,#0x2C8]; jumptable 0000000000080394 case 8     ; +0x6c, 0x803d4\nSTR             W8, [X2]                                               ; +0x70, 0x803d8\nMOV             W0, WZR                                                ; +0x74, 0x803dc\nCBZ             X3, def_80394; jumptable 0000000000080394 default case, case 7 ; +0x78, 0x803e0\nSTRB            WZR, [X3]                                              ; +0x7c, 0x803e4\nRET; jumptable 0000000000080394 default case, case 7                   ; +0x80, 0x803e8", "xrefs": ["sub_80A0C @ 0x80a10"], "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"}