{"type": "func", "start": 11047544, "end": 11047660, "name": "CMS_RecipientInfo_kari_orig_id_cmp", "pseudocode": "// \n// CMS_RecipientInfo_kari_orig_id_cmp from 0xa89278 to 0xa892ec (116 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x83dbc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:53 +0000\n// \n\nint __fastcall CMS_RecipientInfo_kari_orig_id_cmp(_DWORD *a1)\n{\n  _DWORD *v1; // r3\n\n  if ( *a1 == 1 )\n  {\n    v1 = *(_DWORD **)(a1[1] + 4);\n    if ( *v1 )\n    {\n      if ( *v1 == 1 )\n        return cms_keyid_cert_cmp(v1[1]);\n      else\n        return -1;\n    }\n    else\n    {\n      return cms_ias_cert_cmp(v1[1]);\n    }\n  }\n  else\n  {\n    ERR_put_error(46, 174, 181, (int)\"crypto/cms/cms_kari.c\", 98);\n    return -2;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_kari_orig_id_cmp from 0xa89278 to 0xa892ec (116 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x83dbc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:53 +0000\n; \nLDR             R3, [R0]                                               ; +0x0, 0xa89278\nCMP             R3, #1                                                 ; +0x4, 0xa8927c\nBNE             loc_A892B8                                             ; +0x8, 0xa89280\nLDR             R3, [R0,#4]                                            ; +0xc, 0xa89284\nLDR             R3, [R3,#4]                                            ; +0x10, 0xa89288\nLDR             R2, [R3]                                               ; +0x14, 0xa8928c\nCMP             R2, #0                                                 ; +0x18, 0xa89290\nBEQ             loc_A892A8                                             ; +0x1c, 0xa89294\nCMP             R2, #1                                                 ; +0x20, 0xa89298\nBNE             loc_A892B0                                             ; +0x24, 0xa8929c\nLDR             R0, [R3,#4]                                            ; +0x28, 0xa892a0\nB               cms_keyid_cert_cmp                                     ; +0x2c, 0xa892a4\nLDR             R0, [R3,#4]                                            ; +0x30, 0xa892a8\nB               cms_ias_cert_cmp                                       ; +0x34, 0xa892ac\nMOV             R0, #0xFFFFFFFF                                        ; +0x38, 0xa892b0\nBX              LR                                                     ; +0x3c, 0xa892b4\nPUSH            {LR}                                                   ; +0x40, 0xa892b8\nMOV             R3, #0x62 ; 'b'                                        ; +0x44, 0xa892bc\nSUB             SP, SP, #0xC                                           ; +0x48, 0xa892c0\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x4c, 0xa892c4\nLDR             R3, =(aCryptoCmsCmsKa - 0xA892E0); \"crypto/cms/cms_kari.c\" ; +0x50, 0xa892c8\nMOV             R0, #0x2E ; '.'                                        ; +0x54, 0xa892cc\nMOV             R1, #0xAE                                              ; +0x58, 0xa892d0\nMOV             R2, #0xB5                                              ; +0x5c, 0xa892d4\nADD             R3, PC, R3; \"crypto/cms/cms_kari.c\"                    ; +0x60, 0xa892d8\nBL              ERR_put_error                                          ; +0x64, 0xa892dc\nMOV             R0, #0xFFFFFFFE                                        ; +0x68, 0xa892e0\nADD             SP, SP, #0xC                                           ; +0x6c, 0xa892e4\nPOP             {PC}                                                   ; +0x70, 0xa892e8", "xrefs": ["<???> @ 0x83dbc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}