{"type": "func", "start": 14806864, "end": 14806980, "name": "CMS_RecipientInfo_kari_orig_id_cmp", "pseudocode": "// \n// CMS_RecipientInfo_kari_orig_id_cmp from 0xe1ef50 to 0xe1efc4 (116 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x900d8\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 CMS_RecipientInfo_kari_orig_id_cmp(__int64 a1)\n{\n  __int64 v1; // x0\n\n  if ( *(_DWORD *)a1 == 1 )\n  {\n    v1 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);\n    if ( *(_DWORD *)v1 )\n    {\n      if ( *(_DWORD *)v1 == 1 )\n        return cms_keyid_cert_cmp(*(_QWORD *)(v1 + 8));\n      else\n        return 0xFFFFFFFFLL;\n    }\n    else\n    {\n      return cms_ias_cert_cmp(*(_QWORD *)(v1 + 8));\n    }\n  }\n  else\n  {\n    ERR_put_error(46, 174, 181, (__int64)\"crypto/cms/cms_kari.c\", 98);\n    return 4294967294LL;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_kari_orig_id_cmp from 0xe1ef50 to 0xe1efc4 (116 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x900d8\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,#-0x10+var_s0]!                          ; +0x0, 0xe1ef50\nMOV             X29, SP                                                ; +0x4, 0xe1ef54\nLDR             W2, [X0]                                               ; +0x8, 0xe1ef58\nCMP             W2, #1                                                 ; +0xc, 0xe1ef5c\nB.NE            loc_E1EFA0                                             ; +0x10, 0xe1ef60\nLDR             X0, [X0,#8]                                            ; +0x14, 0xe1ef64\nLDR             X0, [X0,#8]                                            ; +0x18, 0xe1ef68\nLDR             W2, [X0]                                               ; +0x1c, 0xe1ef6c\nCBZ             W2, loc_E1EF88                                         ; +0x20, 0xe1ef70\nCMP             W2, #1                                                 ; +0x24, 0xe1ef74\nB.NE            loc_E1EF94                                             ; +0x28, 0xe1ef78\nLDR             X0, [X0,#8]                                            ; +0x2c, 0xe1ef7c\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x30, 0xe1ef80\nB               cms_keyid_cert_cmp                                     ; +0x34, 0xe1ef84\nLDR             X0, [X0,#8]                                            ; +0x38, 0xe1ef88\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x3c, 0xe1ef8c\nB               cms_ias_cert_cmp                                       ; +0x40, 0xe1ef90\nMOV             W0, #0xFFFFFFFF                                        ; +0x44, 0xe1ef94\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x48, 0xe1ef98\nRET                                                                    ; +0x4c, 0xe1ef9c\nADRP            X3, #aCryptoCmsCmsKa@PAGE; \"crypto/cms/cms_kari.c\"     ; +0x50, 0xe1efa0\nMOV             W0, #0x2E ; '.'                                        ; +0x54, 0xe1efa4\nMOV             W1, #0xAE                                              ; +0x58, 0xe1efa8\nMOV             W2, #0xB5                                              ; +0x5c, 0xe1efac\nADD             X3, X3, #aCryptoCmsCmsKa@PAGEOFF; \"crypto/cms/cms_kari.c\" ; +0x60, 0xe1efb0\nMOV             W4, #0x62 ; 'b'                                        ; +0x64, 0xe1efb4\nBL              ERR_put_error                                          ; +0x68, 0xe1efb8\nMOV             W0, #0xFFFFFFFE                                        ; +0x6c, 0xe1efbc\nB               loc_E1EF98                                             ; +0x70, 0xe1efc0", "xrefs": ["<???> @ 0x900d8"], "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"}