{"type": "func", "start": 10355124, "end": 10355244, "name": "ASYNC_WAIT_CTX_set_wait_fd", "pseudocode": "// \n// ASYNC_WAIT_CTX_set_wait_fd from 0x9e01b4 to 0x9e022c (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x78d7c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:20 +0000\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 0x9e01b4 to 0x9e022c (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x78d7c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:20 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x9e01b4\nMOV             R7, R1                                                 ; +0x4, 0x9e01b8\nLDR             R1, =(aCryptoAsyncAsy_0 - 0x9E01D4); \"crypto/async/async_wait.c\" ; +0x8, 0x9e01bc\nMOV             R4, R0                                                 ; +0xc, 0x9e01c0\nMOV             R6, R2                                                 ; +0x10, 0x9e01c4\nMOV             R0, #0x1C                                              ; +0x14, 0x9e01c8\nADD             R1, PC, R1; \"crypto/async/async_wait.c\"                ; +0x18, 0x9e01cc\nMOV             R2, #0x32 ; '2'                                        ; +0x1c, 0x9e01d0\nMOV             R5, R3                                                 ; +0x20, 0x9e01d4\nBL              CRYPTO_zalloc                                          ; +0x24, 0x9e01d8\nSUBS            R12, R0, #0                                            ; +0x28, 0x9e01dc\nBEQ             loc_9E0220                                             ; +0x2c, 0x9e01e0\nLDR             R0, [R4,#4]                                            ; +0x30, 0x9e01e4\nMOV             LR, #1                                                 ; +0x34, 0x9e01e8\nLDR             R3, [R4]                                               ; +0x38, 0x9e01ec\nADD             R0, R0, LR                                             ; +0x3c, 0x9e01f0\nLDR             R2, [SP,#4+arg_0]                                      ; +0x40, 0x9e01f4\nSTR             R7, [R12]                                              ; +0x44, 0x9e01f8\nSTR             R6, [R12,#4]                                           ; +0x48, 0x9e01fc\nSTR             R5, [R12,#8]                                           ; +0x4c, 0x9e0200\nSTR             R2, [R12,#0xC]                                         ; +0x50, 0x9e0204\nSTR             LR, [R12,#0x10]                                        ; +0x54, 0x9e0208\nSTR             R3, [R12,#0x18]                                        ; +0x58, 0x9e020c\nSTR             R0, [R4,#4]                                            ; +0x5c, 0x9e0210\nSTR             R12, [R4]                                              ; +0x60, 0x9e0214\nMOV             R0, LR                                                 ; +0x64, 0x9e0218\nPOP             {R3-R7,PC}                                             ; +0x68, 0x9e021c\nMOV             LR, R12                                                ; +0x6c, 0x9e0220\nMOV             R0, LR                                                 ; +0x70, 0x9e0224\nPOP             {R3-R7,PC}                                             ; +0x74, 0x9e0228", "xrefs": ["<???> @ 0x78d7c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}