{"type": "func", "start": 14208968, "end": 14209084, "name": "EC_GROUP_get_basis_type", "pseudocode": "// \n// EC_GROUP_get_basis_type from 0xd8cfc8 to 0xd8d03c (116 bytes)\n// \n// 3 xrefs:\n// > EC_GROUP_get_ecparameters @ 0xd8d398\n// > ECPKParameters_print @ 0xd9619c\n// > <???> @ 0x86118\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 EC_GROUP_get_basis_type(unsigned int *a1)\n{\n  __int64 v2; // x0\n  bool v3; // zf\n  __int64 result; // x0\n\n  v2 = EC_GROUP_method_of();\n  v3 = (unsigned int)EC_METHOD_get_field_type(v2) == 407;\n  result = 0;\n  if ( v3 )\n  {\n    result = a1[18];\n    if ( (_DWORD)result )\n    {\n      result = a1[19];\n      if ( (_DWORD)result )\n      {\n        if ( a1[20] )\n        {\n          result = a1[21];\n          if ( (_DWORD)result )\n          {\n            if ( a1[22] )\n              return 0;\n            else\n              return 683;\n          }\n        }\n        else\n        {\n          return 682;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EC_GROUP_get_basis_type from 0xd8cfc8 to 0xd8d03c (116 bytes)\n; \n; 3 xrefs:\n; > EC_GROUP_get_ecparameters @ 0xd8d398\n; > ECPKParameters_print @ 0xd9619c\n; > <???> @ 0x86118\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, 0xd8cfc8\nMOV             X29, SP                                                ; +0x4, 0xd8cfcc\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xd8cfd0\nMOV             X19, X0                                                ; +0xc, 0xd8cfd4\nBL              EC_GROUP_method_of                                     ; +0x10, 0xd8cfd8\nBL              EC_METHOD_get_field_type                               ; +0x14, 0xd8cfdc\nCMP             W0, #0x197                                             ; +0x18, 0xd8cfe0\nMOV             W0, #0                                                 ; +0x1c, 0xd8cfe4\nB.EQ            loc_D8CFF8                                             ; +0x20, 0xd8cfe8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x24, 0xd8cfec\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x28, 0xd8cff0\nRET                                                                    ; +0x2c, 0xd8cff4\nLDR             W0, [X19,#0x48]                                        ; +0x30, 0xd8cff8\nCBZ             W0, loc_D8CFEC                                         ; +0x34, 0xd8cffc\nLDR             W0, [X19,#0x4C]                                        ; +0x38, 0xd8d000\nCBZ             W0, loc_D8CFEC                                         ; +0x3c, 0xd8d004\nLDR             W0, [X19,#0x50]                                        ; +0x40, 0xd8d008\nCBZ             W0, loc_D8D034                                         ; +0x44, 0xd8d00c\nLDR             W0, [X19,#0x54]                                        ; +0x48, 0xd8d010\nCBZ             W0, loc_D8CFEC                                         ; +0x4c, 0xd8d014\nLDR             W0, [X19,#0x58]                                        ; +0x50, 0xd8d018\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0xd8d01c\nCMP             W0, WZR                                                ; +0x58, 0xd8d020\nMOV             W0, #0x2AB                                             ; +0x5c, 0xd8d024\nCSEL            W0, WZR, W0, NE                                        ; +0x60, 0xd8d028\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xd8d02c\nRET                                                                    ; +0x68, 0xd8d030\nMOV             W0, #0x2AA                                             ; +0x6c, 0xd8d034\nB               loc_D8CFEC                                             ; +0x70, 0xd8d038", "xrefs": ["EC_GROUP_get_ecparameters @ 0xd8d398", "ECPKParameters_print @ 0xd9619c", "<???> @ 0x86118"], "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"}