{"type": "func", "start": 14806440, "end": 14806544, "name": "CMS_RecipientInfo_kari_get0_alg", "pseudocode": "// \n// CMS_RecipientInfo_kari_get0_alg from 0xe1eda8 to 0xe1ee10 (104 bytes)\n// \n// 5 xrefs:\n// > sub_D869F4 @ 0xd86b94\n// > sub_D869F4 @ 0xd86cfc\n// > sub_D8B4C0 @ 0xd8b7d4\n// > sub_D8B4C0 @ 0xd8b988\n// > <???> @ 0x44ac0\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_get0_alg(unsigned int *a1, _QWORD *a2, _QWORD *a3)\n{\n  __int64 result; // x0\n\n  result = *a1;\n  if ( (_DWORD)result == 1 )\n  {\n    if ( a2 )\n      *a2 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 24LL);\n    if ( a3 )\n      *a3 = *(_QWORD *)(*((_QWORD *)a1 + 1) + 16LL);\n  }\n  else\n  {\n    ERR_put_error(46, 175, 181, (__int64)\"crypto/cms/cms_kari.c\", 28);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; CMS_RecipientInfo_kari_get0_alg from 0xe1eda8 to 0xe1ee10 (104 bytes)\n; \n; 5 xrefs:\n; > sub_D869F4 @ 0xd86b94\n; > sub_D869F4 @ 0xd86cfc\n; > sub_D8B4C0 @ 0xd8b7d4\n; > sub_D8B4C0 @ 0xd8b988\n; > <???> @ 0x44ac0\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, 0xe1eda8\nMOV             X3, X0                                                 ; +0x4, 0xe1edac\nMOV             X29, SP                                                ; +0x8, 0xe1edb0\nLDR             W0, [X0]                                               ; +0xc, 0xe1edb4\nCMP             W0, #1                                                 ; +0x10, 0xe1edb8\nB.NE            loc_E1EDE8                                             ; +0x14, 0xe1edbc\nCBZ             X1, loc_E1EDD0                                         ; +0x18, 0xe1edc0\nLDR             X4, [X3,#8]                                            ; +0x1c, 0xe1edc4\nLDR             X4, [X4,#0x18]                                         ; +0x20, 0xe1edc8\nSTR             X4, [X1]                                               ; +0x24, 0xe1edcc\nCBZ             X2, loc_E1EDE0                                         ; +0x28, 0xe1edd0\nLDR             X1, [X3,#8]                                            ; +0x2c, 0xe1edd4\nLDR             X1, [X1,#0x10]                                         ; +0x30, 0xe1edd8\nSTR             X1, [X2]                                               ; +0x34, 0xe1eddc\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x38, 0xe1ede0\nRET                                                                    ; +0x3c, 0xe1ede4\nADRP            X3, #aCryptoCmsCmsKa@PAGE; \"crypto/cms/cms_kari.c\"     ; +0x40, 0xe1ede8\nMOV             W0, #0x2E ; '.'                                        ; +0x44, 0xe1edec\nMOV             W1, #0xAF                                              ; +0x48, 0xe1edf0\nMOV             W2, #0xB5                                              ; +0x4c, 0xe1edf4\nADD             X3, X3, #aCryptoCmsCmsKa@PAGEOFF; \"crypto/cms/cms_kari.c\" ; +0x50, 0xe1edf8\nMOV             W4, #0x1C                                              ; +0x54, 0xe1edfc\nBL              ERR_put_error                                          ; +0x58, 0xe1ee00\nMOV             W0, #0                                                 ; +0x5c, 0xe1ee04\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x60, 0xe1ee08\nRET                                                                    ; +0x64, 0xe1ee0c", "xrefs": ["sub_D869F4 @ 0xd86b94", "sub_D869F4 @ 0xd86cfc", "sub_D8B4C0 @ 0xd8b7d4", "sub_D8B4C0 @ 0xd8b988", "<???> @ 0x44ac0"], "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"}