{"type": "func", "start": 400360, "end": 400448, "name": "sub_61BE8", "pseudocode": "// \n// sub_61BE8 from 0x61be8 to 0x61c40 (88 bytes)\n// \n// 1 xrefs:\n// > sub_63AAC @ 0x63af4\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_61BE8(int a1, char a2, _QWORD *a3)\n{\n  int v5; // w0\n  int v6; // w20\n  __int64 result; // x0\n  __int64 v8; // x0\n\n  v5 = accept(a1, nullptr, nullptr);\n  if ( v5 == -1 )\n  {\n    v8 = __errno();\n    return sub_61D9C(v8);\n  }\n  else\n  {\n    v6 = v5;\n    result = sub_61878(v5, a2 & 1);\n    if ( !(_DWORD)result )\n      *a3 = v6;\n  }\n  return result;\n}", "assembly": "; \n; sub_61BE8 from 0x61be8 to 0x61c40 (88 bytes)\n; \n; 1 xrefs:\n; > sub_63AAC @ 0x63af4\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             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x61be8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x61bec\nMOV             X19, X2                                                ; +0x8, 0x61bf0\nMOV             W21, W1                                                ; +0xc, 0x61bf4\nMOV             X1, XZR; addr                                          ; +0x10, 0x61bf8\nMOV             X2, XZR; addr_len                                      ; +0x14, 0x61bfc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x18, 0x61c00\nADD             X29, SP, #0x20                                         ; +0x1c, 0x61c04\nBL              .accept                                                ; +0x20, 0x61c08\nCMN             W0, #1                                                 ; +0x24, 0x61c0c\nB.EQ            loc_61C30                                              ; +0x28, 0x61c10\nAND             W1, W21, #1                                            ; +0x2c, 0x61c14\nMOV             W20, W0                                                ; +0x30, 0x61c18\nBL              sub_61878                                              ; +0x34, 0x61c1c\nCBNZ            W0, loc_61C38                                          ; +0x38, 0x61c20\nSXTW            X8, W20                                                ; +0x3c, 0x61c24\nSTR             X8, [X19]                                              ; +0x40, 0x61c28\nB               loc_61C38                                              ; +0x44, 0x61c2c\nBL              .__errno                                               ; +0x48, 0x61c30\nBL              sub_61D9C                                              ; +0x4c, 0x61c34\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x50, 0x61c38\nB               loc_61DC0                                              ; +0x54, 0x61c3c", "xrefs": ["sub_63AAC @ 0x63af4"], "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"}