{"type": "func", "start": 16677260, "end": 16677348, "name": "ASN1_STRING_clear_free", "pseudocode": "// \n// ASN1_STRING_clear_free from 0xfe798c to 0xfe79e4 (88 bytes)\n// \n// 8 xrefs:\n// > sub_1003DA4 @ 0x1003e30\n// > sub_1003DA4 @ 0x1003e88\n// > sub_1003F10 @ 0x1003fa4\n// > sub_1003F10 @ 0x100404c\n// > sub_1006C30 @ 0x1006cb4\n// > sub_1006C30 @ 0x1006d08\n// > sub_1006DA8 @ 0x1006e6c\n// > <???> @ 0x6a348\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:15:40 +0000\n// \n\n__int64 __fastcall ASN1_STRING_clear_free(__int64 result)\n{\n  int *v1; // x19\n  _BYTE *v2; // x0\n\n  if ( result )\n  {\n    v1 = (int *)result;\n    v2 = *(_BYTE **)(result + 8);\n    if ( v2 && (*((_QWORD *)v1 + 2) & 0x10) == 0 )\n    {\n      OPENSSL_cleanse(v2, *v1);\n      return ASN1_STRING_free((__int64)v1);\n    }\n    else\n    {\n      return ASN1_STRING_free((__int64)v1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; ASN1_STRING_clear_free from 0xfe798c to 0xfe79e4 (88 bytes)\n; \n; 8 xrefs:\n; > sub_1003DA4 @ 0x1003e30\n; > sub_1003DA4 @ 0x1003e88\n; > sub_1003F10 @ 0x1003fa4\n; > sub_1003F10 @ 0x100404c\n; > sub_1006C30 @ 0x1006cb4\n; > sub_1006C30 @ 0x1006d08\n; > sub_1006DA8 @ 0x1006e6c\n; > <???> @ 0x6a348\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:15:40 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xfe798c\nMOV             X29, SP                                                ; +0x4, 0xfe7990\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xfe7994\nCBZ             X0, loc_FE79D8                                         ; +0xc, 0xfe7998\nMOV             X19, X0                                                ; +0x10, 0xfe799c\nLDR             X0, [X0,#8]                                            ; +0x14, 0xfe79a0\nCBZ             X0, loc_FE79B0                                         ; +0x18, 0xfe79a4\nLDR             X1, [X19,#0x10]                                        ; +0x1c, 0xfe79a8\nTBZ             W1, #4, loc_FE79C0                                     ; +0x20, 0xfe79ac\nMOV             X0, X19                                                ; +0x24, 0xfe79b0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xfe79b4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xfe79b8\nB               ASN1_STRING_free                                       ; +0x30, 0xfe79bc\nLDRSW           X1, [X19]                                              ; +0x34, 0xfe79c0\nBL              OPENSSL_cleanse                                        ; +0x38, 0xfe79c4\nMOV             X0, X19                                                ; +0x3c, 0xfe79c8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0xfe79cc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0xfe79d0\nB               ASN1_STRING_free                                       ; +0x48, 0xfe79d4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x4c, 0xfe79d8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x50, 0xfe79dc\nRET                                                                    ; +0x54, 0xfe79e0", "xrefs": ["sub_1003DA4 @ 0x1003e30", "sub_1003DA4 @ 0x1003e88", "sub_1003F10 @ 0x1003fa4", "sub_1003F10 @ 0x100404c", "sub_1006C30 @ 0x1006cb4", "sub_1006C30 @ 0x1006d08", "sub_1006DA8 @ 0x1006e6c", "<???> @ 0x6a348"], "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"}