{"type": "func", "start": 14096264, "end": 14096340, "name": "ASYNC_WAIT_CTX_clear_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_clear_fd from 0xd71788 to 0xd717d4 (76 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xa0470\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 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 0xd71788 to 0xd717d4 (76 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xa0470\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\nLDR             X2, [X0]                                               ; +0x0, 0xd71788\nCBZ             X2, loc_D717AC                                         ; +0x4, 0xd7178c\nLDR             W3, [X2,#0x24]                                         ; +0x8, 0xd71790\nCBNZ            W3, loc_D717A4                                         ; +0xc, 0xd71794\nLDR             X3, [X2]                                               ; +0x10, 0xd71798\nCMP             X3, X1                                                 ; +0x14, 0xd7179c\nB.EQ            loc_D717B4                                             ; +0x18, 0xd717a0\nLDR             X2, [X2,#0x28]                                         ; +0x1c, 0xd717a4\nCBNZ            X2, loc_D71790                                         ; +0x20, 0xd717a8\nMOV             W0, W2                                                 ; +0x24, 0xd717ac\nRET                                                                    ; +0x28, 0xd717b0\nLDR             X1, [X0,#0x10]                                         ; +0x2c, 0xd717b4\nMOV             W3, #1                                                 ; +0x30, 0xd717b8\nSTR             W3, [X2,#0x24]                                         ; +0x34, 0xd717bc\nMOV             W2, W3                                                 ; +0x38, 0xd717c0\nADD             X1, X1, #1                                             ; +0x3c, 0xd717c4\nSTR             X1, [X0,#0x10]                                         ; +0x40, 0xd717c8\nMOV             W0, W2                                                 ; +0x44, 0xd717cc\nRET                                                                    ; +0x48, 0xd717d0", "xrefs": ["<???> @ 0xa0470"], "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"}