{"type": "func", "start": 681612, "end": 681796, "name": "sub_A668C", "pseudocode": "// \n// sub_A668C from 0xa668c to 0xa6744 (184 bytes)\n// \n// 1 xrefs:\n// > sub_A6F48 @ 0xa6f4c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:32 +0000\n// \n\n__int64 __fastcall sub_A668C(__int64 a1)\n{\n  __int64 i; // x20\n  __int64 v3; // x20\n  int v4; // w8\n  __int64 v5; // x8\n  __int64 result; // x0\n\n  for ( i = 0; i != 0x2000; ++i )\n    *(float *)(a1 + 4 * i + 640) = cosf((float)(int)i * 0.00019175);\n  v3 = 0;\n  v4 = *(_DWORD *)(*(_QWORD *)(a1 + 168) + 1744LL);\n  *(_DWORD *)(a1 + 616) = 0;\n  *(_QWORD *)(a1 + 576) = 0;\n  *(_QWORD *)(a1 + 592) = 0;\n  *(_DWORD *)(a1 + 612) = v4;\n  *(_DWORD *)(a1 + 604) = 0;\n  while ( 1 )\n  {\n    v5 = *(_QWORD *)(a1 + 232);\n    if ( v3 >= *(int *)(v5 + 96) )\n      break;\n    result = sub_CBD5C(a1, (unsigned int)v3, *(float *)(*(_QWORD *)(*(_QWORD *)(v5 + 104) + 8 * v3) + 56LL));\n    ++v3;\n    if ( (_DWORD)result )\n      return result;\n  }\n  sub_A6744(a1);\n  return 0;\n}", "assembly": "; \n; sub_A668C from 0xa668c to 0xa6744 (184 bytes)\n; \n; 1 xrefs:\n; > sub_A6F48 @ 0xa6f4c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:32 +0000\n; \nSTR             D8, [SP,#-0x10+var_20]!                                ; +0x0, 0xa668c\nADRP            X8, #dword_2F09C@PAGE                                  ; +0x4, 0xa6690\nLDR             S8, [X8,#dword_2F09C@PAGEOFF]                          ; +0x8, 0xa6694\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0xa6698\nMOV             X19, X0                                                ; +0x10, 0xa669c\nMOV             X20, XZR                                               ; +0x14, 0xa66a0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x18, 0xa66a4\nADD             X29, SP, #0x20                                         ; +0x1c, 0xa66a8\nCMP             X20, #2,LSL#12                                         ; +0x20, 0xa66ac\nB.EQ            loc_A66D0                                              ; +0x24, 0xa66b0\nSCVTF           S0, W20                                                ; +0x28, 0xa66b4\nFMUL            S0, S0, S8; x                                          ; +0x2c, 0xa66b8\nBL              .cosf                                                  ; +0x30, 0xa66bc\nADD             X8, X19, X20,LSL#2                                     ; +0x34, 0xa66c0\nSTR             S0, [X8,#0x280]                                        ; +0x38, 0xa66c4\nADD             X20, X20, #1                                           ; +0x3c, 0xa66c8\nB               loc_A66AC                                              ; +0x40, 0xa66cc\nLDR             X8, [X19,#0xA8]                                        ; +0x44, 0xa66d0\nMOV             X20, XZR                                               ; +0x48, 0xa66d4\nMOVI            V0.2D, #0                                              ; +0x4c, 0xa66d8\nLDR             W8, [X8,#0x6D0]                                        ; +0x50, 0xa66dc\nSTR             WZR, [X19,#0x268]                                      ; +0x54, 0xa66e0\nSTR             XZR, [X19,#0x240]                                      ; +0x58, 0xa66e4\nSTR             D0, [X19,#0x250]                                       ; +0x5c, 0xa66e8\nSTR             W8, [X19,#0x264]                                       ; +0x60, 0xa66ec\nSTR             WZR, [X19,#0x25C]                                      ; +0x64, 0xa66f0\nLDR             X8, [X19,#0xE8]                                        ; +0x68, 0xa66f4\nLDRSW           X9, [X8,#0x60]                                         ; +0x6c, 0xa66f8\nCMP             X20, X9                                                ; +0x70, 0xa66fc\nB.GE            loc_A6728                                              ; +0x74, 0xa6700\nLDR             X8, [X8,#0x68]                                         ; +0x78, 0xa6704\nMOV             X0, X19                                                ; +0x7c, 0xa6708\nMOV             W1, W20                                                ; +0x80, 0xa670c\nLDR             X8, [X8,X20,LSL#3]                                     ; +0x84, 0xa6710\nLDR             S0, [X8,#0x38]                                         ; +0x88, 0xa6714\nBL              sub_CBD5C                                              ; +0x8c, 0xa6718\nADD             X20, X20, #1                                           ; +0x90, 0xa671c\nCBZ             W0, loc_A66F4                                          ; +0x94, 0xa6720\nB               loc_A6734                                              ; +0x98, 0xa6724\nMOV             X0, X19                                                ; +0x9c, 0xa6728\nBL              sub_A6744                                              ; +0xa0, 0xa672c\nMOV             W0, WZR                                                ; +0xa4, 0xa6730\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0xa6734\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0xa6738\nLDR             D8, [SP+0x20+var_20],#0x30                             ; +0xb0, 0xa673c\nRET                                                                    ; +0xb4, 0xa6740", "xrefs": ["sub_A6F48 @ 0xa6f4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}