{"type": "func", "start": 16781180, "end": 16781316, "name": "CTLOG_STORE_new", "pseudocode": "// \n// CTLOG_STORE_new from 0x1000f7c to 0x1001004 (136 bytes)\n// \n// 2 xrefs:\n// > SSL_CTX_new @ 0xfbf874\n// > <???> @ 0x7cd08\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:53 +0000\n// \n\n_QWORD *CTLOG_STORE_new()\n{\n  __int64 v0; // x0\n  _QWORD *v1; // x19\n  __int64 v2; // x21\n  _QWORD *result; // x0\n\n  v0 = CRYPTO_zalloc(8, \"crypto/ct/ct_log.c\", 94);\n  v1 = (_QWORD *)v0;\n  if ( v0 )\n  {\n    v2 = OPENSSL_sk_new_null(v0);\n    *v1 = v2;\n    result = v1;\n    if ( !v2 )\n    {\n      CRYPTO_free(v1, \"crypto/ct/ct_log.c\", 107);\n      return nullptr;\n    }\n  }\n  else\n  {\n    ERR_put_error(50, 131, 65, \"crypto/ct/ct_log.c\", 97);\n    return nullptr;\n  }\n  return result;\n}", "assembly": "; \n; CTLOG_STORE_new from 0x1000f7c to 0x1001004 (136 bytes)\n; \n; 2 xrefs:\n; > SSL_CTX_new @ 0xfbf874\n; > <???> @ 0x7cd08\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:15:53 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x1000f7c\nMOV             X0, #8                                                 ; +0x4, 0x1000f80\nMOV             W2, #0x5E ; '^'                                        ; +0x8, 0x1000f84\nMOV             X29, SP                                                ; +0xc, 0x1000f88\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x1000f8c\nADRP            X20, #aCryptoCtCtLogC@PAGE; \"crypto/ct/ct_log.c\"       ; +0x14, 0x1000f90\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x18, 0x1000f94\nADD             X20, X20, #aCryptoCtCtLogC@PAGEOFF; \"crypto/ct/ct_log.c\" ; +0x1c, 0x1000f98\nMOV             X1, X20                                                ; +0x20, 0x1000f9c\nBL              CRYPTO_zalloc                                          ; +0x24, 0x1000fa0\nMOV             X19, X0                                                ; +0x28, 0x1000fa4\nCBZ             X0, loc_1000FD0                                        ; +0x2c, 0x1000fa8\nBL              OPENSSL_sk_new_null                                    ; +0x30, 0x1000fac\nMOV             X21, X0                                                ; +0x34, 0x1000fb0\nSTR             X0, [X19]                                              ; +0x38, 0x1000fb4\nMOV             X0, X19                                                ; +0x3c, 0x1000fb8\nCBZ             X21, loc_1000FF0                                       ; +0x40, 0x1000fbc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x44, 0x1000fc0\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x48, 0x1000fc4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x4c, 0x1000fc8\nRET                                                                    ; +0x50, 0x1000fcc\nMOV             W0, #0x32 ; '2'                                        ; +0x54, 0x1000fd0\nMOV             W1, #0x83                                              ; +0x58, 0x1000fd4\nMOV             W2, #0x41 ; 'A'                                        ; +0x5c, 0x1000fd8\nMOV             X3, X20                                                ; +0x60, 0x1000fdc\nMOV             W4, #0x61 ; 'a'                                        ; +0x64, 0x1000fe0\nBL              ERR_put_error                                          ; +0x68, 0x1000fe4\nMOV             X0, X19                                                ; +0x6c, 0x1000fe8\nB               loc_1000FC0                                            ; +0x70, 0x1000fec\nMOV             X1, X20                                                ; +0x74, 0x1000ff0\nMOV             W2, #0x6B ; 'k'                                        ; +0x78, 0x1000ff4\nBL              CRYPTO_free                                            ; +0x7c, 0x1000ff8\nMOV             X0, X21                                                ; +0x80, 0x1000ffc\nB               loc_1000FC0                                            ; +0x84, 0x1001000", "xrefs": ["SSL_CTX_new @ 0xfbf874", "<???> @ 0x7cd08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}