{"type": "func", "start": 14160896, "end": 14161028, "name": "COMP_CTX_new", "pseudocode": "// \n// COMP_CTX_new from 0xd81400 to 0xd81484 (132 bytes)\n// \n// 5 xrefs:\n// > ssl3_change_cipher_state @ 0xd5ec74\n// > ssl3_change_cipher_state @ 0xd5ed80\n// > tls1_change_cipher_state @ 0xd60c08\n// > tls1_change_cipher_state @ 0xd60e84\n// > <???> @ 0xc6f30\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 COMP_CTX_new(__int64 a1)\n{\n  _QWORD *v2; // x0\n  _QWORD *v3; // x19\n  unsigned int (*v4)(void); // x1\n\n  v2 = (_QWORD *)CRYPTO_zalloc(48, \"crypto/comp/comp_lib.c\", 21);\n  v3 = v2;\n  if ( !v2 )\n    return v3;\n  v4 = *(unsigned int (**)(void))(a1 + 16);\n  *v2 = a1;\n  if ( !v4 || v4() )\n    return v3;\n  CRYPTO_free(v3, \"crypto/comp/comp_lib.c\", 25);\n  return nullptr;\n}", "assembly": "; \n; COMP_CTX_new from 0xd81400 to 0xd81484 (132 bytes)\n; \n; 5 xrefs:\n; > ssl3_change_cipher_state @ 0xd5ec74\n; > ssl3_change_cipher_state @ 0xd5ed80\n; > tls1_change_cipher_state @ 0xd60c08\n; > tls1_change_cipher_state @ 0xd60e84\n; > <???> @ 0xc6f30\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_30]!                                ; +0x0, 0xd81400\nMOV             W2, #0x15                                              ; +0x4, 0xd81404\nMOV             X29, SP                                                ; +0x8, 0xd81408\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xd8140c\nADRP            X20, #aCryptoCompComp@PAGE; \"crypto/comp/comp_lib.c\"   ; +0x10, 0xd81410\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xd81414\nADD             X20, X20, #aCryptoCompComp@PAGEOFF; \"crypto/comp/comp_lib.c\" ; +0x18, 0xd81418\nMOV             X21, X0                                                ; +0x1c, 0xd8141c\nMOV             X1, X20                                                ; +0x20, 0xd81420\nMOV             X0, #0x30 ; '0'                                        ; +0x24, 0xd81424\nBL              CRYPTO_zalloc                                          ; +0x28, 0xd81428\nMOV             X19, X0                                                ; +0x2c, 0xd8142c\nCBZ             X0, loc_D81448                                         ; +0x30, 0xd81430\nLDR             X1, [X21,#0x10]                                        ; +0x34, 0xd81434\nSTR             X21, [X0]                                              ; +0x38, 0xd81438\nCBZ             X1, loc_D81448                                         ; +0x3c, 0xd8143c\nBLR             X1                                                     ; +0x40, 0xd81440\nCBZ             W0, loc_D8145C                                         ; +0x44, 0xd81444\nMOV             X0, X19                                                ; +0x48, 0xd81448\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x4c, 0xd8144c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0xd81450\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0xd81454\nRET                                                                    ; +0x58, 0xd81458\nMOV             X0, X19                                                ; +0x5c, 0xd8145c\nMOV             X1, X20                                                ; +0x60, 0xd81460\nMOV             W2, #0x19                                              ; +0x64, 0xd81464\nMOV             X19, #0                                                ; +0x68, 0xd81468\nBL              CRYPTO_free                                            ; +0x6c, 0xd8146c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x70, 0xd81470\nMOV             X0, X19                                                ; +0x74, 0xd81474\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x78, 0xd81478\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0xd8147c\nRET                                                                    ; +0x80, 0xd81480", "xrefs": ["ssl3_change_cipher_state @ 0xd5ec74", "ssl3_change_cipher_state @ 0xd5ed80", "tls1_change_cipher_state @ 0xd60c08", "tls1_change_cipher_state @ 0xd60e84", "<???> @ 0xc6f30"], "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"}