{"type": "func", "start": 8280540, "end": 8280700, "name": "EC_GROUP_get_trinomial_basis", "pseudocode": "// \n// EC_GROUP_get_trinomial_basis from 0x7e59dc to 0x7e5a7c (160 bytes)\n// \n// 2 xrefs:\n// > EC_GROUP_get_ecparameters @ 0x7e6474\n// > <???> @ 0x6127c\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_trinomial_basis(_DWORD *a1, _DWORD *a2)\n{\n  int v4; // r0\n  int v5; // r3\n\n  if ( !a1 )\n    return 0;\n  v4 = EC_GROUP_method_of();\n  if ( EC_METHOD_get_field_type(v4) == 407 && a1[10] && (v5 = a1[11]) != 0 && !a1[12] )\n  {\n    if ( a2 )\n      *a2 = v5;\n    return 1;\n  }\n  else\n  {\n    ERR_put_error(16, 194, 66, \"crypto/ec/ec_asn1.c\", 48);\n    return 0;\n  }\n}", "assembly": "; \n; EC_GROUP_get_trinomial_basis from 0x7e59dc to 0x7e5a7c (160 bytes)\n; \n; 2 xrefs:\n; > EC_GROUP_get_ecparameters @ 0x7e6474\n; > <???> @ 0x6127c\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\nSUBS            R3, R0, #0                                             ; +0x0, 0x7e59dc\nBEQ             loc_7E5A6C                                             ; +0x4, 0x7e59e0\nPUSH            {R4,R5,LR}                                             ; +0x8, 0x7e59e4\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7e59e8\nMOV             R4, R3                                                 ; +0x10, 0x7e59ec\nMOV             R5, R1                                                 ; +0x14, 0x7e59f0\nBL              EC_GROUP_method_of                                     ; +0x18, 0x7e59f4\nBL              EC_METHOD_get_field_type                               ; +0x1c, 0x7e59f8\nLDR             R3, =0x197                                             ; +0x20, 0x7e59fc\nCMP             R0, R3                                                 ; +0x24, 0x7e5a00\nBNE             loc_7E5A40                                             ; +0x28, 0x7e5a04\nLDR             R3, [R4,#0x28]                                         ; +0x2c, 0x7e5a08\nCMP             R3, #0                                                 ; +0x30, 0x7e5a0c\nBEQ             loc_7E5A40                                             ; +0x34, 0x7e5a10\nLDR             R3, [R4,#0x2C]                                         ; +0x38, 0x7e5a14\nCMP             R3, #0                                                 ; +0x3c, 0x7e5a18\nBEQ             loc_7E5A40                                             ; +0x40, 0x7e5a1c\nLDR             R2, [R4,#0x30]                                         ; +0x44, 0x7e5a20\nCMP             R2, #0                                                 ; +0x48, 0x7e5a24\nBNE             loc_7E5A40                                             ; +0x4c, 0x7e5a28\nCMP             R5, #0                                                 ; +0x50, 0x7e5a2c\nBEQ             loc_7E5A74                                             ; +0x54, 0x7e5a30\nSTR             R3, [R5]                                               ; +0x58, 0x7e5a34\nMOV             R0, #1                                                 ; +0x5c, 0x7e5a38\nB               loc_7E5A64                                             ; +0x60, 0x7e5a3c\nMOV             R3, #0x30 ; '0'                                        ; +0x64, 0x7e5a40\nSTR             R3, [SP,#0x18+var_18]                                  ; +0x68, 0x7e5a44\nLDR             R3, =(aCryptoEcEcAsn1 - 0x7E5A60); \"crypto/ec/ec_asn1.c\" ; +0x6c, 0x7e5a48\nMOV             R0, #0x10                                              ; +0x70, 0x7e5a4c\nMOV             R1, #0xC2                                              ; +0x74, 0x7e5a50\nMOV             R2, #0x42 ; 'B'                                        ; +0x78, 0x7e5a54\nADD             R3, PC, R3; \"crypto/ec/ec_asn1.c\"                      ; +0x7c, 0x7e5a58\nBL              ERR_put_error                                          ; +0x80, 0x7e5a5c\nMOV             R0, #0                                                 ; +0x84, 0x7e5a60\nADD             SP, SP, #0xC                                           ; +0x88, 0x7e5a64\nPOP             {R4,R5,PC}                                             ; +0x8c, 0x7e5a68\nMOV             R0, R3                                                 ; +0x90, 0x7e5a6c\nBX              LR                                                     ; +0x94, 0x7e5a70\nMOV             R0, #1                                                 ; +0x98, 0x7e5a74\nB               loc_7E5A64                                             ; +0x9c, 0x7e5a78", "xrefs": ["EC_GROUP_get_ecparameters @ 0x7e6474", "<???> @ 0x6127c"], "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"}