{"type": "func", "start": 419732, "end": 419828, "name": "sub_66794", "pseudocode": "// \n// sub_66794 from 0x66794 to 0x667f4 (96 bytes)\n// \n// 2 xrefs:\n// > sub_6662C @ 0x666d4\n// > sub_66804 @ 0x66838\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:13:55 +0000\n// \n\n__int64 __fastcall sub_66794(__int64 a1)\n{\n  __int64 result; // x0\n  _BYTE v3[4]; // [xsp+Ch] [xbp-4h] BYREF\n\n  if ( (unsigned int)(*(_DWORD *)(a1 + 40) - 1) > 4 || !*(_QWORD *)(a1 + 368) )\n    return 0;\n  result = sub_668CC(a1, 8, v3);\n  if ( (_DWORD)result )\n    return result;\n  if ( !*(_DWORD *)(a1 + 384) )\n    return 0;\n  sub_6688C();\n  *(_DWORD *)(a1 + 384) = 0;\n  return 0;\n}", "assembly": "; \n; sub_66794 from 0x66794 to 0x667f4 (96 bytes)\n; \n; 2 xrefs:\n; > sub_6662C @ 0x666d4\n; > sub_66804 @ 0x66838\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:13:55 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x66794\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x66798\nLDR             W8, [X0,#0x28]                                         ; +0x8, 0x6679c\nADD             X29, SP, #0x10                                         ; +0xc, 0x667a0\nSUB             W8, W8, #1                                             ; +0x10, 0x667a4\nCMP             W8, #4                                                 ; +0x14, 0x667a8\nB.HI            loc_667E4                                              ; +0x18, 0x667ac\nLDR             X8, [X0,#0x170]                                        ; +0x1c, 0x667b0\nMOV             X19, X0                                                ; +0x20, 0x667b4\nCBZ             X8, loc_667E4                                          ; +0x24, 0x667b8\nSUB             X2, X29, #-var_4                                       ; +0x28, 0x667bc\nMOV             W1, #8                                                 ; +0x2c, 0x667c0\nBL              sub_668CC                                              ; +0x30, 0x667c4\nCBNZ            W0, loc_667E8                                          ; +0x34, 0x667c8\nLDR             W8, [X19,#0x180]                                       ; +0x38, 0x667cc\nCBZ             W8, loc_667E4                                          ; +0x3c, 0x667d0\nBL              sub_6688C                                              ; +0x40, 0x667d4\nMOV             W0, WZR                                                ; +0x44, 0x667d8\nSTR             WZR, [X19,#0x180]                                      ; +0x48, 0x667dc\nB               loc_667E8                                              ; +0x4c, 0x667e0\nMOV             W0, WZR                                                ; +0x50, 0x667e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x667e8\nLDR             X19, [SP+0x10+var_10],#0x20                            ; +0x58, 0x667ec\nRET                                                                    ; +0x5c, 0x667f0", "xrefs": ["sub_6662C @ 0x666d4", "sub_66804 @ 0x66838"], "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"}