{"type": "func", "start": 14810384, "end": 14810640, "name": "CMS_set1_eContentType", "pseudocode": "// \n// CMS_set1_eContentType from 0xe1fd10 to 0xe1fe10 (256 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x3fdb0\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_set1_eContentType(__int64 *a1, __int64 a2)\n{\n  int v3; // w0\n  __int64 *v5; // x19\n  __int64 v6; // x20\n\n  v3 = OBJ_obj2nid(*a1);\n  if ( v3 == 25 )\n    goto LABEL_14;\n  if ( v3 <= 25 )\n  {\n    if ( v3 != 22 )\n    {\n      if ( v3 != 23 )\n        goto LABEL_6;\n      goto LABEL_9;\n    }\nLABEL_14:\n    v5 = *(__int64 **)(a1[1] + 16);\n    goto LABEL_10;\n  }\n  if ( v3 == 205 )\n  {\n    v5 = *(__int64 **)(a1[1] + 40);\n    goto LABEL_10;\n  }\n  if ( v3 == 786 )\n  {\nLABEL_9:\n    v5 = *(__int64 **)(a1[1] + 24);\n    goto LABEL_10;\n  }\n  if ( v3 != 26 )\n  {\nLABEL_6:\n    ERR_put_error(46, 130, 152, (__int64)\"crypto/cms/cms_lib.c\", 218);\n    return 0;\n  }\n  v5 = *(__int64 **)(a1[1] + 8);\nLABEL_10:\n  if ( v5 )\n  {\n    if ( !a2 )\n      return 1;\n    v6 = OBJ_dup(a2);\n    if ( v6 )\n    {\n      ASN1_OBJECT_free(*v5);\n      *v5 = v6;\n      return 1;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; CMS_set1_eContentType from 0xe1fd10 to 0xe1fe10 (256 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x3fdb0\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_30]!                                ; +0x0, 0xe1fd10\nMOV             X29, SP                                                ; +0x4, 0xe1fd14\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xe1fd18\nMOV             X19, X0                                                ; +0xc, 0xe1fd1c\nLDR             X0, [X0]                                               ; +0x10, 0xe1fd20\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0xe1fd24\nBL              OBJ_obj2nid                                            ; +0x18, 0xe1fd28\nCMP             W0, #0x19                                              ; +0x1c, 0xe1fd2c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x20, 0xe1fd30\nB.EQ            loc_E1FDCC                                             ; +0x24, 0xe1fd34\nB.LE            loc_E1FD80                                             ; +0x28, 0xe1fd38\nCMP             W0, #0xCD                                              ; +0x2c, 0xe1fd3c\nB.EQ            loc_E1FDD8                                             ; +0x30, 0xe1fd40\nCMP             W0, #0x312                                             ; +0x34, 0xe1fd44\nB.EQ            loc_E1FD90                                             ; +0x38, 0xe1fd48\nCMP             W0, #0x1A                                              ; +0x3c, 0xe1fd4c\nB.EQ            loc_E1FDE4                                             ; +0x40, 0xe1fd50\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x44, 0xe1fd54\nMOV             W0, #0x2E ; '.'                                        ; +0x48, 0xe1fd58\nMOV             W1, #0x82                                              ; +0x4c, 0xe1fd5c\nMOV             W2, #0x98                                              ; +0x50, 0xe1fd60\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x54, 0xe1fd64\nMOV             W4, #0xDA                                              ; +0x58, 0xe1fd68\nBL              ERR_put_error                                          ; +0x5c, 0xe1fd6c\nMOV             W0, #0                                                 ; +0x60, 0xe1fd70\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0xe1fd74\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0xe1fd78\nRET                                                                    ; +0x6c, 0xe1fd7c\nCMP             W0, #0x16                                              ; +0x70, 0xe1fd80\nB.EQ            loc_E1FDCC                                             ; +0x74, 0xe1fd84\nCMP             W0, #0x17                                              ; +0x78, 0xe1fd88\nB.NE            loc_E1FD54                                             ; +0x7c, 0xe1fd8c\nLDR             X0, [X19,#8]                                           ; +0x80, 0xe1fd90\nLDR             X19, [X0,#0x18]                                        ; +0x84, 0xe1fd94\nCBZ             X19, loc_E1FE00                                        ; +0x88, 0xe1fd98\nCBZ             X1, loc_E1FDF0                                         ; +0x8c, 0xe1fd9c\nMOV             X0, X1                                                 ; +0x90, 0xe1fda0\nBL              OBJ_dup                                                ; +0x94, 0xe1fda4\nMOV             X20, X0                                                ; +0x98, 0xe1fda8\nCBZ             X0, loc_E1FE00                                         ; +0x9c, 0xe1fdac\nLDR             X0, [X19]                                              ; +0xa0, 0xe1fdb0\nBL              ASN1_OBJECT_free                                       ; +0xa4, 0xe1fdb4\nSTR             X20, [X19]                                             ; +0xa8, 0xe1fdb8\nMOV             W0, #1                                                 ; +0xac, 0xe1fdbc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xb0, 0xe1fdc0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xb4, 0xe1fdc4\nRET                                                                    ; +0xb8, 0xe1fdc8\nLDR             X0, [X19,#8]                                           ; +0xbc, 0xe1fdcc\nLDR             X19, [X0,#0x10]                                        ; +0xc0, 0xe1fdd0\nB               loc_E1FD98                                             ; +0xc4, 0xe1fdd4\nLDR             X0, [X19,#8]                                           ; +0xc8, 0xe1fdd8\nLDR             X19, [X0,#0x28]                                        ; +0xcc, 0xe1fddc\nB               loc_E1FD98                                             ; +0xd0, 0xe1fde0\nLDR             X0, [X19,#8]                                           ; +0xd4, 0xe1fde4\nLDR             X19, [X0,#8]                                           ; +0xd8, 0xe1fde8\nB               loc_E1FD98                                             ; +0xdc, 0xe1fdec\nMOV             W0, #1                                                 ; +0xe0, 0xe1fdf0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xe4, 0xe1fdf4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xe8, 0xe1fdf8\nRET                                                                    ; +0xec, 0xe1fdfc\nMOV             W0, #0                                                 ; +0xf0, 0xe1fe00\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xf4, 0xe1fe04\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xf8, 0xe1fe08\nRET                                                                    ; +0xfc, 0xe1fe0c", "xrefs": ["<???> @ 0x3fdb0"], "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"}