{"type": "func", "start": 14809120, "end": 14809400, "name": "CMS_get0_content", "pseudocode": "// \n// CMS_get0_content from 0xe1f820 to 0xe1f938 (280 bytes)\n// \n// 6 xrefs:\n// > CMS_stream @ 0xe1eb58\n// > cms_content_bio @ 0xe1f940\n// > CMS_dataFinal @ 0xe1fac8\n// > CMS_is_detached @ 0xe1fe18\n// > CMS_set_detached @ 0xe1fe4c\n// > <???> @ 0x86b50\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_get0_content(__int64 *a1)\n{\n  int v2; // w0\n  _DWORD *v3; // x0\n  __int64 result; // x0\n  bool v5; // zf\n\n  v2 = OBJ_obj2nid(*a1);\n  if ( v2 == 25 )\n    return *(_QWORD *)(a1[1] + 16) + 8LL;\n  if ( v2 > 25 )\n  {\n    switch ( v2 )\n    {\n      case 205:\n        return *(_QWORD *)(a1[1] + 40) + 8LL;\n      case 786:\n        return *(_QWORD *)(a1[1] + 24) + 8LL;\n      case 26:\n        return *(_QWORD *)(a1[1] + 8) + 16LL;\n    }\n    goto LABEL_6;\n  }\n  if ( v2 == 22 )\n    return *(_QWORD *)(a1[1] + 16) + 8LL;\n  if ( v2 == 23 )\n    return *(_QWORD *)(a1[1] + 24) + 16LL;\n  v5 = v2 == 21;\n  result = (__int64)(a1 + 1);\n  if ( !v5 )\n  {\nLABEL_6:\n    v3 = (_DWORD *)a1[1];\n    if ( *v3 == 4 )\n    {\n      return (__int64)(v3 + 2);\n    }\n    else\n    {\n      ERR_put_error(46, 129, 152, (__int64)\"crypto/cms/cms_lib.c\", 184);\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; CMS_get0_content from 0xe1f820 to 0xe1f938 (280 bytes)\n; \n; 6 xrefs:\n; > CMS_stream @ 0xe1eb58\n; > cms_content_bio @ 0xe1f940\n; > CMS_dataFinal @ 0xe1fac8\n; > CMS_is_detached @ 0xe1fe18\n; > CMS_set_detached @ 0xe1fe4c\n; > <???> @ 0x86b50\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,#var_20]!                                ; +0x0, 0xe1f820\nMOV             X29, SP                                                ; +0x4, 0xe1f824\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xe1f828\nMOV             X19, X0                                                ; +0xc, 0xe1f82c\nLDR             X0, [X0]                                               ; +0x10, 0xe1f830\nBL              OBJ_obj2nid                                            ; +0x14, 0xe1f834\nCMP             W0, #0x19                                              ; +0x18, 0xe1f838\nB.EQ            loc_E1F89C                                             ; +0x1c, 0xe1f83c\nB.LE            loc_E1F87C                                             ; +0x20, 0xe1f840\nCMP             W0, #0xCD                                              ; +0x24, 0xe1f844\nB.EQ            loc_E1F8E4                                             ; +0x28, 0xe1f848\nCMP             W0, #0x312                                             ; +0x2c, 0xe1f84c\nB.EQ            loc_E1F8B4                                             ; +0x30, 0xe1f850\nCMP             W0, #0x1A                                              ; +0x34, 0xe1f854\nB.EQ            loc_E1F8FC                                             ; +0x38, 0xe1f858\nLDR             X0, [X19,#8]                                           ; +0x3c, 0xe1f85c\nLDR             W1, [X0]                                               ; +0x40, 0xe1f860\nCMP             W1, #4                                                 ; +0x44, 0xe1f864\nB.NE            loc_E1F914                                             ; +0x48, 0xe1f868\nADD             X0, X0, #8                                             ; +0x4c, 0xe1f86c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0xe1f870\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0xe1f874\nRET                                                                    ; +0x58, 0xe1f878\nCMP             W0, #0x16                                              ; +0x5c, 0xe1f87c\nB.EQ            loc_E1F89C                                             ; +0x60, 0xe1f880\nCMP             W0, #0x17                                              ; +0x64, 0xe1f884\nB.EQ            loc_E1F8CC                                             ; +0x68, 0xe1f888\nCMP             W0, #0x15                                              ; +0x6c, 0xe1f88c\nADD             X0, X19, #8                                            ; +0x70, 0xe1f890\nB.NE            loc_E1F85C                                             ; +0x74, 0xe1f894\nB               loc_E1F8A8                                             ; +0x78, 0xe1f898\nLDR             X0, [X19,#8]                                           ; +0x7c, 0xe1f89c\nLDR             X0, [X0,#0x10]                                         ; +0x80, 0xe1f8a0\nADD             X0, X0, #8                                             ; +0x84, 0xe1f8a4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x88, 0xe1f8a8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x8c, 0xe1f8ac\nRET                                                                    ; +0x90, 0xe1f8b0\nLDR             X0, [X19,#8]                                           ; +0x94, 0xe1f8b4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x98, 0xe1f8b8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x9c, 0xe1f8bc\nLDR             X0, [X0,#0x18]                                         ; +0xa0, 0xe1f8c0\nADD             X0, X0, #8                                             ; +0xa4, 0xe1f8c4\nRET                                                                    ; +0xa8, 0xe1f8c8\nLDR             X0, [X19,#8]                                           ; +0xac, 0xe1f8cc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xb0, 0xe1f8d0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xb4, 0xe1f8d4\nLDR             X0, [X0,#0x18]                                         ; +0xb8, 0xe1f8d8\nADD             X0, X0, #0x10                                          ; +0xbc, 0xe1f8dc\nRET                                                                    ; +0xc0, 0xe1f8e0\nLDR             X0, [X19,#8]                                           ; +0xc4, 0xe1f8e4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xc8, 0xe1f8e8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xcc, 0xe1f8ec\nLDR             X0, [X0,#0x28]                                         ; +0xd0, 0xe1f8f0\nADD             X0, X0, #8                                             ; +0xd4, 0xe1f8f4\nRET                                                                    ; +0xd8, 0xe1f8f8\nLDR             X0, [X19,#8]                                           ; +0xdc, 0xe1f8fc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xe0, 0xe1f900\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xe4, 0xe1f904\nLDR             X0, [X0,#8]                                            ; +0xe8, 0xe1f908\nADD             X0, X0, #0x10                                          ; +0xec, 0xe1f90c\nRET                                                                    ; +0xf0, 0xe1f910\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0xf4, 0xe1f914\nMOV             W0, #0x2E ; '.'                                        ; +0xf8, 0xe1f918\nMOV             W1, #0x81                                              ; +0xfc, 0xe1f91c\nMOV             W2, #0x98                                              ; +0x100, 0xe1f920\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x104, 0xe1f924\nMOV             W4, #0xB8                                              ; +0x108, 0xe1f928\nBL              ERR_put_error                                          ; +0x10c, 0xe1f92c\nMOV             X0, #0                                                 ; +0x110, 0xe1f930\nB               loc_E1F8A8                                             ; +0x114, 0xe1f934", "xrefs": ["CMS_stream @ 0xe1eb58", "cms_content_bio @ 0xe1f940", "CMS_dataFinal @ 0xe1fac8", "CMS_is_detached @ 0xe1fe18", "CMS_set_detached @ 0xe1fe4c", "<???> @ 0x86b50"], "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"}