{"type": "func", "start": 312072, "end": 312178, "name": "sub_4C308", "pseudocode": "// \n// sub_4C308 from 0x4c308 to 0x4c372 (106 bytes)\n// \n// 0 xrefs:\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_4C308(int a1, float a2)\n{\n  int v2; // r3\n  int result; // r0\n\n  v2 = *(_DWORD *)(a1 + 332);\n  if ( !v2 || !*(_DWORD *)(a1 + 16) )\n    return 30;\n  if ( (*(_BYTE *)(v2 + 28) & 0x10) == 0 )\n    return 40;\n  if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )\n    return 29;\n  result = 31;\n  if ( a2 >= 0.0 && a2 <= 1.0 )\n  {\n    result = 0;\n    *(float *)(a1 + 184) = a2;\n    if ( a2 < 1.0 && (*(_DWORD *)(v2 + 32) & 0x20) != 0 )\n      return sub_4BB6C((int *)a1, 0, 0);\n  }\n  return result;\n}", "assembly": "; \n; sub_4C308 from 0x4c308 to 0x4c372 (106 bytes)\n; \n; 0 xrefs:\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; \nLDR.W           R3, [R0,#0x14C]                                        ; +0x0, 0x4c308\nCBZ             R3, loc_4C330                                          ; +0x4, 0x4c30c\nMOV             R2, R0                                                 ; +0x6, 0x4c30e\nLDR             R0, [R0,#0x10]                                         ; +0x8, 0x4c310\nCBZ             R0, loc_4C330                                          ; +0xa, 0x4c312\nLDRB            R0, [R3,#0x1C]                                         ; +0xc, 0x4c314\nLSLS            R0, R0, #0x1B                                          ; +0xe, 0x4c316\nITT PL                                                                 ; +0x10, 0x4c318\nMOVPL           R0, #0x28 ; '('                                        ; +0x12, 0x4c31a\nBXPL            LR                                                     ; +0x14, 0x4c31c\nAND.W           R0, R1, #0x7F800000                                    ; +0x16, 0x4c31e\nVMOV            S0, R1                                                 ; +0x1a, 0x4c322\nCMP.W           R0, #0x7F800000                                        ; +0x1e, 0x4c326\nBNE             loc_4C334                                              ; +0x22, 0x4c32a\nMOVS            R0, #0x1D                                              ; +0x24, 0x4c32c\nB               locret_4C370                                           ; +0x26, 0x4c32e\nMOVS            R0, #0x1E                                              ; +0x28, 0x4c330\nBX              LR                                                     ; +0x2a, 0x4c332\nVCMPE.F32       S0, #0.0                                               ; +0x2c, 0x4c334\nMOVS            R0, #0x1F                                              ; +0x30, 0x4c338\nVMRS            APSR_nzcv, FPSCR                                       ; +0x32, 0x4c33a\nBLT             locret_4C370                                           ; +0x36, 0x4c33e\nVMOV.F32        S2, #1.0                                               ; +0x38, 0x4c340\nVCMPE.F32       S0, S2                                                 ; +0x3c, 0x4c344\nVMRS            APSR_nzcv, FPSCR                                       ; +0x40, 0x4c348\nBGT             locret_4C370                                           ; +0x44, 0x4c34c\nVCMPE.F32       S0, S2                                                 ; +0x46, 0x4c34e\nMOVS            R0, #0                                                 ; +0x4a, 0x4c352\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x4c354\nVSTR            S0, [R2,#0xB8]                                         ; +0x50, 0x4c358\nBGE             locret_4C370                                           ; +0x54, 0x4c35c\nLDR             R1, [R3,#0x20]                                         ; +0x56, 0x4c35e\nANDS.W          R1, R1, #0x20 ; ' '                                    ; +0x58, 0x4c360\nBEQ             locret_4C370                                           ; +0x5c, 0x4c364\nMOV             R0, R2                                                 ; +0x5e, 0x4c366\nMOVS            R1, #0                                                 ; +0x60, 0x4c368\nMOVS            R2, #0                                                 ; +0x62, 0x4c36a\nB.W             sub_4BB6C                                              ; +0x64, 0x4c36c\nBX              LR                                                     ; +0x68, 0x4c370", "xrefs": [], "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"}