; ; EC_POINT_point2oct from 0x7ed300 to 0x7ed40c (268 bytes) ; ; 6 xrefs: ; > i2o_ECPublicKey @ 0x7e7c5c ; > i2o_ECPublicKey @ 0x7e7c98 ; > i2o_ECPublicKey @ 0x7e7cf4 ; > EC_POINT_point2buf @ 0x7ed54c ; > EC_POINT_point2buf @ 0x7ed59c ; > @ 0x6153c ; ; 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 ; LDR R12, [R0] ; +0x0, 0x7ed300 PUSH {R4-R10,LR} ; +0x4, 0x7ed304 LDR R5, [R12,#0x54] ; +0x8, 0x7ed308 SUB SP, SP, #8 ; +0xc, 0x7ed30c CMP R5, #0 ; +0x10, 0x7ed310 MOV R4, R0 ; +0x14, 0x7ed314 MOV LR, R1 ; +0x18, 0x7ed318 MOV R9, R2 ; +0x1c, 0x7ed31c MOV R10, R3 ; +0x20, 0x7ed320 LDR R7, [SP,#8+arg_0] ; +0x24, 0x7ed324 LDR R8, [SP,#8+arg_4] ; +0x28, 0x7ed328 BEQ loc_7ED3B4 ; +0x2c, 0x7ed32c LDR R6, [R1] ; +0x30, 0x7ed330 CMP R12, R6 ; +0x34, 0x7ed334 BEQ loc_7ED368 ; +0x38, 0x7ed338 MOV R3, #0x61 ; 'a' ; +0x3c, 0x7ed33c STR R3, [SP,#8+var_8] ; +0x40, 0x7ed340 LDR R3, =(aCryptoEcEcOctC - 0x7ED35C); "crypto/ec/ec_oct.c" ; +0x44, 0x7ed344 MOV R0, #0x10 ; +0x48, 0x7ed348 MOV R1, #0x7B ; '{' ; +0x4c, 0x7ed34c MOV R2, #0x65 ; 'e' ; +0x50, 0x7ed350 ADD R3, PC, R3; "crypto/ec/ec_oct.c" ; +0x54, 0x7ed354 BL ERR_put_error ; +0x58, 0x7ed358 MOV R0, #0 ; +0x5c, 0x7ed35c ADD SP, SP, #8 ; +0x60, 0x7ed360 POP {R4-R10,PC} ; +0x64, 0x7ed364 LDR R6, [R12] ; +0x68, 0x7ed368 TST R6, #1 ; +0x6c, 0x7ed36c BEQ loc_7ED3D0 ; +0x70, 0x7ed370 LDR R2, [R12,#4] ; +0x74, 0x7ed374 LDR R3, =0x196 ; +0x78, 0x7ed378 STR R7, [SP,#8+arg_0] ; +0x7c, 0x7ed37c CMP R2, R3 ; +0x80, 0x7ed380 STR R8, [SP,#8+arg_4] ; +0x84, 0x7ed384 MOV R0, R4 ; +0x88, 0x7ed388 MOV R1, LR ; +0x8c, 0x7ed38c MOV R2, R9 ; +0x90, 0x7ed390 MOV R3, R10 ; +0x94, 0x7ed394 BEQ loc_7ED3A8 ; +0x98, 0x7ed398 ADD SP, SP, #8 ; +0x9c, 0x7ed39c POP {R4-R10,LR} ; +0xa0, 0x7ed3a0 B ec_GF2m_simple_point2oct ; +0xa4, 0x7ed3a4 ADD SP, SP, #8 ; +0xa8, 0x7ed3a8 POP {R4-R10,LR} ; +0xac, 0x7ed3ac B ec_GFp_simple_point2oct ; +0xb0, 0x7ed3b0 LDR R3, [R12] ; +0xb4, 0x7ed3b4 TST R3, #1 ; +0xb8, 0x7ed3b8 BEQ loc_7ED3E8 ; +0xbc, 0x7ed3bc LDR R3, [R1] ; +0xc0, 0x7ed3c0 CMP R12, R3 ; +0xc4, 0x7ed3c4 BNE loc_7ED33C ; +0xc8, 0x7ed3c8 B loc_7ED374 ; +0xcc, 0x7ed3cc MOV R12, R5 ; +0xd0, 0x7ed3d0 STR R7, [SP,#8+arg_0] ; +0xd4, 0x7ed3d4 STR R8, [SP,#8+arg_4] ; +0xd8, 0x7ed3d8 ADD SP, SP, #8 ; +0xdc, 0x7ed3dc POP {R4-R10,LR} ; +0xe0, 0x7ed3e0 BX R12 ; +0xe4, 0x7ed3e4 MOV R3, #0x5D ; ']' ; +0xe8, 0x7ed3e8 STR R3, [SP,#8+var_8] ; +0xec, 0x7ed3ec LDR R3, =(aCryptoEcEcOctC - 0x7ED408); "crypto/ec/ec_oct.c" ; +0xf0, 0x7ed3f0 MOV R0, #0x10 ; +0xf4, 0x7ed3f4 MOV R1, #0x7B ; '{' ; +0xf8, 0x7ed3f8 MOV R2, #0x42 ; 'B' ; +0xfc, 0x7ed3fc ADD R3, PC, R3; "crypto/ec/ec_oct.c" ; +0x100, 0x7ed400 BL ERR_put_error ; +0x104, 0x7ed404 B loc_7ED35C ; +0x108, 0x7ed408