{"type": "func", "start": 8280412, "end": 8280528, "name": "EC_GROUP_get_basis_type", "pseudocode": "// \n// EC_GROUP_get_basis_type from 0x7e595c to 0x7e59d0 (116 bytes)\n// \n// 3 xrefs:\n// > EC_GROUP_get_ecparameters @ 0x7e5dac\n// > ECPKParameters_print @ 0x7ef8cc\n// > <???> @ 0x6124c\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 EC_GROUP_get_basis_type(_DWORD *a1)\n{\n  int v2; // r0\n  int result; // r0\n\n  v2 = EC_GROUP_method_of();\n  if ( EC_METHOD_get_field_type(v2) != 407 )\n    return 0;\n  result = a1[10];\n  if ( result )\n  {\n    result = a1[11];\n    if ( result )\n    {\n      if ( a1[12] )\n      {\n        result = a1[13];\n        if ( result )\n        {\n          if ( a1[14] )\n            return 0;\n          else\n            return 683;\n        }\n      }\n      else\n      {\n        return 682;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_get_basis_type from 0x7e595c to 0x7e59d0 (116 bytes)\n; \n; 3 xrefs:\n; > EC_GROUP_get_ecparameters @ 0x7e5dac\n; > ECPKParameters_print @ 0x7ef8cc\n; > <???> @ 0x6124c\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\nPUSH            {R4,LR}                                                ; +0x0, 0x7e595c\nMOV             R4, R0                                                 ; +0x4, 0x7e5960\nBL              EC_GROUP_method_of                                     ; +0x8, 0x7e5964\nBL              EC_METHOD_get_field_type                               ; +0xc, 0x7e5968\nLDR             R3, =0x197                                             ; +0x10, 0x7e596c\nCMP             R0, R3                                                 ; +0x14, 0x7e5970\nBEQ             loc_7E5980                                             ; +0x18, 0x7e5974\nMOV             R0, #0                                                 ; +0x1c, 0x7e5978\nPOP             {R4,PC}                                                ; +0x20, 0x7e597c\nLDR             R0, [R4,#0x28]                                         ; +0x24, 0x7e5980\nCMP             R0, #0                                                 ; +0x28, 0x7e5984\nPOPEQ           {R4,PC}                                                ; +0x2c, 0x7e5988\nLDR             R0, [R4,#0x2C]                                         ; +0x30, 0x7e598c\nCMP             R0, #0                                                 ; +0x34, 0x7e5990\nPOPEQ           {R4,PC}                                                ; +0x38, 0x7e5994\nLDR             R3, [R4,#0x30]                                         ; +0x3c, 0x7e5998\nCMP             R3, #0                                                 ; +0x40, 0x7e599c\nBEQ             loc_7E59C8                                             ; +0x44, 0x7e59a0\nLDR             R0, [R4,#0x34]                                         ; +0x48, 0x7e59a4\nCMP             R0, #0                                                 ; +0x4c, 0x7e59a8\nPOPEQ           {R4,PC}                                                ; +0x50, 0x7e59ac\nLDR             R0, [R4,#0x38]                                         ; +0x54, 0x7e59b0\nLDR             R3, =0x2AB                                             ; +0x58, 0x7e59b4\nCMP             R0, #0                                                 ; +0x5c, 0x7e59b8\nMOVEQ           R0, R3                                                 ; +0x60, 0x7e59bc\nMOVNE           R0, #0                                                 ; +0x64, 0x7e59c0\nPOP             {R4,PC}                                                ; +0x68, 0x7e59c4\nLDR             R0, =0x2AA                                             ; +0x6c, 0x7e59c8\nPOP             {R4,PC}                                                ; +0x70, 0x7e59cc", "xrefs": ["EC_GROUP_get_ecparameters @ 0x7e5dac", "ECPKParameters_print @ 0x7ef8cc", "<???> @ 0x6124c"], "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"}