; ; EC_GROUP_get_trinomial_basis from 0x7e59dc to 0x7e5a7c (160 bytes) ; ; 2 xrefs: ; > EC_GROUP_get_ecparameters @ 0x7e6474 ; > @ 0x6127c ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; SUBS R3, R0, #0 ; +0x0, 0x7e59dc BEQ loc_7E5A6C ; +0x4, 0x7e59e0 PUSH {R4,R5,LR} ; +0x8, 0x7e59e4 SUB SP, SP, #0xC ; +0xc, 0x7e59e8 MOV R4, R3 ; +0x10, 0x7e59ec MOV R5, R1 ; +0x14, 0x7e59f0 BL EC_GROUP_method_of ; +0x18, 0x7e59f4 BL EC_METHOD_get_field_type ; +0x1c, 0x7e59f8 LDR R3, =0x197 ; +0x20, 0x7e59fc CMP R0, R3 ; +0x24, 0x7e5a00 BNE loc_7E5A40 ; +0x28, 0x7e5a04 LDR R3, [R4,#0x28] ; +0x2c, 0x7e5a08 CMP R3, #0 ; +0x30, 0x7e5a0c BEQ loc_7E5A40 ; +0x34, 0x7e5a10 LDR R3, [R4,#0x2C] ; +0x38, 0x7e5a14 CMP R3, #0 ; +0x3c, 0x7e5a18 BEQ loc_7E5A40 ; +0x40, 0x7e5a1c LDR R2, [R4,#0x30] ; +0x44, 0x7e5a20 CMP R2, #0 ; +0x48, 0x7e5a24 BNE loc_7E5A40 ; +0x4c, 0x7e5a28 CMP R5, #0 ; +0x50, 0x7e5a2c BEQ loc_7E5A74 ; +0x54, 0x7e5a30 STR R3, [R5] ; +0x58, 0x7e5a34 MOV R0, #1 ; +0x5c, 0x7e5a38 B loc_7E5A64 ; +0x60, 0x7e5a3c MOV R3, #0x30 ; '0' ; +0x64, 0x7e5a40 STR R3, [SP,#0x18+var_18] ; +0x68, 0x7e5a44 LDR R3, =(aCryptoEcEcAsn1 - 0x7E5A60); "crypto/ec/ec_asn1.c" ; +0x6c, 0x7e5a48 MOV R0, #0x10 ; +0x70, 0x7e5a4c MOV R1, #0xC2 ; +0x74, 0x7e5a50 MOV R2, #0x42 ; 'B' ; +0x78, 0x7e5a54 ADD R3, PC, R3; "crypto/ec/ec_asn1.c" ; +0x7c, 0x7e5a58 BL ERR_put_error ; +0x80, 0x7e5a5c MOV R0, #0 ; +0x84, 0x7e5a60 ADD SP, SP, #0xC ; +0x88, 0x7e5a64 POP {R4,R5,PC} ; +0x8c, 0x7e5a68 MOV R0, R3 ; +0x90, 0x7e5a6c BX LR ; +0x94, 0x7e5a70 MOV R0, #1 ; +0x98, 0x7e5a74 B loc_7E5A64 ; +0x9c, 0x7e5a78