{"type": "func", "start": 16782160, "end": 16782304, "name": "CTLOG_STORE_get0_log_by_id", "pseudocode": "// \n// CTLOG_STORE_get0_log_by_id from 0x1001350 to 0x10013e0 (144 bytes)\n// \n// 3 xrefs:\n// > SCT_validate @ 0x1002890\n// > SCT_print @ 0x10f99d4\n// > <???> @ 0x9a5e8\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:54 +0000\n// \n\n__int64 __fastcall CTLOG_STORE_get0_log_by_id(_QWORD *a1, const void *a2, size_t a3)\n{\n  int v6; // w19\n  __int64 v7; // x20\n  bool v8; // cc\n  __int64 v9; // x1\n\n  v6 = 0;\n  do\n  {\n    v8 = v6 < (int)OPENSSL_sk_num(*a1);\n    v9 = (unsigned int)v6++;\n    if ( !v8 )\n      return 0;\n    v7 = OPENSSL_sk_value(*a1, v9);\n  }\n  while ( memcmp((const void *)(v7 + 8), a2, a3) );\n  return v7;\n}", "assembly": "; \n; CTLOG_STORE_get0_log_by_id from 0x1001350 to 0x10013e0 (144 bytes)\n; \n; 3 xrefs:\n; > SCT_validate @ 0x1002890\n; > SCT_print @ 0x10f99d4\n; > <???> @ 0x9a5e8\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:54 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x1001350\nMOV             X29, SP                                                ; +0x4, 0x1001354\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x1001358\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x100135c\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x1001360\nMOV             X21, X0                                                ; +0x14, 0x1001364\nMOV             X23, X1                                                ; +0x18, 0x1001368\nMOV             X22, X2                                                ; +0x1c, 0x100136c\nMOV             W19, #0                                                ; +0x20, 0x1001370\nB               loc_1001398                                            ; +0x24, 0x1001374\nLDR             X0, [X21]                                              ; +0x28, 0x1001378\nBL              OPENSSL_sk_value                                       ; +0x2c, 0x100137c\nMOV             X20, X0                                                ; +0x30, 0x1001380\nMOV             X1, X23; void *                                        ; +0x34, 0x1001384\nADD             X0, X0, #8; void *                                     ; +0x38, 0x1001388\nMOV             X2, X22; size_t                                        ; +0x3c, 0x100138c\nBL              .memcmp                                                ; +0x40, 0x1001390\nCBZ             W0, loc_10013C8                                        ; +0x44, 0x1001394\nLDR             X0, [X21]                                              ; +0x48, 0x1001398\nBL              OPENSSL_sk_num                                         ; +0x4c, 0x100139c\nCMP             W19, W0                                                ; +0x50, 0x10013a0\nMOV             W1, W19                                                ; +0x54, 0x10013a4\nADD             W19, W19, #1                                           ; +0x58, 0x10013a8\nB.LT            loc_1001378                                            ; +0x5c, 0x10013ac\nMOV             X0, #0                                                 ; +0x60, 0x10013b0\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x64, 0x10013b4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0x10013b8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0x10013bc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0x10013c0\nRET                                                                    ; +0x74, 0x10013c4\nMOV             X0, X20                                                ; +0x78, 0x10013c8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x7c, 0x10013cc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x80, 0x10013d0\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x84, 0x10013d4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x88, 0x10013d8\nRET                                                                    ; +0x8c, 0x10013dc", "xrefs": ["SCT_validate @ 0x1002890", "SCT_print @ 0x10f99d4", "<???> @ 0x9a5e8"], "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"}