{"type": "func", "start": 311740, "end": 311862, "name": "sub_4C1BC", "pseudocode": "// \n// sub_4C1BC from 0x4c1bc to 0x4c236 (122 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x4c1ba\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:41 +0000\n// \n\nint __fastcall sub_4C1BC(int a1, float a2, float a3, int a4)\n{\n  int v4; // r4\n  float v6; // s0\n  float v7; // s2\n\n  v4 = *(_DWORD *)(a1 + 332);\n  if ( !v4 || !*(_DWORD *)(a1 + 16) )\n    return 30;\n  if ( (*(_BYTE *)(v4 + 28) & 0x10) == 0 )\n    return 40;\n  v6 = a3;\n  v7 = a2;\n  if ( a3 > 1.0 )\n    v6 = 1.0;\n  if ( v6 < 0.0 )\n    v6 = 0.0;\n  if ( a2 > 1.0 )\n    v7 = 1.0;\n  if ( v7 < 0.0 )\n    v7 = 0.0;\n  *(float *)(a1 + 140) = v7;\n  *(float *)(a1 + 144) = v6;\n  if ( a4 )\n  {\n    *(float *)(a1 + 148) = v7;\n    *(float *)(a1 + 152) = v6;\n  }\n  return 0;\n}", "assembly": "; \n; sub_4C1BC from 0x4c1bc to 0x4c236 (122 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x4c1ba\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:41 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x4c1bc\nADD             R7, SP, #8                                             ; +0x2, 0x4c1be\nLDR.W           R4, [R0,#0x14C]                                        ; +0x4, 0x4c1c0\nCBZ             R4, loc_4C1D4                                          ; +0x8, 0x4c1c4\nLDR             R5, [R0,#0x10]                                         ; +0xa, 0x4c1c6\nCBZ             R5, loc_4C1D4                                          ; +0xc, 0x4c1c8\nLDRB            R4, [R4,#0x1C]                                         ; +0xe, 0x4c1ca\nLSLS            R4, R4, #0x1B                                          ; +0x10, 0x4c1cc\nBMI             loc_4C1D8                                              ; +0x12, 0x4c1ce\nMOVS            R0, #0x28 ; '('                                        ; +0x14, 0x4c1d0\nPOP             {R4,R5,R7,PC}                                          ; +0x16, 0x4c1d2\nMOVS            R0, #0x1E                                              ; +0x18, 0x4c1d4\nPOP             {R4,R5,R7,PC}                                          ; +0x1a, 0x4c1d6\nVMOV.F32        S4, #1.0                                               ; +0x1c, 0x4c1d8\nVLDR            S6, =0.0                                               ; +0x20, 0x4c1dc\nVMOV            S0, R2                                                 ; +0x24, 0x4c1e0\nVMOV            S2, R1                                                 ; +0x28, 0x4c1e4\nVCMPE.F32       S0, S4                                                 ; +0x2c, 0x4c1e8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x30, 0x4c1ec\nIT GT                                                                  ; +0x34, 0x4c1f0\nVMOVGT.F32      S0, S4                                                 ; +0x36, 0x4c1f2\nVCMPE.F32       S0, #0.0                                               ; +0x3a, 0x4c1f6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3e, 0x4c1fa\nVCMPE.F32       S2, S4                                                 ; +0x42, 0x4c1fe\nIT LT                                                                  ; +0x46, 0x4c202\nVMOVLT.F32      S0, S6                                                 ; +0x48, 0x4c204\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x4c208\nIT GT                                                                  ; +0x50, 0x4c20c\nVMOVGT.F32      S2, S4                                                 ; +0x52, 0x4c20e\nVCMPE.F32       S2, #0.0                                               ; +0x56, 0x4c212\nVMRS            APSR_nzcv, FPSCR                                       ; +0x5a, 0x4c216\nIT LT                                                                  ; +0x5e, 0x4c21a\nVMOVLT.F32      S2, S6                                                 ; +0x60, 0x4c21c\nVSTR            S2, [R0,#0x8C]                                         ; +0x64, 0x4c220\nVSTR            S0, [R0,#0x90]                                         ; +0x68, 0x4c224\nCBZ             R3, loc_4C232                                          ; +0x6c, 0x4c228\nVSTR            S2, [R0,#0x94]                                         ; +0x6e, 0x4c22a\nVSTR            S0, [R0,#0x98]                                         ; +0x72, 0x4c22e\nMOVS            R0, #0                                                 ; +0x76, 0x4c232\nPOP             {R4,R5,R7,PC}                                          ; +0x78, 0x4c234", "xrefs": ["<???> @ 0x4c1ba"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}