{"type": "func", "start": 6442911376, "end": 6442911597, "name": "sub_180070690", "pseudocode": "// \n// sub_180070690 from 0x180070690 to 0x18007076d (221 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801ad100\n// > <???> @ 0x1801f990c\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\n__int64 __fastcall sub_180070690(__int64 *a1, int a2, float a3)\n{\n  __int64 v3; // rbx\n  int v4; // edx\n\n  v3 = *a1;\n  if ( a2 )\n  {\n    v4 = a2 - 1;\n    if ( v4 )\n    {\n      if ( v4 != 1 )\n        return 31;\n      if ( a3 > -80.0 )\n        *(float *)(v3 + 684) = powf(10.0, a3 * 0.050000001);\n      else\n        *(_DWORD *)(v3 + 684) = 0;\n    }\n    else if ( a3 > -80.0 )\n    {\n      *(float *)(v3 + 680) = powf(10.0, a3 * 0.050000001);\n    }\n    else\n    {\n      *(_DWORD *)(v3 + 680) = 0;\n    }\n  }\n  else\n  {\n    *(float *)(v3 + 676) = a3;\n  }\n  *(float *)(v3 + 688) = (float)(*(float *)(v3 + 676) * 0.001)\n                       / (float)((float)(1.0 / (float)*(int *)(v3 + 672)) + (float)(*(float *)(v3 + 676) * 0.001));\n  return 0;\n}", "assembly": "; \n; sub_180070690 from 0x180070690 to 0x18007076d (221 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801ad100\n; > <???> @ 0x1801f990c\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    rbx                                                            ; +0x0, 0x180070690\nsub     rsp, 20h                                                       ; +0x2, 0x180070692\nmov     rbx, [rcx]                                                     ; +0x6, 0x180070696\ntest    edx, edx                                                       ; +0x9, 0x180070699\njz      loc_180070726                                                  ; +0xb, 0x18007069b\nsub     edx, 1                                                         ; +0x11, 0x1800706a1\njz      short loc_1800706EE                                            ; +0x14, 0x1800706a4\ncmp     edx, 1                                                         ; +0x16, 0x1800706a6\njz      short loc_1800706B6                                            ; +0x19, 0x1800706a9\nmov     eax, 1Fh                                                       ; +0x1b, 0x1800706ab\nadd     rsp, 20h                                                       ; +0x20, 0x1800706b0\npop     rbx                                                            ; +0x24, 0x1800706b4\nretn                                                                   ; +0x25, 0x1800706b5\ncomiss  xmm2, cs:dword_1801674C8                                       ; +0x26, 0x1800706b6\nja      short loc_1800706CC                                            ; +0x2d, 0x1800706bd\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x1800706bf\nmovss   dword ptr [rbx+2ACh], xmm0                                     ; +0x32, 0x1800706c2\njmp     short loc_18007072E                                            ; +0x3a, 0x1800706ca\nmulss   xmm2, cs:dword_180164A1C                                       ; +0x3c, 0x1800706cc\nmovss   xmm0, cs:flt_180145764; X                                      ; +0x44, 0x1800706d4\nmovaps  xmm1, xmm2; Y                                                  ; +0x4c, 0x1800706dc\ncall    powf                                                           ; +0x4f, 0x1800706df\nmovss   dword ptr [rbx+2ACh], xmm0                                     ; +0x54, 0x1800706e4\njmp     short loc_18007072E                                            ; +0x5c, 0x1800706ec\ncomiss  xmm2, cs:dword_1801674C8                                       ; +0x5e, 0x1800706ee\nja      short loc_180070704                                            ; +0x65, 0x1800706f5\nxorps   xmm0, xmm0                                                     ; +0x67, 0x1800706f7\nmovss   dword ptr [rbx+2A8h], xmm0                                     ; +0x6a, 0x1800706fa\njmp     short loc_18007072E                                            ; +0x72, 0x180070702\nmulss   xmm2, cs:dword_180164A1C                                       ; +0x74, 0x180070704\nmovss   xmm0, cs:flt_180145764; X                                      ; +0x7c, 0x18007070c\nmovaps  xmm1, xmm2; Y                                                  ; +0x84, 0x180070714\ncall    powf                                                           ; +0x87, 0x180070717\nmovss   dword ptr [rbx+2A8h], xmm0                                     ; +0x8c, 0x18007071c\njmp     short loc_18007072E                                            ; +0x94, 0x180070724\nmovss   dword ptr [rbx+2A4h], xmm2                                     ; +0x96, 0x180070726\nmovd    xmm0, dword ptr [rbx+2A0h]                                     ; +0x9e, 0x18007072e\nxor     eax, eax                                                       ; +0xa6, 0x180070736\nmovss   xmm1, cs:dword_180145744                                       ; +0xa8, 0x180070738\nmovss   xmm2, dword ptr [rbx+2A4h]                                     ; +0xb0, 0x180070740\nmulss   xmm2, cs:dword_1801457E4                                       ; +0xb8, 0x180070748\ncvtdq2ps xmm0, xmm0                                                    ; +0xc0, 0x180070750\ndivss   xmm1, xmm0                                                     ; +0xc3, 0x180070753\naddss   xmm1, xmm2                                                     ; +0xc7, 0x180070757\ndivss   xmm2, xmm1                                                     ; +0xcb, 0x18007075b\nmovss   dword ptr [rbx+2B0h], xmm2                                     ; +0xcf, 0x18007075f\nadd     rsp, 20h                                                       ; +0xd7, 0x180070767\npop     rbx                                                            ; +0xdb, 0x18007076b\nretn                                                                   ; +0xdc, 0x18007076c", "xrefs": ["<???> @ 0x1801ad100", "<???> @ 0x1801f990c"], "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"}