{"type": "func", "start": 14810196, "end": 14810384, "name": "CMS_get0_eContentType", "pseudocode": "// \n// CMS_get0_eContentType from 0xe1fc54 to 0xe1fd10 (188 bytes)\n// \n// 2 xrefs:\n// > SMIME_write_CMS @ 0xe1ed54\n// > <???> @ 0x6e178\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_eContentType(__int64 *a1)\n{\n  int v2; // w0\n  __int64 result; // x0\n  __int64 v4; // x1\n\n  v2 = OBJ_obj2nid(*a1);\n  if ( v2 == 25 )\n    goto LABEL_13;\n  if ( v2 <= 25 )\n  {\n    if ( v2 != 22 )\n    {\n      if ( v2 != 23 )\n        goto LABEL_6;\n      goto LABEL_9;\n    }\nLABEL_13:\n    v4 = *(_QWORD *)(a1[1] + 16);\n    goto LABEL_10;\n  }\n  if ( v2 == 205 )\n  {\n    v4 = *(_QWORD *)(a1[1] + 40);\n    goto LABEL_10;\n  }\n  if ( v2 == 786 )\n  {\nLABEL_9:\n    v4 = *(_QWORD *)(a1[1] + 24);\n    goto LABEL_10;\n  }\n  if ( v2 != 26 )\n  {\nLABEL_6:\n    ERR_put_error(46, 130, 152, (__int64)\"crypto/cms/cms_lib.c\", 218);\n    return 0;\n  }\n  v4 = *(_QWORD *)(a1[1] + 8);\nLABEL_10:\n  result = 0;\n  if ( v4 )\n    return *(_QWORD *)v4;\n  return result;\n}", "assembly": "; \n; CMS_get0_eContentType from 0xe1fc54 to 0xe1fd10 (188 bytes)\n; \n; 2 xrefs:\n; > SMIME_write_CMS @ 0xe1ed54\n; > <???> @ 0x6e178\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, 0xe1fc54\nMOV             X29, SP                                                ; +0x4, 0xe1fc58\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xe1fc5c\nMOV             X19, X0                                                ; +0xc, 0xe1fc60\nLDR             X0, [X0]                                               ; +0x10, 0xe1fc64\nBL              OBJ_obj2nid                                            ; +0x14, 0xe1fc68\nCMP             W0, #0x19                                              ; +0x18, 0xe1fc6c\nB.EQ            loc_E1FCEC                                             ; +0x1c, 0xe1fc70\nB.LE            loc_E1FCBC                                             ; +0x20, 0xe1fc74\nCMP             W0, #0xCD                                              ; +0x24, 0xe1fc78\nB.EQ            loc_E1FCF8                                             ; +0x28, 0xe1fc7c\nCMP             W0, #0x312                                             ; +0x2c, 0xe1fc80\nB.EQ            loc_E1FCCC                                             ; +0x30, 0xe1fc84\nCMP             W0, #0x1A                                              ; +0x34, 0xe1fc88\nB.EQ            loc_E1FD04                                             ; +0x38, 0xe1fc8c\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x3c, 0xe1fc90\nMOV             W0, #0x2E ; '.'                                        ; +0x40, 0xe1fc94\nMOV             W1, #0x82                                              ; +0x44, 0xe1fc98\nMOV             W2, #0x98                                              ; +0x48, 0xe1fc9c\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x4c, 0xe1fca0\nMOV             W4, #0xDA                                              ; +0x50, 0xe1fca4\nBL              ERR_put_error                                          ; +0x54, 0xe1fca8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x58, 0xe1fcac\nMOV             X0, #0                                                 ; +0x5c, 0xe1fcb0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0xe1fcb4\nRET                                                                    ; +0x64, 0xe1fcb8\nCMP             W0, #0x16                                              ; +0x68, 0xe1fcbc\nB.EQ            loc_E1FCEC                                             ; +0x6c, 0xe1fcc0\nCMP             W0, #0x17                                              ; +0x70, 0xe1fcc4\nB.NE            loc_E1FC90                                             ; +0x74, 0xe1fcc8\nLDR             X0, [X19,#8]                                           ; +0x78, 0xe1fccc\nLDR             X1, [X0,#0x18]                                         ; +0x7c, 0xe1fcd0\nMOV             X0, #0                                                 ; +0x80, 0xe1fcd4\nCBZ             X1, loc_E1FCE0                                         ; +0x84, 0xe1fcd8\nLDR             X0, [X1]                                               ; +0x88, 0xe1fcdc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x8c, 0xe1fce0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x90, 0xe1fce4\nRET                                                                    ; +0x94, 0xe1fce8\nLDR             X0, [X19,#8]                                           ; +0x98, 0xe1fcec\nLDR             X1, [X0,#0x10]                                         ; +0x9c, 0xe1fcf0\nB               loc_E1FCD4                                             ; +0xa0, 0xe1fcf4\nLDR             X0, [X19,#8]                                           ; +0xa4, 0xe1fcf8\nLDR             X1, [X0,#0x28]                                         ; +0xa8, 0xe1fcfc\nB               loc_E1FCD4                                             ; +0xac, 0xe1fd00\nLDR             X0, [X19,#8]                                           ; +0xb0, 0xe1fd04\nLDR             X1, [X0,#8]                                            ; +0xb4, 0xe1fd08\nB               loc_E1FCD4                                             ; +0xb8, 0xe1fd0c", "xrefs": ["SMIME_write_CMS @ 0xe1ed54", "<???> @ 0x6e178"], "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"}