{"type": "func", "start": 8311288, "end": 8311540, "name": "EC_POINT_set_compressed_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_set_compressed_coordinates_GF2m from 0x7ed1f8 to 0x7ed2f4 (252 bytes)\n// \n// 2 xrefs:\n// > ec_GF2m_simple_oct2point @ 0x8896f0\n// > <???> @ 0x61bec\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_POINT_set_compressed_coordinates_GF2m(int a1, _DWORD *a2)\n{\n  _DWORD *v2; // r12\n\n  v2 = *(_DWORD **)a1;\n  if ( *(_DWORD *)(*(_DWORD *)a1 + 80) )\n  {\n    if ( v2 != (_DWORD *)*a2 )\n      goto LABEL_3;\n    if ( (*v2 & 1) == 0 )\n      return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 80))(a1);\n  }\n  else\n  {\n    if ( (*v2 & 1) == 0 )\n    {\n      ERR_put_error(16, 186, 66, \"crypto/ec/ec_oct.c\", 66);\n      return 0;\n    }\n    if ( v2 != (_DWORD *)*a2 )\n    {\nLABEL_3:\n      ERR_put_error(16, 186, 101, \"crypto/ec/ec_oct.c\", 71);\n      return 0;\n    }\n  }\n  if ( v2[1] == 406 )\n    return ec_GFp_simple_set_compressed_coordinates();\n  else\n    return ec_GF2m_simple_set_compressed_coordinates();\n}", "assembly": "; \n; EC_POINT_set_compressed_coordinates_GF2m from 0x7ed1f8 to 0x7ed2f4 (252 bytes)\n; \n; 2 xrefs:\n; > ec_GF2m_simple_oct2point @ 0x8896f0\n; > <???> @ 0x61bec\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\nLDR             R12, [R0]                                              ; +0x0, 0x7ed1f8\nPUSH            {R4-R9,LR}                                             ; +0x4, 0x7ed1fc\nLDR             R5, [R12,#0x50]                                        ; +0x8, 0x7ed200\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7ed204\nCMP             R5, #0                                                 ; +0x10, 0x7ed208\nMOV             R4, R0                                                 ; +0x14, 0x7ed20c\nMOV             LR, R1                                                 ; +0x18, 0x7ed210\nMOV             R8, R2                                                 ; +0x1c, 0x7ed214\nMOV             R9, R3                                                 ; +0x20, 0x7ed218\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0x7ed21c\nBEQ             loc_7ED2A4                                             ; +0x28, 0x7ed220\nLDR             R6, [R1]                                               ; +0x2c, 0x7ed224\nCMP             R12, R6                                                ; +0x30, 0x7ed228\nBEQ             loc_7ED25C                                             ; +0x34, 0x7ed22c\nMOV             R3, #0x47 ; 'G'                                        ; +0x38, 0x7ed230\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0x7ed234\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED250); \"crypto/ec/ec_oct.c\" ; +0x40, 0x7ed238\nMOV             R0, #0x10                                              ; +0x44, 0x7ed23c\nMOV             R1, #0xBA                                              ; +0x48, 0x7ed240\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0x7ed244\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0x7ed248\nBL              ERR_put_error                                          ; +0x54, 0x7ed24c\nMOV             R0, #0                                                 ; +0x58, 0x7ed250\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7ed254\nPOP             {R4-R9,PC}                                             ; +0x60, 0x7ed258\nLDR             R6, [R12]                                              ; +0x64, 0x7ed25c\nTST             R6, #1                                                 ; +0x68, 0x7ed260\nBEQ             loc_7ED2C0                                             ; +0x6c, 0x7ed264\nLDR             R2, [R12,#4]                                           ; +0x70, 0x7ed268\nLDR             R3, =0x196                                             ; +0x74, 0x7ed26c\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0x7ed270\nCMP             R2, R3                                                 ; +0x7c, 0x7ed274\nMOV             R0, R4                                                 ; +0x80, 0x7ed278\nMOV             R1, LR                                                 ; +0x84, 0x7ed27c\nMOV             R2, R8                                                 ; +0x88, 0x7ed280\nMOV             R3, R9                                                 ; +0x8c, 0x7ed284\nBEQ             loc_7ED298                                             ; +0x90, 0x7ed288\nADD             SP, SP, #0xC                                           ; +0x94, 0x7ed28c\nPOP             {R4-R9,LR}                                             ; +0x98, 0x7ed290\nB               ec_GF2m_simple_set_compressed_coordinates              ; +0x9c, 0x7ed294\nADD             SP, SP, #0xC                                           ; +0xa0, 0x7ed298\nPOP             {R4-R9,LR}                                             ; +0xa4, 0x7ed29c\nB               ec_GFp_simple_set_compressed_coordinates               ; +0xa8, 0x7ed2a0\nLDR             R3, [R12]                                              ; +0xac, 0x7ed2a4\nTST             R3, #1                                                 ; +0xb0, 0x7ed2a8\nBEQ             loc_7ED2D4                                             ; +0xb4, 0x7ed2ac\nLDR             R3, [R1]                                               ; +0xb8, 0x7ed2b0\nCMP             R12, R3                                                ; +0xbc, 0x7ed2b4\nBNE             loc_7ED230                                             ; +0xc0, 0x7ed2b8\nB               loc_7ED268                                             ; +0xc4, 0x7ed2bc\nMOV             R12, R5                                                ; +0xc8, 0x7ed2c0\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0x7ed2c4\nADD             SP, SP, #0xC                                           ; +0xd0, 0x7ed2c8\nPOP             {R4-R9,LR}                                             ; +0xd4, 0x7ed2cc\nBX              R12                                                    ; +0xd8, 0x7ed2d0\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED2F0); \"crypto/ec/ec_oct.c\" ; +0xdc, 0x7ed2d4\nMOV             R2, #0x42 ; 'B'                                        ; +0xe0, 0x7ed2d8\nSTR             R2, [SP,#0xC+var_C]                                    ; +0xe4, 0x7ed2dc\nMOV             R0, #0x10                                              ; +0xe8, 0x7ed2e0\nMOV             R1, #0xBA                                              ; +0xec, 0x7ed2e4\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf0, 0x7ed2e8\nBL              ERR_put_error                                          ; +0xf4, 0x7ed2ec\nB               loc_7ED250                                             ; +0xf8, 0x7ed2f0", "xrefs": ["ec_GF2m_simple_oct2point @ 0x8896f0", "<???> @ 0x61bec"], "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"}