{"type": "func", "start": 8172980, "end": 8173100, "name": "ASYNC_WAIT_CTX_set_wait_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_set_wait_fd from 0x7cb5b4 to 0x7cb62c (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5f2fc\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_set_wait_fd(int *a1, int a2, int a3, int a4, int a5)\n{\n  _DWORD *v9; // r12\n  int v10; // r3\n  int v11; // r0\n\n  v9 = (_DWORD *)CRYPTO_zalloc(28, \"crypto/async/async_wait.c\", 50);\n  if ( !v9 )\n    return 0;\n  v10 = *a1;\n  v11 = a1[1] + 1;\n  *v9 = a2;\n  v9[1] = a3;\n  v9[2] = a4;\n  v9[3] = a5;\n  v9[4] = 1;\n  v9[6] = v10;\n  a1[1] = v11;\n  *a1 = (int)v9;\n  return 1;\n}", "assembly": "; \n; ASYNC_WAIT_CTX_set_wait_fd from 0x7cb5b4 to 0x7cb62c (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5f2fc\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x7cb5b4\nMOV             R7, R1                                                 ; +0x4, 0x7cb5b8\nLDR             R1, =(aCryptoAsyncAsy_0 - 0x7CB5D4); \"crypto/async/async_wait.c\" ; +0x8, 0x7cb5bc\nMOV             R4, R0                                                 ; +0xc, 0x7cb5c0\nMOV             R6, R2                                                 ; +0x10, 0x7cb5c4\nMOV             R0, #0x1C                                              ; +0x14, 0x7cb5c8\nADD             R1, PC, R1; \"crypto/async/async_wait.c\"                ; +0x18, 0x7cb5cc\nMOV             R2, #0x32 ; '2'                                        ; +0x1c, 0x7cb5d0\nMOV             R5, R3                                                 ; +0x20, 0x7cb5d4\nBL              CRYPTO_zalloc                                          ; +0x24, 0x7cb5d8\nSUBS            R12, R0, #0                                            ; +0x28, 0x7cb5dc\nBEQ             loc_7CB620                                             ; +0x2c, 0x7cb5e0\nLDR             R0, [R4,#4]                                            ; +0x30, 0x7cb5e4\nMOV             LR, #1                                                 ; +0x34, 0x7cb5e8\nLDR             R3, [R4]                                               ; +0x38, 0x7cb5ec\nADD             R0, R0, LR                                             ; +0x3c, 0x7cb5f0\nLDR             R2, [SP,#4+arg_0]                                      ; +0x40, 0x7cb5f4\nSTR             R7, [R12]                                              ; +0x44, 0x7cb5f8\nSTR             R6, [R12,#4]                                           ; +0x48, 0x7cb5fc\nSTR             R5, [R12,#8]                                           ; +0x4c, 0x7cb600\nSTR             R2, [R12,#0xC]                                         ; +0x50, 0x7cb604\nSTR             LR, [R12,#0x10]                                        ; +0x54, 0x7cb608\nSTR             R3, [R12,#0x18]                                        ; +0x58, 0x7cb60c\nSTR             R0, [R4,#4]                                            ; +0x5c, 0x7cb610\nSTR             R12, [R4]                                              ; +0x60, 0x7cb614\nMOV             R0, LR                                                 ; +0x64, 0x7cb618\nPOP             {R3-R7,PC}                                             ; +0x68, 0x7cb61c\nMOV             LR, R12                                                ; +0x6c, 0x7cb620\nMOV             R0, LR                                                 ; +0x70, 0x7cb624\nPOP             {R3-R7,PC}                                             ; +0x74, 0x7cb628", "xrefs": ["<???> @ 0x5f2fc"], "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"}