{"type": "func", "start": 17424212, "end": 17424400, "name": "CMS_get0_eContentType", "pseudocode": "// \n// CMS_get0_eContentType from 0x109df54 to 0x109e010 (188 bytes)\n// \n// 2 xrefs:\n// > SMIME_write_CMS @ 0x109d054\n// > <???> @ 0x948e8\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_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 0x109df54 to 0x109e010 (188 bytes)\n; \n; 2 xrefs:\n; > SMIME_write_CMS @ 0x109d054\n; > <???> @ 0x948e8\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_20]!                                ; +0x0, 0x109df54\nMOV             X29, SP                                                ; +0x4, 0x109df58\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x109df5c\nMOV             X19, X0                                                ; +0xc, 0x109df60\nLDR             X0, [X0]                                               ; +0x10, 0x109df64\nBL              OBJ_obj2nid                                            ; +0x14, 0x109df68\nCMP             W0, #0x19                                              ; +0x18, 0x109df6c\nB.EQ            loc_109DFEC                                            ; +0x1c, 0x109df70\nB.LE            loc_109DFBC                                            ; +0x20, 0x109df74\nCMP             W0, #0xCD                                              ; +0x24, 0x109df78\nB.EQ            loc_109DFF8                                            ; +0x28, 0x109df7c\nCMP             W0, #0x312                                             ; +0x2c, 0x109df80\nB.EQ            loc_109DFCC                                            ; +0x30, 0x109df84\nCMP             W0, #0x1A                                              ; +0x34, 0x109df88\nB.EQ            loc_109E004                                            ; +0x38, 0x109df8c\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x3c, 0x109df90\nMOV             W0, #0x2E ; '.'                                        ; +0x40, 0x109df94\nMOV             W1, #0x82                                              ; +0x44, 0x109df98\nMOV             W2, #0x98                                              ; +0x48, 0x109df9c\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x4c, 0x109dfa0\nMOV             W4, #0xDA                                              ; +0x50, 0x109dfa4\nBL              ERR_put_error                                          ; +0x54, 0x109dfa8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x58, 0x109dfac\nMOV             X0, #0                                                 ; +0x5c, 0x109dfb0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x109dfb4\nRET                                                                    ; +0x64, 0x109dfb8\nCMP             W0, #0x16                                              ; +0x68, 0x109dfbc\nB.EQ            loc_109DFEC                                            ; +0x6c, 0x109dfc0\nCMP             W0, #0x17                                              ; +0x70, 0x109dfc4\nB.NE            loc_109DF90                                            ; +0x74, 0x109dfc8\nLDR             X0, [X19,#8]                                           ; +0x78, 0x109dfcc\nLDR             X1, [X0,#0x18]                                         ; +0x7c, 0x109dfd0\nMOV             X0, #0                                                 ; +0x80, 0x109dfd4\nCBZ             X1, loc_109DFE0                                        ; +0x84, 0x109dfd8\nLDR             X0, [X1]                                               ; +0x88, 0x109dfdc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x8c, 0x109dfe0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x90, 0x109dfe4\nRET                                                                    ; +0x94, 0x109dfe8\nLDR             X0, [X19,#8]                                           ; +0x98, 0x109dfec\nLDR             X1, [X0,#0x10]                                         ; +0x9c, 0x109dff0\nB               loc_109DFD4                                            ; +0xa0, 0x109dff4\nLDR             X0, [X19,#8]                                           ; +0xa4, 0x109dff8\nLDR             X1, [X0,#0x28]                                         ; +0xa8, 0x109dffc\nB               loc_109DFD4                                            ; +0xac, 0x109e000\nLDR             X0, [X19,#8]                                           ; +0xb0, 0x109e004\nLDR             X1, [X0,#8]                                            ; +0xb4, 0x109e008\nB               loc_109DFD4                                            ; +0xb8, 0x109e00c", "xrefs": ["SMIME_write_CMS @ 0x109d054", "<???> @ 0x948e8"], "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"}