{"type": "func", "start": 8865720, "end": 8865772, "name": "CMS_RecipientEncryptedKey_cert_cmp", "pseudocode": "// \n// CMS_RecipientEncryptedKey_cert_cmp from 0x8747b8 to 0x8747ec (52 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6a37c\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\nint __fastcall CMS_RecipientEncryptedKey_cert_cmp(int **a1)\n{\n  int *v1; // r3\n  int v2; // r2\n\n  v1 = *a1;\n  v2 = **a1;\n  if ( !v2 )\n    return cms_ias_cert_cmp(v1[1]);\n  if ( v2 == 1 )\n    return cms_keyid_cert_cmp(*(_DWORD *)v1[1]);\n  return -1;\n}", "assembly": "; \n; CMS_RecipientEncryptedKey_cert_cmp from 0x8747b8 to 0x8747ec (52 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6a37c\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\nLDR             R3, [R0]                                               ; +0x0, 0x8747b8\nLDR             R2, [R3]                                               ; +0x4, 0x8747bc\nCMP             R2, #0                                                 ; +0x8, 0x8747c0\nBEQ             loc_8747DC                                             ; +0xc, 0x8747c4\nCMP             R2, #1                                                 ; +0x10, 0x8747c8\nBNE             loc_8747E4                                             ; +0x14, 0x8747cc\nLDR             R3, [R3,#4]                                            ; +0x18, 0x8747d0\nLDR             R0, [R3]                                               ; +0x1c, 0x8747d4\nB               cms_keyid_cert_cmp                                     ; +0x20, 0x8747d8\nLDR             R0, [R3,#4]                                            ; +0x24, 0x8747dc\nB               cms_ias_cert_cmp                                       ; +0x28, 0x8747e0\nMOV             R0, #0xFFFFFFFF                                        ; +0x2c, 0x8747e4\nBX              LR                                                     ; +0x30, 0x8747e8", "xrefs": ["<???> @ 0x6a37c"], "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"}