{"type": "func", "start": 17424400, "end": 17424656, "name": "CMS_set1_eContentType", "pseudocode": "// \n// CMS_set1_eContentType from 0x109e010 to 0x109e110 (256 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5bd98\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:17:30 +0000\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 0x109e010 to 0x109e110 (256 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5bd98\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:17:30 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x109e010\nMOV             X29, SP                                                ; +0x4, 0x109e014\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x109e018\nMOV             X19, X0                                                ; +0xc, 0x109e01c\nLDR             X0, [X0]                                               ; +0x10, 0x109e020\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0x109e024\nBL              OBJ_obj2nid                                            ; +0x18, 0x109e028\nCMP             W0, #0x19                                              ; +0x1c, 0x109e02c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x20, 0x109e030\nB.EQ            loc_109E0CC                                            ; +0x24, 0x109e034\nB.LE            loc_109E080                                            ; +0x28, 0x109e038\nCMP             W0, #0xCD                                              ; +0x2c, 0x109e03c\nB.EQ            loc_109E0D8                                            ; +0x30, 0x109e040\nCMP             W0, #0x312                                             ; +0x34, 0x109e044\nB.EQ            loc_109E090                                            ; +0x38, 0x109e048\nCMP             W0, #0x1A                                              ; +0x3c, 0x109e04c\nB.EQ            loc_109E0E4                                            ; +0x40, 0x109e050\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x44, 0x109e054\nMOV             W0, #0x2E ; '.'                                        ; +0x48, 0x109e058\nMOV             W1, #0x82                                              ; +0x4c, 0x109e05c\nMOV             W2, #0x98                                              ; +0x50, 0x109e060\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x54, 0x109e064\nMOV             W4, #0xDA                                              ; +0x58, 0x109e068\nBL              ERR_put_error                                          ; +0x5c, 0x109e06c\nMOV             W0, #0                                                 ; +0x60, 0x109e070\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0x109e074\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0x109e078\nRET                                                                    ; +0x6c, 0x109e07c\nCMP             W0, #0x16                                              ; +0x70, 0x109e080\nB.EQ            loc_109E0CC                                            ; +0x74, 0x109e084\nCMP             W0, #0x17                                              ; +0x78, 0x109e088\nB.NE            loc_109E054                                            ; +0x7c, 0x109e08c\nLDR             X0, [X19,#8]                                           ; +0x80, 0x109e090\nLDR             X19, [X0,#0x18]                                        ; +0x84, 0x109e094\nCBZ             X19, loc_109E100                                       ; +0x88, 0x109e098\nCBZ             X1, loc_109E0F0                                        ; +0x8c, 0x109e09c\nMOV             X0, X1                                                 ; +0x90, 0x109e0a0\nBL              OBJ_dup                                                ; +0x94, 0x109e0a4\nMOV             X20, X0                                                ; +0x98, 0x109e0a8\nCBZ             X0, loc_109E100                                        ; +0x9c, 0x109e0ac\nLDR             X0, [X19]                                              ; +0xa0, 0x109e0b0\nBL              ASN1_OBJECT_free                                       ; +0xa4, 0x109e0b4\nSTR             X20, [X19]                                             ; +0xa8, 0x109e0b8\nMOV             W0, #1                                                 ; +0xac, 0x109e0bc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xb0, 0x109e0c0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xb4, 0x109e0c4\nRET                                                                    ; +0xb8, 0x109e0c8\nLDR             X0, [X19,#8]                                           ; +0xbc, 0x109e0cc\nLDR             X19, [X0,#0x10]                                        ; +0xc0, 0x109e0d0\nB               loc_109E098                                            ; +0xc4, 0x109e0d4\nLDR             X0, [X19,#8]                                           ; +0xc8, 0x109e0d8\nLDR             X19, [X0,#0x28]                                        ; +0xcc, 0x109e0dc\nB               loc_109E098                                            ; +0xd0, 0x109e0e0\nLDR             X0, [X19,#8]                                           ; +0xd4, 0x109e0e4\nLDR             X19, [X0,#8]                                           ; +0xd8, 0x109e0e8\nB               loc_109E098                                            ; +0xdc, 0x109e0ec\nMOV             W0, #1                                                 ; +0xe0, 0x109e0f0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xe4, 0x109e0f4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xe8, 0x109e0f8\nRET                                                                    ; +0xec, 0x109e0fc\nMOV             W0, #0                                                 ; +0xf0, 0x109e100\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xf4, 0x109e104\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xf8, 0x109e108\nRET                                                                    ; +0xfc, 0x109e10c", "xrefs": ["<???> @ 0x5bd98"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}