{"type": "func", "start": 779500, "end": 779588, "name": "sub_BE4EC", "pseudocode": "// \n// sub_BE4EC from 0xbe4ec to 0xbe544 (88 bytes)\n// \n// 1 xrefs:\n// > sub_BE0AC @ 0xbe260\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_BE4EC(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        _DWORD *a5,\n        _DWORD *a6,\n        __int64 a7,\n        int a8)\n{\n  if ( *a6 || *a5 )\n  {\n    if ( a8 == 4 )\n    {\n      sub_C11C0();\n      return 0;\n    }\n    if ( a8 == 3 )\n    {\n      sub_BE8E4();\n      return 0;\n    }\n    if ( a8 != 1 )\n    {\n      sub_BF948();\n      return 0;\n    }\n  }\n  sub_C09A4();\n  return 0;\n}", "assembly": "; \n; sub_BE4EC from 0xbe4ec to 0xbe544 (88 bytes)\n; \n; 1 xrefs:\n; > sub_BE0AC @ 0xbe260\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0xbe4ec\nLDR             W8, [X5]                                               ; +0x4, 0xbe4f0\nMOV             X29, SP                                                ; +0x8, 0xbe4f4\nCBNZ            W8, loc_BE504                                          ; +0xc, 0xbe4f8\nLDR             W8, [X4]                                               ; +0x10, 0xbe4fc\nCBZ             W8, loc_BE51C                                          ; +0x14, 0xbe500\nCMP             W7, #4                                                 ; +0x18, 0xbe504\nB.EQ            loc_BE524                                              ; +0x1c, 0xbe508\nCMP             W7, #3                                                 ; +0x20, 0xbe50c\nB.EQ            loc_BE52C                                              ; +0x24, 0xbe510\nCMP             W7, #1                                                 ; +0x28, 0xbe514\nB.NE            loc_BE534                                              ; +0x2c, 0xbe518\nBL              sub_C09A4                                              ; +0x30, 0xbe51c\nB               loc_BE538                                              ; +0x34, 0xbe520\nBL              sub_C11C0                                              ; +0x38, 0xbe524\nB               loc_BE538                                              ; +0x3c, 0xbe528\nBL              sub_BE8E4                                              ; +0x40, 0xbe52c\nB               loc_BE538                                              ; +0x44, 0xbe530\nBL              sub_BF948                                              ; +0x48, 0xbe534\nMOV             W0, WZR                                                ; +0x4c, 0xbe538\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x50, 0xbe53c\nRET                                                                    ; +0x54, 0xbe540", "xrefs": ["sub_BE0AC @ 0xbe260"], "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"}