{"type": "func", "start": 426828, "end": 426946, "name": "sub_6834C", "pseudocode": "// \n// sub_6834C from 0x6834c to 0x683c2 (118 bytes)\n// \n// 0 xrefs:\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_6834C(int *a1, int a2, _DWORD *a3, _DWORD *a4, _BYTE *a5)\n{\n  int v5; // r6\n  float v8; // s16\n  float v9; // r0\n  float v10; // s4\n  int result; // r0\n\n  if ( a2 != 4 )\n    return 31;\n  v5 = *a1;\n  v8 = *(float *)(*a1 + 520);\n  v9 = powf(10.0, v8 * 0.05);\n  v10 = 0.0;\n  if ( v8 > -80.0 )\n    v10 = v9;\n  *(float *)(v5 + 532) = v10;\n  *a3 = v5 + 528;\n  *a4 = 8;\n  result = 0;\n  if ( a5 )\n    *a5 = 0;\n  return result;\n}", "assembly": "; \n; sub_6834C from 0x6834c to 0x683c2 (118 bytes)\n; \n; 0 xrefs:\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            {R4-R7,LR}                                             ; +0x0, 0x6834c\nADD             R7, SP, #0xC                                           ; +0x2, 0x6834e\nPUSH.W          {R8}                                                   ; +0x4, 0x68350\nVPUSH           {D8}                                                   ; +0x8, 0x68354\nCMP             R1, #4                                                 ; +0xc, 0x68358\nBNE             loc_683B6                                              ; +0xe, 0x6835a\nLDR             R6, [R0]                                               ; +0x10, 0x6835c\nMOV             R4, R3                                                 ; +0x12, 0x6835e\nVLDR            S0, =0.05                                              ; +0x14, 0x68360\nMOV             R5, R2                                                 ; +0x18, 0x68364\nLDR             R0, flt_683C8; x                                       ; +0x1a, 0x68366\nVLDR            S16, [R6,#0x208]                                       ; +0x1c, 0x68368\nLDR.W           R8, [R7,#-0x18+arg_0]                                  ; +0x20, 0x6836c\nVMUL.F32        S0, S16, S0                                            ; +0x24, 0x68370\nVMOV            R1, S0; y                                              ; +0x28, 0x68374\nBLX             powf                                                   ; +0x2c, 0x68378\nVLDR            S2, =-80.0                                             ; +0x30, 0x6837c\nVMOV            S0, R0                                                 ; +0x34, 0x68380\nVLDR            S4, =0.0                                               ; +0x38, 0x68384\nADD.W           R0, R6, #0x210                                         ; +0x3c, 0x68388\nVCMPE.F32       S16, S2                                                ; +0x40, 0x6838c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x44, 0x68390\nIT GT                                                                  ; +0x48, 0x68394\nVMOVGT.F32      S4, S0                                                 ; +0x4a, 0x68396\nVSTR            S4, [R6,#0x214]                                        ; +0x4e, 0x6839a\nCMP.W           R8, #0                                                 ; +0x52, 0x6839e\nSTR             R0, [R5]                                               ; +0x56, 0x683a2\nMOV.W           R0, #8                                                 ; +0x58, 0x683a4\nSTR             R0, [R4]                                               ; +0x5c, 0x683a8\nMOV.W           R0, #0                                                 ; +0x5e, 0x683aa\nIT NE                                                                  ; +0x62, 0x683ae\nSTRBNE.W        R0, [R8]                                               ; +0x64, 0x683b0\nB               loc_683B8                                              ; +0x68, 0x683b4\nMOVS            R0, #0x1F                                              ; +0x6a, 0x683b6\nVPOP            {D8}                                                   ; +0x6c, 0x683b8\nPOP.W           {R8}                                                   ; +0x70, 0x683bc\nPOP             {R4-R7,PC}                                             ; +0x74, 0x683c0", "xrefs": [], "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"}