{"type": "func", "start": 293996, "end": 294048, "name": "sub_47C6C", "pseudocode": "// \n// sub_47C6C from 0x47c6c to 0x47ca0 (52 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x47c6a\n// > sub_49968 @ 0x49970\n// > sub_4BE78 @ 0x4be80\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_47C6C(int a1, float a2)\n{\n  float v3; // s0\n\n  if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 && (LODWORD(a2) & 0x7FFFFF) != 0 )\n    return 29;\n  v3 = a2;\n  if ( a2 < 0.0 )\n    v3 = 0.0;\n  *(float *)(a1 + 28) = v3;\n  return 0;\n}", "assembly": "; \n; sub_47C6C from 0x47c6c to 0x47ca0 (52 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x47c6a\n; > sub_49968 @ 0x49970\n; > sub_4BE78 @ 0x4be80\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\nAND.W           R2, R1, #0x7F800000                                    ; +0x0, 0x47c6c\nCMP.W           R2, #0x7F800000                                        ; +0x4, 0x47c70\nBNE             loc_47C82                                              ; +0x8, 0x47c74\nMOV             R2, R1                                                 ; +0xa, 0x47c76\nBFC.W           R2, #0x17, #9                                          ; +0xc, 0x47c78\nCBZ             R2, loc_47C82                                          ; +0x10, 0x47c7c\nMOVS            R0, #0x1D                                              ; +0x12, 0x47c7e\nBX              LR                                                     ; +0x14, 0x47c80\nVMOV            S0, R1                                                 ; +0x16, 0x47c82\nVLDR            S2, =0.0                                               ; +0x1a, 0x47c86\nVCMPE.F32       S0, #0.0                                               ; +0x1e, 0x47c8a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22, 0x47c8e\nIT LT                                                                  ; +0x26, 0x47c92\nVMOVLT.F32      S0, S2                                                 ; +0x28, 0x47c94\nVSTR            S0, [R0,#0x1C]                                         ; +0x2c, 0x47c98\nMOVS            R0, #0                                                 ; +0x30, 0x47c9c\nBX              LR                                                     ; +0x32, 0x47c9e", "xrefs": ["<???> @ 0x47c6a", "sub_49968 @ 0x49970", "sub_4BE78 @ 0x4be80"], "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"}