{"type": "func", "start": 8800088, "end": 8800204, "name": "ASN1_TYPE_cmp", "pseudocode": "// \n// ASN1_TYPE_cmp from 0x864758 to 0x8647cc (116 bytes)\n// \n// 4 xrefs:\n// > X509_ALGOR_cmp @ 0x7ca970\n// > OTHERNAME_cmp @ 0x856dac\n// > GENERAL_NAME_cmp @ 0x856e38\n// > <???> @ 0x5f1dc\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\nint __fastcall ASN1_TYPE_cmp(int *a1, _DWORD *a2)\n{\n  bool v2; // zf\n  int v3; // r2\n  int v4; // r3\n\n  v2 = a2 == nullptr;\n  if ( a2 )\n    v2 = a1 == nullptr;\n  v3 = v2;\n  if ( v2 )\n    return -1;\n  v4 = *a1;\n  if ( *a1 != *a2 )\n    return -1;\n  switch ( v4 )\n  {\n    case 5:\n      return v3;\n    case 6:\n      return OBJ_cmp(a1[1], a2[1]);\n    case 1:\n      return a1[1] - a2[1];\n  }\n  return ASN1_STRING_cmp(a1[1], a2[1]);\n}", "assembly": "; \n; ASN1_TYPE_cmp from 0x864758 to 0x8647cc (116 bytes)\n; \n; 4 xrefs:\n; > X509_ALGOR_cmp @ 0x7ca970\n; > OTHERNAME_cmp @ 0x856dac\n; > GENERAL_NAME_cmp @ 0x856e38\n; > <???> @ 0x5f1dc\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\nCMP             R1, #0                                                 ; +0x0, 0x864758\nCMPNE           R0, #0                                                 ; +0x4, 0x86475c\nMOVEQ           R2, #1                                                 ; +0x8, 0x864760\nMOVNE           R2, #0                                                 ; +0xc, 0x864764\nBEQ             loc_8647C4                                             ; +0x10, 0x864768\nLDR             R3, [R0]                                               ; +0x14, 0x86476c\nLDR             R12, [R1]                                              ; +0x18, 0x864770\nCMP             R3, R12                                                ; +0x1c, 0x864774\nBNE             loc_8647C4                                             ; +0x20, 0x864778\nCMP             R3, #5                                                 ; +0x24, 0x86477c\nBEQ             loc_8647BC                                             ; +0x28, 0x864780\nCMP             R3, #6                                                 ; +0x2c, 0x864784\nBEQ             loc_8647A0                                             ; +0x30, 0x864788\nCMP             R3, #1                                                 ; +0x34, 0x86478c\nBEQ             loc_8647AC                                             ; +0x38, 0x864790\nLDR             R0, [R0,#4]                                            ; +0x3c, 0x864794\nLDR             R1, [R1,#4]                                            ; +0x40, 0x864798\nB               ASN1_STRING_cmp                                        ; +0x44, 0x86479c\nLDR             R0, [R0,#4]                                            ; +0x48, 0x8647a0\nLDR             R1, [R1,#4]                                            ; +0x4c, 0x8647a4\nB               OBJ_cmp                                                ; +0x50, 0x8647a8\nLDR             R3, [R0,#4]                                            ; +0x54, 0x8647ac\nLDR             R0, [R1,#4]                                            ; +0x58, 0x8647b0\nRSB             R0, R0, R3                                             ; +0x5c, 0x8647b4\nBX              LR                                                     ; +0x60, 0x8647b8\nMOV             R0, R2                                                 ; +0x64, 0x8647bc\nBX              LR                                                     ; +0x68, 0x8647c0\nMOV             R0, #0xFFFFFFFF                                        ; +0x6c, 0x8647c4\nBX              LR                                                     ; +0x70, 0x8647c8", "xrefs": ["X509_ALGOR_cmp @ 0x7ca970", "OTHERNAME_cmp @ 0x856dac", "GENERAL_NAME_cmp @ 0x856e38", "<???> @ 0x5f1dc"], "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"}