{"type": "func", "start": 610072, "end": 610264, "name": "sub_94F18", "pseudocode": "// \n// sub_94F18 from 0x94f18 to 0x94fd8 (192 bytes)\n// \n// 1 xrefs:\n// > sub_950F4 @ 0x950fa\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_94F18(int a1, int a2, float *a3, int a4)\n{\n  float v4; // s2\n  float v5; // s0\n  int v6; // r0\n  float v7; // s2\n  const char *v8; // r4\n\n  switch ( a2 )\n  {\n    case 0:\n      *a3 = *(float *)(a1 + 452) * 100.0;\n      if ( a4 )\n      {\n        v4 = *(float *)(a1 + 452);\n        goto LABEL_6;\n      }\n      break;\n    case 1:\n      *a3 = *(float *)(a1 + 456) * 100.0;\n      if ( a4 )\n      {\n        v4 = *(float *)(a1 + 456);\nLABEL_6:\n        sub_BE420(a4, 32, \"%.1f\", (float)(v4 * 100.0));\n      }\n      break;\n    case 2:\n      *a3 = *(float *)(a1 + 460);\n      if ( a4 )\n      {\n        v5 = *(float *)(a1 + 460);\n        goto LABEL_11;\n      }\n      break;\n    case 3:\n      *a3 = *(float *)(a1 + 464);\n      if ( a4 )\n      {\n        v5 = *(float *)(a1 + 464);\nLABEL_11:\n        sub_BE420(a4, 32, \"%.02f\", v5);\n      }\n      break;\n    case 4:\n      v6 = *(_DWORD *)(a1 + 468);\n      v7 = 1.0;\n      if ( !v6 )\n        v7 = 0.0;\n      *a3 = v7;\n      if ( a4 )\n      {\n        v8 = \"on\";\n        if ( !v6 )\n          v8 = \"off\";\n        sub_BE420(a4, 32, \"%s\", v8);\n      }\n      break;\n    default:\n      return 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_94F18 from 0x94f18 to 0x94fd8 (192 bytes)\n; \n; 1 xrefs:\n; > sub_950F4 @ 0x950fa\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\nPUSH            {R2-R4,R6,R7,LR}                                       ; +0x0, 0x94f18\nADD             R7, SP, #0x10                                          ; +0x2, 0x94f1a\nCMP             R1, #4; switch 5 cases                                 ; +0x4, 0x94f1c\nBHI             def_94F20; jumptable 00094F20 default case             ; +0x6, 0x94f1e\nTBB.W           [PC,R1]; switch jump                                   ; +0x8, 0x94f20\nDCB 3; jump table for switch statement                                 ; +0xc, 0x94f24\nDCB 0x10                                                               ; +0xd, 0x94f25\nDCB 0x24                                                               ; +0xe, 0x94f26\nDCB 0x2B                                                               ; +0xf, 0x94f27\nDCB 0x3C                                                               ; +0x10, 0x94f28\nALIGN 2                                                                ; +0x11, 0x94f29\nVLDR            S2, [R0,#0x1C4]; jumptable 00094F20 case 0             ; +0x12, 0x94f2a\nCMP             R3, #0                                                 ; +0x16, 0x94f2e\nVLDR            S0, =100.0                                             ; +0x18, 0x94f30\nVMUL.F32        S2, S2, S0                                             ; +0x1c, 0x94f34\nVSTR            S2, [R2]                                               ; +0x20, 0x94f38\nBEQ             def_94F20; jumptable 00094F20 default case             ; +0x24, 0x94f3c\nVLDR            S2, [R0,#0x1C4]                                        ; +0x26, 0x94f3e\nB               loc_94F5A                                              ; +0x2a, 0x94f42\nVLDR            S2, [R0,#0x1C8]; jumptable 00094F20 case 1             ; +0x2c, 0x94f44\nVLDR            S0, =100.0                                             ; +0x30, 0x94f48\nVMUL.F32        S2, S2, S0                                             ; +0x34, 0x94f4c\nVSTR            S2, [R2]                                               ; +0x38, 0x94f50\nCBZ             R3, def_94F20; jumptable 00094F20 default case         ; +0x3c, 0x94f54\nVLDR            S2, [R0,#0x1C8]                                        ; +0x3e, 0x94f56\nVMUL.F32        S0, S2, S0                                             ; +0x42, 0x94f5a\nVCVT.F64.F32    D0, S0                                                 ; +0x46, 0x94f5e\nVSTR            D0, [SP,#8+var_8]                                      ; +0x4a, 0x94f62\nLDR             R2, =(a1f - 0x94F6C); \"%.1f\" ...                       ; +0x4e, 0x94f66\nADD             R2, PC; \"%.1f\"                                         ; +0x50, 0x94f68\nB               loc_94F92                                              ; +0x52, 0x94f6a\nLDR.W           R1, [R0,#0x1CC]; jumptable 00094F20 case 2             ; +0x54, 0x94f6c\nSTR             R1, [R2]                                               ; +0x58, 0x94f70\nCBZ             R3, def_94F20; jumptable 00094F20 default case         ; +0x5a, 0x94f72\nVLDR            S0, [R0,#0x1CC]                                        ; +0x5c, 0x94f74\nB               loc_94F86                                              ; +0x60, 0x94f78\nLDR.W           R1, [R0,#0x1D0]; jumptable 00094F20 case 3             ; +0x62, 0x94f7a\nSTR             R1, [R2]                                               ; +0x66, 0x94f7e\nCBZ             R3, def_94F20; jumptable 00094F20 default case         ; +0x68, 0x94f80\nVLDR            S0, [R0,#0x1D0]                                        ; +0x6a, 0x94f82\nVCVT.F64.F32    D0, S0                                                 ; +0x6e, 0x94f86\nVSTR            D0, [SP,#8+var_8]                                      ; +0x72, 0x94f8a\nLDR             R2, =(a02f - 0x94F94); \"%.02f\" ...                     ; +0x76, 0x94f8e\nADD             R2, PC; \"%.02f\"                                        ; +0x78, 0x94f90\nMOV             R0, R3                                                 ; +0x7a, 0x94f92\nMOVS            R1, #0x20 ; ' '                                        ; +0x7c, 0x94f94\nBL              sub_BE420                                              ; +0x7e, 0x94f96\nB               def_94F20; jumptable 00094F20 default case             ; +0x82, 0x94f9a\nLDR.W           R0, [R0,#0x1D4]; jumptable 00094F20 case 4             ; +0x84, 0x94f9c\nVMOV.F32        S2, #1.0                                               ; +0x88, 0x94fa0\nVLDR            S0, =0.0                                               ; +0x8c, 0x94fa4\nCMP             R0, #0                                                 ; +0x90, 0x94fa8\nIT EQ                                                                  ; +0x92, 0x94faa\nVMOVEQ.F32      S2, S0                                                 ; +0x94, 0x94fac\nVSTR            S2, [R2]                                               ; +0x98, 0x94fb0\nCBZ             R3, def_94F20; jumptable 00094F20 default case         ; +0x9c, 0x94fb4\nLDR             R1, =(aOff - 0x94FC2); \"off\" ...                       ; +0x9e, 0x94fb6\nCMP             R0, #0                                                 ; +0xa0, 0x94fb8\nLDR             R4, =(aOn - 0x94FC4); \"on\" ...                         ; +0xa2, 0x94fba\nMOV             R0, R3                                                 ; +0xa4, 0x94fbc\nADD             R1, PC; \"off\"                                          ; +0xa6, 0x94fbe\nADD             R4, PC; \"on\"                                           ; +0xa8, 0x94fc0\nIT EQ                                                                  ; +0xaa, 0x94fc2\nMOVEQ           R4, R1                                                 ; +0xac, 0x94fc4\nLDR             R2, =(aS - 0x94FD0); \"%s\" ...                          ; +0xae, 0x94fc6\nMOVS            R1, #0x20 ; ' '                                        ; +0xb0, 0x94fc8\nMOV             R3, R4                                                 ; +0xb2, 0x94fca\nADD             R2, PC; \"%s\"                                           ; +0xb4, 0x94fcc\nBL              sub_BE420                                              ; +0xb6, 0x94fce\nMOVS            R0, #0; jumptable 00094F20 default case                ; +0xba, 0x94fd2\nADD             SP, SP, #8                                             ; +0xbc, 0x94fd4\nPOP             {R4,R6,R7,PC}                                          ; +0xbe, 0x94fd6", "xrefs": ["sub_950F4 @ 0x950fa"], "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"}