{"type": "func", "start": 726896, "end": 727060, "name": "sub_B1770", "pseudocode": "// \n// sub_B1770 from 0xb1770 to 0xb1814 (164 bytes)\n// \n// 1 xrefs:\n// > sub_B1BE8 @ 0xb1bec\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_B1770(__int64 a1)\n{\n  __int64 v2; // x20\n  __int64 v3; // x21\n  __int64 i; // x20\n  __int64 v5; // x8\n  _DWORD *v6; // x8\n  __int64 result; // x0\n\n  v2 = 0;\n  v3 = a1 + 1236;\n  while ( v2 != 0x2000 )\n  {\n    *(float *)(v3 + 4 * v2) = cosf((float)(int)v2 * 0.00019175);\n    ++v2;\n  }\n  for ( i = 0; ; ++i )\n  {\n    v5 = *(_QWORD *)(a1 + 232);\n    if ( i >= *(int *)(v5 + 96) )\n      break;\n    v6 = *(_DWORD **)(*(_QWORD *)(v5 + 104) + 8 * i);\n    if ( *v6 == 1 )\n    {\n      result = sub_CBDCC(a1, (unsigned int)i, (unsigned int)v6[14]);\n      if ( (_DWORD)result )\n        return result;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_B1770 from 0xb1770 to 0xb1814 (164 bytes)\n; \n; 1 xrefs:\n; > sub_B1BE8 @ 0xb1bec\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\nSTR             D8, [SP,#-0x10+var_20]!                                ; +0x0, 0xb1770\nADRP            X8, #dword_2F09C@PAGE                                  ; +0x4, 0xb1774\nLDR             S8, [X8,#dword_2F09C@PAGEOFF]                          ; +0x8, 0xb1778\nSTR             X21, [SP,#0x20+var_18]                                 ; +0xc, 0xb177c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x10, 0xb1780\nMOV             X19, X0                                                ; +0x14, 0xb1784\nMOV             X20, XZR                                               ; +0x18, 0xb1788\nADD             X21, X0, #0x4D4                                        ; +0x1c, 0xb178c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x20, 0xb1790\nADD             X29, SP, #0x20                                         ; +0x24, 0xb1794\nCMP             X20, #2,LSL#12                                         ; +0x28, 0xb1798\nB.EQ            loc_B17B8                                              ; +0x2c, 0xb179c\nSCVTF           S0, W20                                                ; +0x30, 0xb17a0\nFMUL            S0, S0, S8; x                                          ; +0x34, 0xb17a4\nBL              .cosf                                                  ; +0x38, 0xb17a8\nSTR             S0, [X21,X20,LSL#2]                                    ; +0x3c, 0xb17ac\nADD             X20, X20, #1                                           ; +0x40, 0xb17b0\nB               loc_B1798                                              ; +0x44, 0xb17b4\nMOV             X20, XZR                                               ; +0x48, 0xb17b8\nLDR             X8, [X19,#0xE8]                                        ; +0x4c, 0xb17bc\nLDRSW           X9, [X8,#0x60]                                         ; +0x50, 0xb17c0\nCMP             X20, X9                                                ; +0x54, 0xb17c4\nB.GE            loc_B17FC                                              ; +0x58, 0xb17c8\nLDR             X8, [X8,#0x68]                                         ; +0x5c, 0xb17cc\nLDR             X8, [X8,X20,LSL#3]                                     ; +0x60, 0xb17d0\nLDR             W9, [X8]                                               ; +0x64, 0xb17d4\nCMP             W9, #1                                                 ; +0x68, 0xb17d8\nB.NE            loc_B17F4                                              ; +0x6c, 0xb17dc\nLDR             W2, [X8,#0x38]                                         ; +0x70, 0xb17e0\nMOV             X0, X19                                                ; +0x74, 0xb17e4\nMOV             W1, W20                                                ; +0x78, 0xb17e8\nBL              sub_CBDCC                                              ; +0x7c, 0xb17ec\nCBNZ            W0, loc_B1800                                          ; +0x80, 0xb17f0\nADD             X20, X20, #1                                           ; +0x84, 0xb17f4\nB               loc_B17BC                                              ; +0x88, 0xb17f8\nMOV             W0, WZR                                                ; +0x8c, 0xb17fc\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x90, 0xb1800\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x94, 0xb1804\nLDR             X21, [SP,#0x20+var_18]                                 ; +0x98, 0xb1808\nLDR             D8, [SP+0x20+var_20],#0x30                             ; +0x9c, 0xb180c\nRET                                                                    ; +0xa0, 0xb1810", "xrefs": ["sub_B1BE8 @ 0xb1bec"], "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"}