{"type": "func", "start": 16823080, "end": 16823196, "name": "EC_GROUP_get_basis_type", "pseudocode": "// \n// EC_GROUP_get_basis_type from 0x100b328 to 0x100b39c (116 bytes)\n// \n// 3 xrefs:\n// > EC_GROUP_get_ecparameters @ 0x100b6f8\n// > ECPKParameters_print @ 0x10144fc\n// > <???> @ 0xb1fa0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:15:59 +0000\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 0x100b328 to 0x100b39c (116 bytes)\n; \n; 3 xrefs:\n; > EC_GROUP_get_ecparameters @ 0x100b6f8\n; > ECPKParameters_print @ 0x10144fc\n; > <???> @ 0xb1fa0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:15:59 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x100b328\nMOV             X29, SP                                                ; +0x4, 0x100b32c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x100b330\nMOV             X19, X0                                                ; +0xc, 0x100b334\nBL              EC_GROUP_method_of                                     ; +0x10, 0x100b338\nBL              EC_METHOD_get_field_type                               ; +0x14, 0x100b33c\nCMP             W0, #0x197                                             ; +0x18, 0x100b340\nMOV             W0, #0                                                 ; +0x1c, 0x100b344\nB.EQ            loc_100B358                                            ; +0x20, 0x100b348\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x24, 0x100b34c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x28, 0x100b350\nRET                                                                    ; +0x2c, 0x100b354\nLDR             W0, [X19,#0x48]                                        ; +0x30, 0x100b358\nCBZ             W0, loc_100B34C                                        ; +0x34, 0x100b35c\nLDR             W0, [X19,#0x4C]                                        ; +0x38, 0x100b360\nCBZ             W0, loc_100B34C                                        ; +0x3c, 0x100b364\nLDR             W0, [X19,#0x50]                                        ; +0x40, 0x100b368\nCBZ             W0, loc_100B394                                        ; +0x44, 0x100b36c\nLDR             W0, [X19,#0x54]                                        ; +0x48, 0x100b370\nCBZ             W0, loc_100B34C                                        ; +0x4c, 0x100b374\nLDR             W0, [X19,#0x58]                                        ; +0x50, 0x100b378\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0x100b37c\nCMP             W0, WZR                                                ; +0x58, 0x100b380\nMOV             W0, #0x2AB                                             ; +0x5c, 0x100b384\nCSEL            W0, WZR, W0, NE                                        ; +0x60, 0x100b388\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0x100b38c\nRET                                                                    ; +0x68, 0x100b390\nMOV             W0, #0x2AA                                             ; +0x6c, 0x100b394\nB               loc_100B34C                                            ; +0x70, 0x100b398", "xrefs": ["EC_GROUP_get_ecparameters @ 0x100b6f8", "ECPKParameters_print @ 0x10144fc", "<???> @ 0xb1fa0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}