{"type": "func", "start": 10982348, "end": 10982476, "name": "ASN1_TYPE_pack_sequence", "pseudocode": "// \n// ASN1_TYPE_pack_sequence from 0xa793cc to 0xa7944c (128 bytes)\n// \n// 6 xrefs:\n// > ASN1_TYPE_set_int_octetstring @ 0xa7b68c\n// > PKCS5_pbkdf2_set @ 0xadc124\n// > PKCS5_pbe2_set_iv @ 0xadc310\n// > PKCS5_pbe2_set_scrypt @ 0xadc660\n// > PKCS5_pbe2_set_scrypt @ 0xadc6a0\n// > <???> @ 0x8340c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:45 +0000\n// \n\n_DWORD *__fastcall ASN1_TYPE_pack_sequence(int a1, int a2, _DWORD **a3)\n{\n  int v4; // r6\n  _DWORD *v5; // r4\n  _DWORD *v7; // r0\n\n  v4 = ASN1_item_pack(a2, a1, 0);\n  if ( v4 )\n  {\n    if ( a3 )\n    {\n      v5 = *a3;\n      if ( *a3 )\n      {\nLABEL_4:\n        ASN1_TYPE_set(v5, 16, v4);\n        return v5;\n      }\n      v7 = ASN1_TYPE_new();\n      v5 = v7;\n      if ( v7 )\n      {\n        *a3 = v7;\n        goto LABEL_4;\n      }\n    }\n    else\n    {\n      v5 = ASN1_TYPE_new();\n      if ( v5 )\n        goto LABEL_4;\n    }\n    ASN1_OCTET_STRING_free(v4);\n  }\n  return nullptr;\n}", "assembly": "; \n; ASN1_TYPE_pack_sequence from 0xa793cc to 0xa7944c (128 bytes)\n; \n; 6 xrefs:\n; > ASN1_TYPE_set_int_octetstring @ 0xa7b68c\n; > PKCS5_pbkdf2_set @ 0xadc124\n; > PKCS5_pbe2_set_iv @ 0xadc310\n; > PKCS5_pbe2_set_scrypt @ 0xadc660\n; > PKCS5_pbe2_set_scrypt @ 0xadc6a0\n; > <???> @ 0x8340c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:08:45 +0000\n; \nMOV             R3, R0                                                 ; +0x0, 0xa793cc\nPUSH            {R4-R6,LR}                                             ; +0x4, 0xa793d0\nMOV             R0, R1                                                 ; +0x8, 0xa793d4\nMOV             R5, R2                                                 ; +0xc, 0xa793d8\nMOV             R1, R3                                                 ; +0x10, 0xa793dc\nMOV             R2, #0                                                 ; +0x14, 0xa793e0\nBL              ASN1_item_pack                                         ; +0x18, 0xa793e4\nSUBS            R6, R0, #0                                             ; +0x1c, 0xa793e8\nBEQ             loc_A79434                                             ; +0x20, 0xa793ec\nCMP             R5, #0                                                 ; +0x24, 0xa793f0\nBEQ             loc_A7943C                                             ; +0x28, 0xa793f4\nLDR             R4, [R5]                                               ; +0x2c, 0xa793f8\nCMP             R4, #0                                                 ; +0x30, 0xa793fc\nBEQ             loc_A7941C                                             ; +0x34, 0xa79400\nMOV             R0, R4                                                 ; +0x38, 0xa79404\nMOV             R2, R6                                                 ; +0x3c, 0xa79408\nMOV             R1, #0x10                                              ; +0x40, 0xa7940c\nBL              ASN1_TYPE_set                                          ; +0x44, 0xa79410\nMOV             R0, R4                                                 ; +0x48, 0xa79414\nPOP             {R4-R6,PC}                                             ; +0x4c, 0xa79418\nBL              ASN1_TYPE_new                                          ; +0x50, 0xa7941c\nSUBS            R4, R0, #0                                             ; +0x54, 0xa79420\nSTRNE           R4, [R5]                                               ; +0x58, 0xa79424\nBNE             loc_A79404                                             ; +0x5c, 0xa79428\nMOV             R0, R6                                                 ; +0x60, 0xa7942c\nBL              ASN1_OCTET_STRING_free                                 ; +0x64, 0xa79430\nMOV             R0, #0                                                 ; +0x68, 0xa79434\nPOP             {R4-R6,PC}                                             ; +0x6c, 0xa79438\nBL              ASN1_TYPE_new                                          ; +0x70, 0xa7943c\nSUBS            R4, R0, #0                                             ; +0x74, 0xa79440\nBNE             loc_A79404                                             ; +0x78, 0xa79444\nB               loc_A7942C                                             ; +0x7c, 0xa79448", "xrefs": ["ASN1_TYPE_set_int_octetstring @ 0xa7b68c", "PKCS5_pbkdf2_set @ 0xadc124", "PKCS5_pbe2_set_iv @ 0xadc310", "PKCS5_pbe2_set_scrypt @ 0xadc660", "PKCS5_pbe2_set_scrypt @ 0xadc6a0", "<???> @ 0x8340c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}