{"type": "func", "start": 14811900, "end": 14812112, "name": "CMS_add0_RevocationInfoChoice", "pseudocode": "// \n// CMS_add0_RevocationInfoChoice from 0xe202fc to 0xe203d0 (212 bytes)\n// \n// 2 xrefs:\n// > CMS_add0_crl @ 0xe203dc\n// > <???> @ 0x96a20\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_add0_RevocationInfoChoice(__int64 *a1)\n{\n  int v2; // w0\n  __int64 v3; // x20\n  int **v4; // x20\n  __int64 v5; // x19\n  __int64 v6; // x0\n  int *v8; // x0\n\n  v2 = OBJ_obj2nid(*a1);\n  if ( v2 != 22 )\n  {\n    if ( v2 == 23 )\n    {\n      v3 = *(_QWORD *)(a1[1] + 8);\n      if ( v3 )\n      {\n        v4 = (int **)(v3 + 8);\n        goto LABEL_5;\n      }\n    }\n    else\n    {\n      ERR_put_error(46, 132, 152, (__int64)\"crypto/cms/cms_lib.c\", 431);\n    }\n    return 0;\n  }\n  v4 = (int **)(a1[1] + 32);\n  if ( a1[1] == -32 )\n    return 0;\nLABEL_5:\n  if ( !*v4 )\n  {\n    v8 = (int *)OPENSSL_sk_new_null();\n    *v4 = v8;\n    if ( !v8 )\n      return 0;\n  }\n  v5 = ASN1_item_new((__int64)CMS_RevocationInfoChoice_it);\n  if ( !v5 )\n    return 0;\n  if ( !(unsigned int)OPENSSL_sk_push(*v4, v5) )\n  {\n    v6 = v5;\n    v5 = 0;\n    ASN1_item_free(v6, CMS_RevocationInfoChoice_it);\n  }\n  return v5;\n}", "assembly": "; \n; CMS_add0_RevocationInfoChoice from 0xe202fc to 0xe203d0 (212 bytes)\n; \n; 2 xrefs:\n; > CMS_add0_crl @ 0xe203dc\n; > <???> @ 0x96a20\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, 0xe202fc\nMOV             X29, SP                                                ; +0x4, 0xe20300\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xe20304\nMOV             X19, X0                                                ; +0xc, 0xe20308\nLDR             X0, [X0]                                               ; +0x10, 0xe2030c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xe20310\nBL              OBJ_obj2nid                                            ; +0x18, 0xe20314\nCMP             W0, #0x16                                              ; +0x1c, 0xe20318\nB.EQ            loc_E203B0                                             ; +0x20, 0xe2031c\nCMP             W0, #0x17                                              ; +0x24, 0xe20320\nB.NE            loc_E2037C                                             ; +0x28, 0xe20324\nLDR             X0, [X19,#8]                                           ; +0x2c, 0xe20328\nLDR             X20, [X0,#8]                                           ; +0x30, 0xe2032c\nCBZ             X20, loc_E20398                                        ; +0x34, 0xe20330\nADD             X20, X20, #8                                           ; +0x38, 0xe20334\nLDR             X0, [X20]                                              ; +0x3c, 0xe20338\nCBZ             X0, loc_E203C0                                         ; +0x40, 0xe2033c\nADRP            X21, #CMS_RevocationInfoChoice_it_ptr@PAGE             ; +0x44, 0xe20340\nLDR             X21, [X21,#CMS_RevocationInfoChoice_it_ptr@PAGEOFF]; CMS_RevocationInfoChoice_it ; +0x48, 0xe20344\nMOV             X0, X21                                                ; +0x4c, 0xe20348\nBL              ASN1_item_new                                          ; +0x50, 0xe2034c\nMOV             X19, X0                                                ; +0x54, 0xe20350\nCBZ             X0, loc_E20398                                         ; +0x58, 0xe20354\nLDR             X0, [X20]                                              ; +0x5c, 0xe20358\nMOV             X1, X19                                                ; +0x60, 0xe2035c\nBL              OPENSSL_sk_push                                        ; +0x64, 0xe20360\nCBNZ            W0, loc_E2039C                                         ; +0x68, 0xe20364\nMOV             X0, X19                                                ; +0x6c, 0xe20368\nMOV             X1, X21                                                ; +0x70, 0xe2036c\nMOV             X19, #0                                                ; +0x74, 0xe20370\nBL              ASN1_item_free                                         ; +0x78, 0xe20374\nB               loc_E2039C                                             ; +0x7c, 0xe20378\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x80, 0xe2037c\nMOV             W0, #0x2E ; '.'                                        ; +0x84, 0xe20380\nMOV             W1, #0x84                                              ; +0x88, 0xe20384\nMOV             W2, #0x98                                              ; +0x8c, 0xe20388\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x90, 0xe2038c\nMOV             W4, #0x1AF                                             ; +0x94, 0xe20390\nBL              ERR_put_error                                          ; +0x98, 0xe20394\nMOV             X19, #0                                                ; +0x9c, 0xe20398\nMOV             X0, X19                                                ; +0xa0, 0xe2039c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa4, 0xe203a0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa8, 0xe203a4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xac, 0xe203a8\nRET                                                                    ; +0xb0, 0xe203ac\nLDR             X20, [X19,#8]                                          ; +0xb4, 0xe203b0\nADDS            X20, X20, #0x20 ; ' '                                  ; +0xb8, 0xe203b4\nB.NE            loc_E20338                                             ; +0xbc, 0xe203b8\nB               loc_E20398                                             ; +0xc0, 0xe203bc\nBL              OPENSSL_sk_new_null                                    ; +0xc4, 0xe203c0\nSTR             X0, [X20]                                              ; +0xc8, 0xe203c4\nCBZ             X0, loc_E20398                                         ; +0xcc, 0xe203c8\nB               loc_E20340                                             ; +0xd0, 0xe203cc", "xrefs": ["CMS_add0_crl @ 0xe203dc", "<???> @ 0x96a20"], "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"}