{"type": "func", "start": 16710376, "end": 16710452, "name": "ASYNC_WAIT_CTX_clear_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_clear_fd from 0xfefae8 to 0xfefb34 (76 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xd2df0\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 13:15:45 +0000\n// \n\n__int64 __fastcall ASYNC_WAIT_CTX_clear_fd(__int64 *a1, __int64 a2)\n{\n  __int64 v2; // x2\n  __int64 v4; // x1\n\n  v2 = *a1;\n  if ( !*a1 )\n    return (unsigned int)v2;\n  while ( *(_DWORD *)(v2 + 36) || *(_QWORD *)v2 != a2 )\n  {\n    v2 = *(_QWORD *)(v2 + 40);\n    if ( !v2 )\n      return (unsigned int)v2;\n  }\n  v4 = a1[2];\n  *(_DWORD *)(v2 + 36) = 1;\n  a1[2] = v4 + 1;\n  return 1;\n}", "assembly": "; \n; ASYNC_WAIT_CTX_clear_fd from 0xfefae8 to 0xfefb34 (76 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xd2df0\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 13:15:45 +0000\n; \nLDR             X2, [X0]                                               ; +0x0, 0xfefae8\nCBZ             X2, loc_FEFB0C                                         ; +0x4, 0xfefaec\nLDR             W3, [X2,#0x24]                                         ; +0x8, 0xfefaf0\nCBNZ            W3, loc_FEFB04                                         ; +0xc, 0xfefaf4\nLDR             X3, [X2]                                               ; +0x10, 0xfefaf8\nCMP             X3, X1                                                 ; +0x14, 0xfefafc\nB.EQ            loc_FEFB14                                             ; +0x18, 0xfefb00\nLDR             X2, [X2,#0x28]                                         ; +0x1c, 0xfefb04\nCBNZ            X2, loc_FEFAF0                                         ; +0x20, 0xfefb08\nMOV             W0, W2                                                 ; +0x24, 0xfefb0c\nRET                                                                    ; +0x28, 0xfefb10\nLDR             X1, [X0,#0x10]                                         ; +0x2c, 0xfefb14\nMOV             W3, #1                                                 ; +0x30, 0xfefb18\nSTR             W3, [X2,#0x24]                                         ; +0x34, 0xfefb1c\nMOV             W2, W3                                                 ; +0x38, 0xfefb20\nADD             X1, X1, #1                                             ; +0x3c, 0xfefb24\nSTR             X1, [X0,#0x10]                                         ; +0x40, 0xfefb28\nMOV             W0, W2                                                 ; +0x44, 0xfefb2c\nRET                                                                    ; +0x48, 0xfefb30", "xrefs": ["<???> @ 0xd2df0"], "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"}