{"type": "func", "start": 8173456, "end": 8173540, "name": "ASYNC_WAIT_CTX_clear_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_clear_fd from 0x7cb790 to 0x7cb7e4 (84 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f31c\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\nint __fastcall ASYNC_WAIT_CTX_clear_fd(int a1, int a2)\n{\n  _DWORD *i; // r3\n  int v4; // r2\n\n  for ( i = *(_DWORD **)a1; ; i = (_DWORD *)i[6] )\n  {\n    if ( !i )\n      return 0;\n    if ( !i[5] && *i == a2 )\n      break;\n  }\n  v4 = *(_DWORD *)(a1 + 8);\n  i[5] = 1;\n  *(_DWORD *)(a1 + 8) = v4 + 1;\n  return 1;\n}", "assembly": "; \n; ASYNC_WAIT_CTX_clear_fd from 0x7cb790 to 0x7cb7e4 (84 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f31c\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             R3, [R0]                                               ; +0x0, 0x7cb790\nB               loc_7CB7B4                                             ; +0x4, 0x7cb794\nLDR             R2, [R3,#0x14]                                         ; +0x8, 0x7cb798\nCMP             R2, #0                                                 ; +0xc, 0x7cb79c\nBNE             loc_7CB7B0                                             ; +0x10, 0x7cb7a0\nLDR             R2, [R3]                                               ; +0x14, 0x7cb7a4\nCMP             R2, R1                                                 ; +0x18, 0x7cb7a8\nBEQ             loc_7CB7C4                                             ; +0x1c, 0x7cb7ac\nLDR             R3, [R3,#0x18]                                         ; +0x20, 0x7cb7b0\nCMP             R3, #0                                                 ; +0x24, 0x7cb7b4\nBNE             loc_7CB798                                             ; +0x28, 0x7cb7b8\nMOV             R0, R3                                                 ; +0x2c, 0x7cb7bc\nBX              LR                                                     ; +0x30, 0x7cb7c0\nLDR             R2, [R0,#8]                                            ; +0x34, 0x7cb7c4\nMOV             R1, #1                                                 ; +0x38, 0x7cb7c8\nSTR             R1, [R3,#0x14]                                         ; +0x3c, 0x7cb7cc\nADD             R2, R2, R1                                             ; +0x40, 0x7cb7d0\nMOV             R3, R1                                                 ; +0x44, 0x7cb7d4\nSTR             R2, [R0,#8]                                            ; +0x48, 0x7cb7d8\nMOV             R0, R3                                                 ; +0x4c, 0x7cb7dc\nBX              LR                                                     ; +0x50, 0x7cb7e0", "xrefs": ["<???> @ 0x5f31c"], "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"}