{"type": "func", "start": 16709960, "end": 16710116, "name": "ASYNC_WAIT_CTX_set_wait_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_set_wait_fd from 0xfef948 to 0xfef9e4 (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x88a38\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_set_wait_fd(__int64 *a1, __int64 a2, int a3, __int64 a4, __int64 a5)\n{\n  __int64 result; // x0\n  __int64 v9; // x2\n  __int64 v10; // x1\n\n  result = CRYPTO_zalloc(48, \"crypto/async/async_wait.c\", 50);\n  if ( result )\n  {\n    v9 = *a1;\n    v10 = a1[1] + 1;\n    *(_QWORD *)result = a2;\n    *(_DWORD *)(result + 8) = a3;\n    *(_QWORD *)(result + 16) = a4;\n    *(_QWORD *)(result + 24) = a5;\n    *(_DWORD *)(result + 32) = 1;\n    *(_QWORD *)(result + 40) = v9;\n    *a1 = result;\n    a1[1] = v10;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; ASYNC_WAIT_CTX_set_wait_fd from 0xfef948 to 0xfef9e4 (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x88a38\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; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xfef948\nMOV             X29, SP                                                ; +0x4, 0xfef94c\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x8, 0xfef950\nMOV             X21, X1                                                ; +0xc, 0xfef954\nADRP            X1, #aCryptoAsyncAsy_0@PAGE; \"crypto/async/async_wait.c\" ; +0x10, 0xfef958\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xfef95c\nADD             X1, X1, #aCryptoAsyncAsy_0@PAGEOFF; \"crypto/async/async_wait.c\" ; +0x18, 0xfef960\nMOV             X19, X0                                                ; +0x1c, 0xfef964\nMOV             W20, W2                                                ; +0x20, 0xfef968\nMOV             X0, #0x30 ; '0'                                        ; +0x24, 0xfef96c\nMOV             W2, #0x32 ; '2'                                        ; +0x28, 0xfef970\nSTR             X3, [X29,#0x40+var_10]                                 ; +0x2c, 0xfef974\nSTR             X4, [X29,#0x40+var_8]                                  ; +0x30, 0xfef978\nBL              CRYPTO_zalloc                                          ; +0x34, 0xfef97c\nMOV             X5, X0                                                 ; +0x38, 0xfef980\nCBZ             X0, loc_FEF9D4                                         ; +0x3c, 0xfef984\nLDR             X6, [X19,#8]                                           ; +0x40, 0xfef988\nMOV             W7, #1                                                 ; +0x44, 0xfef98c\nLDR             X2, [X19]                                              ; +0x48, 0xfef990\nMOV             W0, W7                                                 ; +0x4c, 0xfef994\nLDR             X3, [X29,#0x40+var_10]                                 ; +0x50, 0xfef998\nADD             X1, X6, #1                                             ; +0x54, 0xfef99c\nLDR             X4, [X29,#0x40+var_8]                                  ; +0x58, 0xfef9a0\nSTR             X21, [X5]                                              ; +0x5c, 0xfef9a4\nSTR             W20, [X5,#8]                                           ; +0x60, 0xfef9a8\nSTR             X3, [X5,#0x10]                                         ; +0x64, 0xfef9ac\nSTR             X4, [X5,#0x18]                                         ; +0x68, 0xfef9b0\nSTR             W7, [X5,#0x20]                                         ; +0x6c, 0xfef9b4\nSTR             X2, [X5,#0x28]                                         ; +0x70, 0xfef9b8\nSTR             X5, [X19]                                              ; +0x74, 0xfef9bc\nSTR             X1, [X19,#8]                                           ; +0x78, 0xfef9c0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x7c, 0xfef9c4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0xfef9c8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0xfef9cc\nRET                                                                    ; +0x88, 0xfef9d0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x8c, 0xfef9d4\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x90, 0xfef9d8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0xfef9dc\nRET                                                                    ; +0x98, 0xfef9e0", "xrefs": ["<???> @ 0x88a38"], "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"}