{"type": "func", "start": 14731780, "end": 14731892, "name": "ASN1_TYPE_cmp", "pseudocode": "// \n// ASN1_TYPE_cmp from 0xe0ca04 to 0xe0ca74 (112 bytes)\n// \n// 4 xrefs:\n// > X509_ALGOR_cmp @ 0xd70974\n// > OTHERNAME_cmp @ 0xdfd8b4\n// > GENERAL_NAME_cmp @ 0xdfd920\n// > <???> @ 0xbe680\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 ASN1_TYPE_cmp(int *a1, __int64 a2)\n{\n  int v2; // w2\n\n  if ( !a1 )\n    return 0xFFFFFFFFLL;\n  if ( !a2 )\n    return 0xFFFFFFFFLL;\n  v2 = *a1;\n  if ( *a1 != *(_DWORD *)a2 )\n    return 0xFFFFFFFFLL;\n  switch ( v2 )\n  {\n    case 5:\n      return 0;\n    case 6:\n      return OBJ_cmp(*((_QWORD *)a1 + 1), *(_QWORD *)(a2 + 8));\n    case 1:\n      return (unsigned int)(a1[2] - *(_DWORD *)(a2 + 8));\n  }\n  return ASN1_STRING_cmp(*((const void ***)a1 + 1), *(_QWORD *)(a2 + 8));\n}", "assembly": "; \n; ASN1_TYPE_cmp from 0xe0ca04 to 0xe0ca74 (112 bytes)\n; \n; 4 xrefs:\n; > X509_ALGOR_cmp @ 0xd70974\n; > OTHERNAME_cmp @ 0xdfd8b4\n; > GENERAL_NAME_cmp @ 0xdfd920\n; > <???> @ 0xbe680\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\nCBZ             X0, loc_E0CA6C                                         ; +0x0, 0xe0ca04\nCMP             X1, XZR                                                ; +0x4, 0xe0ca08\nCSET            W3, EQ                                                 ; +0x8, 0xe0ca0c\nCBNZ            W3, loc_E0CA6C                                         ; +0xc, 0xe0ca10\nLDR             W2, [X0]                                               ; +0x10, 0xe0ca14\nLDR             W4, [X1]                                               ; +0x14, 0xe0ca18\nCMP             W2, W4                                                 ; +0x18, 0xe0ca1c\nB.NE            loc_E0CA6C                                             ; +0x1c, 0xe0ca20\nCMP             W2, #5                                                 ; +0x20, 0xe0ca24\nB.EQ            loc_E0CA64                                             ; +0x24, 0xe0ca28\nCMP             W2, #6                                                 ; +0x28, 0xe0ca2c\nB.EQ            loc_E0CA48                                             ; +0x2c, 0xe0ca30\nCMP             W2, #1                                                 ; +0x30, 0xe0ca34\nB.EQ            loc_E0CA54                                             ; +0x34, 0xe0ca38\nLDR             X0, [X0,#8]                                            ; +0x38, 0xe0ca3c\nLDR             X1, [X1,#8]                                            ; +0x3c, 0xe0ca40\nB               ASN1_STRING_cmp                                        ; +0x40, 0xe0ca44\nLDR             X0, [X0,#8]                                            ; +0x44, 0xe0ca48\nLDR             X1, [X1,#8]                                            ; +0x48, 0xe0ca4c\nB               OBJ_cmp                                                ; +0x4c, 0xe0ca50\nLDR             W0, [X0,#8]                                            ; +0x50, 0xe0ca54\nLDR             W3, [X1,#8]                                            ; +0x54, 0xe0ca58\nSUB             W0, W0, W3                                             ; +0x58, 0xe0ca5c\nRET                                                                    ; +0x5c, 0xe0ca60\nMOV             W0, W3                                                 ; +0x60, 0xe0ca64\nRET                                                                    ; +0x64, 0xe0ca68\nMOV             W0, #0xFFFFFFFF                                        ; +0x68, 0xe0ca6c\nRET                                                                    ; +0x6c, 0xe0ca70", "xrefs": ["X509_ALGOR_cmp @ 0xd70974", "OTHERNAME_cmp @ 0xdfd8b4", "GENERAL_NAME_cmp @ 0xdfd920", "<???> @ 0xbe680"], "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"}