{"type": "func", "start": 14725068, "end": 14725164, "name": "ASN1_ENUMERATED_get", "pseudocode": "// \n// ASN1_ENUMERATED_get from 0xe0afcc to 0xe0b02c (96 bytes)\n// \n// 7 xrefs:\n// > OCSP_response_status @ 0xdc37f0\n// > OCSP_single_get0_status @ 0xdc3a04\n// > OCSP_RESPONSE_print @ 0xdc4e50\n// > OCSP_RESPONSE_print @ 0xdc520c\n// > sub_DF076C @ 0xdf0a7c\n// > i2s_ASN1_ENUMERATED_TABLE @ 0xe7015c\n// > <???> @ 0x733c8\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\nunsigned __int64 __fastcall ASN1_ENUMERATED_get(unsigned __int64 result)\n{\n  int *v1; // x1\n  unsigned __int64 v2; // [xsp+18h] [xbp+18h] BYREF\n\n  v1 = (int *)result;\n  if ( result )\n  {\n    if ( (*(_DWORD *)(result + 4) & 0xFFFFFEFF) != 0xA )\n      return -1;\n    result = 0xFFFFFFFFLL;\n    if ( *v1 > 8 )\n      return result;\n    if ( (unsigned int)ASN1_ENUMERATED_get_int64(&v2, v1) )\n      return v2;\n    else\n      return -1;\n  }\n  return result;\n}", "assembly": "; \n; ASN1_ENUMERATED_get from 0xe0afcc to 0xe0b02c (96 bytes)\n; \n; 7 xrefs:\n; > OCSP_response_status @ 0xdc37f0\n; > OCSP_single_get0_status @ 0xdc3a04\n; > OCSP_RESPONSE_print @ 0xdc4e50\n; > OCSP_RESPONSE_print @ 0xdc520c\n; > sub_DF076C @ 0xdf0a7c\n; > i2s_ASN1_ENUMERATED_TABLE @ 0xe7015c\n; > <???> @ 0x733c8\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xe0afcc\nMOV             X1, X0                                                 ; +0x4, 0xe0afd0\nMOV             X29, SP                                                ; +0x8, 0xe0afd4\nCBZ             X0, loc_E0B01C                                         ; +0xc, 0xe0afd8\nLDR             W0, [X0,#4]                                            ; +0x10, 0xe0afdc\nAND             W0, W0, #0xFFFFFEFF                                    ; +0x14, 0xe0afe0\nCMP             W0, #0xA                                               ; +0x18, 0xe0afe4\nB.NE            loc_E0B024                                             ; +0x1c, 0xe0afe8\nLDR             W2, [X1]                                               ; +0x20, 0xe0afec\nMOV             X0, #0xFFFFFFFF                                        ; +0x24, 0xe0aff0\nCMP             W2, #8                                                 ; +0x28, 0xe0aff4\nB.LE            loc_E0B004                                             ; +0x2c, 0xe0aff8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x30, 0xe0affc\nRET                                                                    ; +0x34, 0xe0b000\nADD             X0, X29, #0x20+var_8                                   ; +0x38, 0xe0b004\nBL              ASN1_ENUMERATED_get_int64                              ; +0x3c, 0xe0b008\nCBZ             W0, loc_E0B024                                         ; +0x40, 0xe0b00c\nLDR             X0, [X29,#0x20+var_8]                                  ; +0x44, 0xe0b010\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x48, 0xe0b014\nRET                                                                    ; +0x4c, 0xe0b018\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x50, 0xe0b01c\nRET                                                                    ; +0x54, 0xe0b020\nMOV             X0, #0xFFFFFFFFFFFFFFFF                                ; +0x58, 0xe0b024\nB               loc_E0AFFC                                             ; +0x5c, 0xe0b028", "xrefs": ["OCSP_response_status @ 0xdc37f0", "OCSP_single_get0_status @ 0xdc3a04", "OCSP_RESPONSE_print @ 0xdc4e50", "OCSP_RESPONSE_print @ 0xdc520c", "sub_DF076C @ 0xdf0a7c", "i2s_ASN1_ENUMERATED_TABLE @ 0xe7015c", "<???> @ 0x733c8"], "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"}