{"type": "func", "start": 14801376, "end": 14801492, "name": "CMS_RecipientInfo_ktri_get0_algs", "pseudocode": "// \n// CMS_RecipientInfo_ktri_get0_algs from 0xe1d9e0 to 0xe1da54 (116 bytes)\n// \n// 3 xrefs:\n// > sub_DD2FF0 @ 0xdd31a4\n// > sub_DD2FF0 @ 0xdd33b0\n// > <???> @ 0x708d8\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_ktri_get0_algs(__int64 a1, _QWORD *a2, _QWORD *a3, _QWORD *a4)\n{\n  _QWORD *v4; // x0\n  __int64 v5; // x1\n  __int64 result; // x0\n\n  if ( *(_DWORD *)a1 )\n  {\n    ERR_put_error(46, 142, 124, (__int64)\"crypto/cms/cms_env.c\", 238);\n    return 0;\n  }\n  else\n  {\n    v4 = *(_QWORD **)(a1 + 8);\n    if ( a2 )\n      *a2 = v4[5];\n    if ( a3 )\n      *a3 = v4[4];\n    if ( a4 )\n    {\n      v5 = v4[2];\n      result = 1;\n      *a4 = v5;\n    }\n    else\n    {\n      return 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; CMS_RecipientInfo_ktri_get0_algs from 0xe1d9e0 to 0xe1da54 (116 bytes)\n; \n; 3 xrefs:\n; > sub_DD2FF0 @ 0xdd31a4\n; > sub_DD2FF0 @ 0xdd33b0\n; > <???> @ 0x708d8\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, 0xe1d9e0\nMOV             X29, SP                                                ; +0x4, 0xe1d9e4\nLDR             W4, [X0]                                               ; +0x8, 0xe1d9e8\nCBNZ            W4, loc_E1DA24                                         ; +0xc, 0xe1d9ec\nLDR             X0, [X0,#8]                                            ; +0x10, 0xe1d9f0\nCBZ             X1, loc_E1DA00                                         ; +0x14, 0xe1d9f4\nLDR             X4, [X0,#0x28]                                         ; +0x18, 0xe1d9f8\nSTR             X4, [X1]                                               ; +0x1c, 0xe1d9fc\nCBZ             X2, loc_E1DA0C                                         ; +0x20, 0xe1da00\nLDR             X1, [X0,#0x20]                                         ; +0x24, 0xe1da04\nSTR             X1, [X2]                                               ; +0x28, 0xe1da08\nCBZ             X3, loc_E1DA4C                                         ; +0x2c, 0xe1da0c\nLDR             X1, [X0,#0x10]                                         ; +0x30, 0xe1da10\nMOV             W0, #1                                                 ; +0x34, 0xe1da14\nSTR             X1, [X3]                                               ; +0x38, 0xe1da18\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x3c, 0xe1da1c\nRET                                                                    ; +0x40, 0xe1da20\nADRP            X3, #aCryptoCmsCmsEn@PAGE; \"crypto/cms/cms_env.c\"      ; +0x44, 0xe1da24\nMOV             W0, #0x2E ; '.'                                        ; +0x48, 0xe1da28\nMOV             W1, #0x8E                                              ; +0x4c, 0xe1da2c\nMOV             W2, #0x7C ; '|'                                        ; +0x50, 0xe1da30\nADD             X3, X3, #aCryptoCmsCmsEn@PAGEOFF; \"crypto/cms/cms_env.c\" ; +0x54, 0xe1da34\nMOV             W4, #0xEE                                              ; +0x58, 0xe1da38\nBL              ERR_put_error                                          ; +0x5c, 0xe1da3c\nMOV             W0, #0                                                 ; +0x60, 0xe1da40\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x64, 0xe1da44\nRET                                                                    ; +0x68, 0xe1da48\nMOV             W0, #1                                                 ; +0x6c, 0xe1da4c\nB               loc_E1DA1C                                             ; +0x70, 0xe1da50", "xrefs": ["sub_DD2FF0 @ 0xdd31a4", "sub_DD2FF0 @ 0xdd33b0", "<???> @ 0x708d8"], "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"}