{"type": "func", "start": 14095688, "end": 14095848, "name": "ASYNC_WAIT_CTX_free", "pseudocode": "// \n// ASYNC_WAIT_CTX_free from 0xd71548 to 0xd715e8 (160 bytes)\n// \n// 2 xrefs:\n// > SSL_free @ 0xd42bcc\n// > <???> @ 0x8dab0\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_QWORD *__fastcall ASYNC_WAIT_CTX_free(_QWORD *result)\n{\n  __int64 v1; // x19\n  _QWORD *v2; // x21\n  void (__fastcall *v3)(_QWORD *, _QWORD, _QWORD, _QWORD); // x4\n  __int64 v4; // x0\n\n  if ( result )\n  {\n    v1 = *result;\n    v2 = result;\n    while ( v1 )\n    {\n      if ( !*(_DWORD *)(v1 + 36) )\n      {\n        v3 = *(void (__fastcall **)(_QWORD *, _QWORD, _QWORD, _QWORD))(v1 + 24);\n        if ( v3 )\n          v3(v2, *(_QWORD *)v1, *(unsigned int *)(v1 + 8), *(_QWORD *)(v1 + 16));\n      }\n      v4 = v1;\n      v1 = *(_QWORD *)(v1 + 40);\n      CRYPTO_free(v4, \"crypto/async/async_wait.c\", 37);\n    }\n    return (_QWORD *)CRYPTO_free(v2, \"crypto/async/async_wait.c\", 41);\n  }\n  return result;\n}", "assembly": "; \n; ASYNC_WAIT_CTX_free from 0xd71548 to 0xd715e8 (160 bytes)\n; \n; 2 xrefs:\n; > SSL_free @ 0xd42bcc\n; > <???> @ 0x8dab0\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, 0xd71548\nMOV             X29, SP                                                ; +0x4, 0xd7154c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xd71550\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0xd71554\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0xd71558\nCBZ             X0, loc_D715D4                                         ; +0x14, 0xd7155c\nLDR             X19, [X0]                                              ; +0x18, 0xd71560\nADRP            X23, #aCryptoAsyncAsy_0@PAGE; \"crypto/async/async_wait.c\" ; +0x1c, 0xd71564\nMOV             X21, X0                                                ; +0x20, 0xd71568\nADD             X22, X23, #aCryptoAsyncAsy_0@PAGEOFF; \"crypto/async/async_wait.c\" ; +0x24, 0xd7156c\nCBZ             X19, loc_D715B4                                        ; +0x28, 0xd71570\nLDR             W2, [X19,#0x24]                                        ; +0x2c, 0xd71574\nCBNZ            W2, loc_D71598                                         ; +0x30, 0xd71578\nLDR             X4, [X19,#0x18]                                        ; +0x34, 0xd7157c\nMOV             X0, X21                                                ; +0x38, 0xd71580\nCBZ             X4, loc_D71598                                         ; +0x3c, 0xd71584\nLDR             X1, [X19]                                              ; +0x40, 0xd71588\nLDR             W2, [X19,#8]                                           ; +0x44, 0xd7158c\nLDR             X3, [X19,#0x10]                                        ; +0x48, 0xd71590\nBLR             X4                                                     ; +0x4c, 0xd71594\nLDR             X20, [X19,#0x28]                                       ; +0x50, 0xd71598\nMOV             X0, X19                                                ; +0x54, 0xd7159c\nMOV             X1, X22                                                ; +0x58, 0xd715a0\nMOV             W2, #0x25 ; '%'                                        ; +0x5c, 0xd715a4\nMOV             X19, X20                                               ; +0x60, 0xd715a8\nBL              CRYPTO_free                                            ; +0x64, 0xd715ac\nCBNZ            X20, loc_D71574                                        ; +0x68, 0xd715b0\nMOV             X0, X21                                                ; +0x6c, 0xd715b4\nADD             X1, X23, #aCryptoAsyncAsy_0@PAGEOFF; \"crypto/async/async_wait.c\" ; +0x70, 0xd715b8\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x74, 0xd715bc\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x78, 0xd715c0\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x7c, 0xd715c4\nMOV             W2, #0x29 ; ')'                                        ; +0x80, 0xd715c8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x84, 0xd715cc\nB               CRYPTO_free                                            ; +0x88, 0xd715d0\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x8c, 0xd715d4\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x90, 0xd715d8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x94, 0xd715dc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x98, 0xd715e0\nRET                                                                    ; +0x9c, 0xd715e4", "xrefs": ["SSL_free @ 0xd42bcc", "<???> @ 0x8dab0"], "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"}