{"type": "func", "start": 14171444, "end": 14171500, "name": "CT_POLICY_EVAL_CTX_set1_cert", "pseudocode": "// \n// CT_POLICY_EVAL_CTX_set1_cert from 0xd83d34 to 0xd83d6c (56 bytes)\n// \n// 2 xrefs:\n// > ssl_validate_ct @ 0xd43d0c\n// > <???> @ 0x6bb98\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__int64 __fastcall CT_POLICY_EVAL_CTX_set1_cert(_QWORD *a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  result = X509_up_ref(a2);\n  if ( (_DWORD)result )\n  {\n    *a1 = a2;\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; CT_POLICY_EVAL_CTX_set1_cert from 0xd83d34 to 0xd83d6c (56 bytes)\n; \n; 2 xrefs:\n; > ssl_validate_ct @ 0xd43d0c\n; > <???> @ 0x6bb98\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, 0xd83d34\nMOV             X29, SP                                                ; +0x4, 0xd83d38\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0xd83d3c\nMOV             X19, X0                                                ; +0xc, 0xd83d40\nMOV             X0, X1                                                 ; +0x10, 0xd83d44\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0xd83d48\nBL              X509_up_ref                                            ; +0x18, 0xd83d4c\nCBZ             W0, loc_D83D60                                         ; +0x1c, 0xd83d50\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x20, 0xd83d54\nMOV             W0, #1                                                 ; +0x24, 0xd83d58\nSTR             X1, [X19]                                              ; +0x28, 0xd83d5c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x2c, 0xd83d60\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x30, 0xd83d64\nRET                                                                    ; +0x34, 0xd83d68", "xrefs": ["ssl_validate_ct @ 0xd43d0c", "<???> @ 0x6bb98"], "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"}