{"type": "func", "start": 14095848, "end": 14096004, "name": "ASYNC_WAIT_CTX_set_wait_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_set_wait_fd from 0xd715e8 to 0xd71684 (156 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x64770\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_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 0xd715e8 to 0xd71684 (156 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x64770\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xd715e8\nMOV             X29, SP                                                ; +0x4, 0xd715ec\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x8, 0xd715f0\nMOV             X21, X1                                                ; +0xc, 0xd715f4\nADRP            X1, #aCryptoAsyncAsy_0@PAGE; \"crypto/async/async_wait.c\" ; +0x10, 0xd715f8\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xd715fc\nADD             X1, X1, #aCryptoAsyncAsy_0@PAGEOFF; \"crypto/async/async_wait.c\" ; +0x18, 0xd71600\nMOV             X19, X0                                                ; +0x1c, 0xd71604\nMOV             W20, W2                                                ; +0x20, 0xd71608\nMOV             X0, #0x30 ; '0'                                        ; +0x24, 0xd7160c\nMOV             W2, #0x32 ; '2'                                        ; +0x28, 0xd71610\nSTR             X3, [X29,#0x40+var_10]                                 ; +0x2c, 0xd71614\nSTR             X4, [X29,#0x40+var_8]                                  ; +0x30, 0xd71618\nBL              CRYPTO_zalloc                                          ; +0x34, 0xd7161c\nMOV             X5, X0                                                 ; +0x38, 0xd71620\nCBZ             X0, loc_D71674                                         ; +0x3c, 0xd71624\nLDR             X6, [X19,#8]                                           ; +0x40, 0xd71628\nMOV             W7, #1                                                 ; +0x44, 0xd7162c\nLDR             X2, [X19]                                              ; +0x48, 0xd71630\nMOV             W0, W7                                                 ; +0x4c, 0xd71634\nLDR             X3, [X29,#0x40+var_10]                                 ; +0x50, 0xd71638\nADD             X1, X6, #1                                             ; +0x54, 0xd7163c\nLDR             X4, [X29,#0x40+var_8]                                  ; +0x58, 0xd71640\nSTR             X21, [X5]                                              ; +0x5c, 0xd71644\nSTR             W20, [X5,#8]                                           ; +0x60, 0xd71648\nSTR             X3, [X5,#0x10]                                         ; +0x64, 0xd7164c\nSTR             X4, [X5,#0x18]                                         ; +0x68, 0xd71650\nSTR             W7, [X5,#0x20]                                         ; +0x6c, 0xd71654\nSTR             X2, [X5,#0x28]                                         ; +0x70, 0xd71658\nSTR             X5, [X19]                                              ; +0x74, 0xd7165c\nSTR             X1, [X19,#8]                                           ; +0x78, 0xd71660\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x7c, 0xd71664\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0xd71668\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0xd7166c\nRET                                                                    ; +0x88, 0xd71670\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x8c, 0xd71674\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x90, 0xd71678\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0xd7167c\nRET                                                                    ; +0x98, 0xd71680", "xrefs": ["<???> @ 0x64770"], "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"}