{"type": "func", "start": 809552, "end": 809728, "name": "sub_C5A50", "pseudocode": "// \n// sub_C5A50 from 0xc5a50 to 0xc5b00 (176 bytes)\n// \n// 1 xrefs:\n// > sub_C5BE4 @ 0xc5bec\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:14:46 +0000\n// \n\n__int64 __fastcall sub_C5A50(float *a1, int a2, _DWORD *a3, __int64 a4)\n{\n  float v4; // s0\n\n  switch ( a2 )\n  {\n    case 0:\n      *a3 = *((_DWORD *)a1 + 2428);\n      if ( a4 )\n      {\n        v4 = a1[2428];\n        goto LABEL_12;\n      }\n      break;\n    case 1:\n      *a3 = *((_DWORD *)a1 + 2429);\n      if ( a4 )\n      {\n        v4 = a1[2429];\n        goto LABEL_12;\n      }\n      break;\n    case 2:\n      *a3 = *((_DWORD *)a1 + 2430);\n      if ( a4 )\n      {\n        v4 = a1[2430];\n        goto LABEL_12;\n      }\n      break;\n    case 3:\n      *a3 = *((_DWORD *)a1 + 2431);\n      if ( a4 )\n      {\n        v4 = a1[2431];\n        goto LABEL_12;\n      }\n      break;\n    case 4:\n      *a3 = *((_DWORD *)a1 + 2432);\n      if ( a4 )\n      {\n        v4 = a1[2432];\nLABEL_12:\n        sub_E3FC8(a4, 32, \"%.02f\", v4);\n      }\n      break;\n    default:\n      return 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_C5A50 from 0xc5a50 to 0xc5b00 (176 bytes)\n; \n; 1 xrefs:\n; > sub_C5BE4 @ 0xc5bec\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:14:46 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0xc5a50\nCMP             W1, #4; switch 5 cases                                 ; +0x4, 0xc5a54\nMOV             X29, SP                                                ; +0x8, 0xc5a58\nB.HI            def_C5A78; jumptable 00000000000C5A78 default case     ; +0xc, 0xc5a5c\nADRP            X9, #jpt_C5A78@PAGE                                    ; +0x10, 0xc5a60\nMOV             W8, W1                                                 ; +0x14, 0xc5a64\nADD             X9, X9, #jpt_C5A78@PAGEOFF                             ; +0x18, 0xc5a68\nADR             X10, loc_C5A7C; jumptable 00000000000C5A78 case 0      ; +0x1c, 0xc5a6c\nLDRB            W11, [X9,X8]                                           ; +0x20, 0xc5a70\nADD             X10, X10, X11,LSL#2                                    ; +0x24, 0xc5a74\nBR              X10; switch jump                                       ; +0x28, 0xc5a78\nLDR             W8, [X0,#0x25F0]; jumptable 00000000000C5A78 case 0    ; +0x2c, 0xc5a7c\nSTR             W8, [X2]                                               ; +0x30, 0xc5a80\nCBZ             X3, def_C5A78; jumptable 00000000000C5A78 default case ; +0x34, 0xc5a84\nLDR             S0, [X0,#0x25F0]                                       ; +0x38, 0xc5a88\nB               loc_C5ADC                                              ; +0x3c, 0xc5a8c\nLDR             W8, [X0,#0x25F4]; jumptable 00000000000C5A78 case 1    ; +0x40, 0xc5a90\nSTR             W8, [X2]                                               ; +0x44, 0xc5a94\nCBZ             X3, def_C5A78; jumptable 00000000000C5A78 default case ; +0x48, 0xc5a98\nLDR             S0, [X0,#0x25F4]                                       ; +0x4c, 0xc5a9c\nB               loc_C5ADC                                              ; +0x50, 0xc5aa0\nLDR             W8, [X0,#0x25F8]; jumptable 00000000000C5A78 case 2    ; +0x54, 0xc5aa4\nSTR             W8, [X2]                                               ; +0x58, 0xc5aa8\nCBZ             X3, def_C5A78; jumptable 00000000000C5A78 default case ; +0x5c, 0xc5aac\nLDR             S0, [X0,#0x25F8]                                       ; +0x60, 0xc5ab0\nB               loc_C5ADC                                              ; +0x64, 0xc5ab4\nLDR             W8, [X0,#0x25FC]; jumptable 00000000000C5A78 case 3    ; +0x68, 0xc5ab8\nSTR             W8, [X2]                                               ; +0x6c, 0xc5abc\nCBZ             X3, def_C5A78; jumptable 00000000000C5A78 default case ; +0x70, 0xc5ac0\nLDR             S0, [X0,#0x25FC]                                       ; +0x74, 0xc5ac4\nB               loc_C5ADC                                              ; +0x78, 0xc5ac8\nLDR             W8, [X0,#0x2600]; jumptable 00000000000C5A78 case 4    ; +0x7c, 0xc5acc\nSTR             W8, [X2]                                               ; +0x80, 0xc5ad0\nCBZ             X3, def_C5A78; jumptable 00000000000C5A78 default case ; +0x84, 0xc5ad4\nLDR             S0, [X0,#0x2600]                                       ; +0x88, 0xc5ad8\nADRP            X2, #a02f@PAGE; \"%.02f\"                                ; +0x8c, 0xc5adc\nFCVT            D0, S0                                                 ; +0x90, 0xc5ae0\nADD             X2, X2, #a02f@PAGEOFF; \"%.02f\"                         ; +0x94, 0xc5ae4\nMOV             W1, #0x20 ; ' '                                        ; +0x98, 0xc5ae8\nMOV             X0, X3                                                 ; +0x9c, 0xc5aec\nBL              sub_E3FC8                                              ; +0xa0, 0xc5af0\nMOV             W0, WZR; jumptable 00000000000C5A78 default case       ; +0xa4, 0xc5af4\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0xa8, 0xc5af8\nRET                                                                    ; +0xac, 0xc5afc", "xrefs": ["sub_C5BE4 @ 0xc5bec"], "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"}