{"type": "func", "start": 609056, "end": 609188, "name": "sub_94B20", "pseudocode": "// \n// sub_94B20 from 0x94b20 to 0x94ba4 (132 bytes)\n// \n// 2 xrefs:\n// > sub_94AE6 @ 0x94b06\n// > sub_950EC @ 0x950f0\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_94B20(int a1, int a2, float a3, int a4)\n{\n  int result; // r0\n  int v6; // r1\n  int v7; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a4;\n  switch ( a2 )\n  {\n    case 0:\n      *(float *)(a1 + 452) = a3 * 0.01;\n      goto LABEL_7;\n    case 1:\n      *(float *)(a1 + 456) = a3 * 0.01;\n      goto LABEL_7;\n    case 2:\n      *(float *)(a1 + 460) = a3;\n      goto LABEL_7;\n    case 3:\n      *(float *)(a1 + 464) = a3;\n      goto LABEL_7;\n    case 4:\n      *(_DWORD *)(a1 + 468) = a3 >= 0.5;\nLABEL_7:\n      if ( !a4 )\n        return 0;\n      result = sub_61E9C(*(_DWORD *)(a1 + 128), &v7, 8, 1);\n      if ( !result )\n      {\n        *(_BYTE *)v7 = 7;\n        v6 = v7;\n        *(_DWORD *)(v7 + 4) = a1;\n        result = sub_61F04(*(_DWORD *)(a1 + 128), v6, 1);\n        if ( !result )\n          return 0;\n      }\n      return result;\n    default:\n      return 0;\n  }\n}", "assembly": "; \n; sub_94B20 from 0x94b20 to 0x94ba4 (132 bytes)\n; \n; 2 xrefs:\n; > sub_94AE6 @ 0x94b06\n; > sub_950EC @ 0x950f0\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, 0x94b20\nADD             R7, SP, #0x10                                          ; +0x2, 0x94b22\nCMP             R1, #4; switch 5 cases                                 ; +0x4, 0x94b24\nBHI             def_94B2E; jumptable 00094B2E default case             ; +0x6, 0x94b26\nMOV             R4, R0                                                 ; +0x8, 0x94b28\nVMOV            S0, R2                                                 ; +0xa, 0x94b2a\nTBB.W           [PC,R1]; switch jump                                   ; +0xe, 0x94b2e\nDCB 3; jump table for switch statement                                 ; +0x12, 0x94b32\nDCB 0xA                                                                ; +0x13, 0x94b33\nDCB 0x11                                                               ; +0x14, 0x94b34\nDCB 0x14                                                               ; +0x15, 0x94b35\nDCB 0x17                                                               ; +0x16, 0x94b36\nALIGN 2                                                                ; +0x17, 0x94b37\nVLDR            S2, =0.01; jumptable 00094B2E case 0                   ; +0x18, 0x94b38\nVMUL.F32        S0, S0, S2                                             ; +0x1c, 0x94b3c\nVSTR            S0, [R4,#0x1C4]                                        ; +0x20, 0x94b40\nB               loc_94B76                                              ; +0x24, 0x94b44\nVLDR            S2, =0.01; jumptable 00094B2E case 1                   ; +0x26, 0x94b46\nVMUL.F32        S0, S0, S2                                             ; +0x2a, 0x94b4a\nVSTR            S0, [R4,#0x1C8]                                        ; +0x2e, 0x94b4e\nB               loc_94B76                                              ; +0x32, 0x94b52\nVSTR            S0, [R4,#0x1CC]; jumptable 00094B2E case 2             ; +0x34, 0x94b54\nB               loc_94B76                                              ; +0x38, 0x94b58\nVSTR            S0, [R4,#0x1D0]; jumptable 00094B2E case 3             ; +0x3a, 0x94b5a\nB               loc_94B76                                              ; +0x3e, 0x94b5e\nVMOV.F32        S2, #0.5; jumptable 00094B2E case 4                    ; +0x40, 0x94b60\nMOVS            R0, #0                                                 ; +0x44, 0x94b64\nVCMPE.F32       S0, S2                                                 ; +0x46, 0x94b66\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4a, 0x94b6a\nIT GE                                                                  ; +0x4e, 0x94b6e\nMOVGE           R0, #1                                                 ; +0x50, 0x94b70\nSTR.W           R0, [R4,#0x1D4]                                        ; +0x52, 0x94b72\nCBZ             R3, def_94B2E; jumptable 00094B2E default case         ; +0x56, 0x94b76\nLDR.W           R0, [R4,#0x80]                                         ; +0x58, 0x94b78\nADD             R1, SP, #8+var_4                                       ; +0x5c, 0x94b7c\nMOVS            R2, #8                                                 ; +0x5e, 0x94b7e\nMOVS            R3, #1                                                 ; +0x60, 0x94b80\nBL              sub_61E9C                                              ; +0x62, 0x94b82\nCBNZ            R0, loc_94BA0                                          ; +0x66, 0x94b86\nLDR             R0, [SP,#8+var_4]                                      ; +0x68, 0x94b88\nMOVS            R1, #7                                                 ; +0x6a, 0x94b8a\nMOVS            R2, #1                                                 ; +0x6c, 0x94b8c\nSTRB            R1, [R0]                                               ; +0x6e, 0x94b8e\nLDR             R1, [SP,#8+var_4]                                      ; +0x70, 0x94b90\nSTR             R4, [R1,#4]                                            ; +0x72, 0x94b92\nLDR.W           R0, [R4,#0x80]                                         ; +0x74, 0x94b94\nBL              sub_61F04                                              ; +0x78, 0x94b98\nCBNZ            R0, loc_94BA0                                          ; +0x7c, 0x94b9c\nMOVS            R0, #0; jumptable 00094B2E default case                ; +0x7e, 0x94b9e\nADD             SP, SP, #8                                             ; +0x80, 0x94ba0\nPOP             {R4,R6,R7,PC}                                          ; +0x82, 0x94ba2", "xrefs": ["sub_94AE6 @ 0x94b06", "sub_950EC @ 0x950f0"], "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"}