{"type": "func", "start": 17425916, "end": 17426128, "name": "CMS_add0_RevocationInfoChoice", "pseudocode": "// \n// CMS_add0_RevocationInfoChoice from 0x109e5fc to 0x109e6d0 (212 bytes)\n// \n// 2 xrefs:\n// > CMS_add0_crl @ 0x109e6dc\n// > <???> @ 0xc6f28\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_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 0x109e5fc to 0x109e6d0 (212 bytes)\n; \n; 2 xrefs:\n; > CMS_add0_crl @ 0x109e6dc\n; > <???> @ 0xc6f28\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, 0x109e5fc\nMOV             X29, SP                                                ; +0x4, 0x109e600\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x109e604\nMOV             X19, X0                                                ; +0xc, 0x109e608\nLDR             X0, [X0]                                               ; +0x10, 0x109e60c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x109e610\nBL              OBJ_obj2nid                                            ; +0x18, 0x109e614\nCMP             W0, #0x16                                              ; +0x1c, 0x109e618\nB.EQ            loc_109E6B0                                            ; +0x20, 0x109e61c\nCMP             W0, #0x17                                              ; +0x24, 0x109e620\nB.NE            loc_109E67C                                            ; +0x28, 0x109e624\nLDR             X0, [X19,#8]                                           ; +0x2c, 0x109e628\nLDR             X20, [X0,#8]                                           ; +0x30, 0x109e62c\nCBZ             X20, loc_109E698                                       ; +0x34, 0x109e630\nADD             X20, X20, #8                                           ; +0x38, 0x109e634\nLDR             X0, [X20]                                              ; +0x3c, 0x109e638\nCBZ             X0, loc_109E6C0                                        ; +0x40, 0x109e63c\nADRP            X21, #CMS_RevocationInfoChoice_it_ptr@PAGE             ; +0x44, 0x109e640\nLDR             X21, [X21,#CMS_RevocationInfoChoice_it_ptr@PAGEOFF]; CMS_RevocationInfoChoice_it ; +0x48, 0x109e644\nMOV             X0, X21                                                ; +0x4c, 0x109e648\nBL              ASN1_item_new                                          ; +0x50, 0x109e64c\nMOV             X19, X0                                                ; +0x54, 0x109e650\nCBZ             X0, loc_109E698                                        ; +0x58, 0x109e654\nLDR             X0, [X20]                                              ; +0x5c, 0x109e658\nMOV             X1, X19                                                ; +0x60, 0x109e65c\nBL              OPENSSL_sk_push                                        ; +0x64, 0x109e660\nCBNZ            W0, loc_109E69C                                        ; +0x68, 0x109e664\nMOV             X0, X19                                                ; +0x6c, 0x109e668\nMOV             X1, X21                                                ; +0x70, 0x109e66c\nMOV             X19, #0                                                ; +0x74, 0x109e670\nBL              ASN1_item_free                                         ; +0x78, 0x109e674\nB               loc_109E69C                                            ; +0x7c, 0x109e678\nADRP            X3, #aCryptoCmsCmsLi@PAGE; \"crypto/cms/cms_lib.c\"      ; +0x80, 0x109e67c\nMOV             W0, #0x2E ; '.'                                        ; +0x84, 0x109e680\nMOV             W1, #0x84                                              ; +0x88, 0x109e684\nMOV             W2, #0x98                                              ; +0x8c, 0x109e688\nADD             X3, X3, #aCryptoCmsCmsLi@PAGEOFF; \"crypto/cms/cms_lib.c\" ; +0x90, 0x109e68c\nMOV             W4, #0x1AF                                             ; +0x94, 0x109e690\nBL              ERR_put_error                                          ; +0x98, 0x109e694\nMOV             X19, #0                                                ; +0x9c, 0x109e698\nMOV             X0, X19                                                ; +0xa0, 0x109e69c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xa4, 0x109e6a0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xa8, 0x109e6a4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xac, 0x109e6a8\nRET                                                                    ; +0xb0, 0x109e6ac\nLDR             X20, [X19,#8]                                          ; +0xb4, 0x109e6b0\nADDS            X20, X20, #0x20 ; ' '                                  ; +0xb8, 0x109e6b4\nB.NE            loc_109E638                                            ; +0xbc, 0x109e6b8\nB               loc_109E698                                            ; +0xc0, 0x109e6bc\nBL              OPENSSL_sk_new_null                                    ; +0xc4, 0x109e6c0\nSTR             X0, [X20]                                              ; +0xc8, 0x109e6c4\nCBZ             X0, loc_109E698                                        ; +0xcc, 0x109e6c8\nB               loc_109E640                                            ; +0xd0, 0x109e6cc", "xrefs": ["CMS_add0_crl @ 0x109e6dc", "<???> @ 0xc6f28"], "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"}