{"type": "func", "start": 8311020, "end": 8311276, "name": "EC_POINT_set_compressed_coordinates_GFp", "pseudocode": "// \n// EC_POINT_set_compressed_coordinates_GFp from 0x7ed0ec to 0x7ed1ec (256 bytes)\n// \n// 2 xrefs:\n// > ec_GFp_simple_oct2point @ 0x7f2c70\n// > <???> @ 0x61bbc\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_GFp(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, 125, 66, \"crypto/ec/ec_oct.c\", 30);\n      return 0;\n    }\n    if ( v2 != (_DWORD *)*a2 )\n    {\nLABEL_3:\n      ERR_put_error(16, 125, 101, \"crypto/ec/ec_oct.c\", 35);\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_GFp from 0x7ed0ec to 0x7ed1ec (256 bytes)\n; \n; 2 xrefs:\n; > ec_GFp_simple_oct2point @ 0x7f2c70\n; > <???> @ 0x61bbc\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, 0x7ed0ec\nPUSH            {R4-R9,LR}                                             ; +0x4, 0x7ed0f0\nLDR             R5, [R12,#0x50]                                        ; +0x8, 0x7ed0f4\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7ed0f8\nCMP             R5, #0                                                 ; +0x10, 0x7ed0fc\nMOV             R4, R0                                                 ; +0x14, 0x7ed100\nMOV             LR, R1                                                 ; +0x18, 0x7ed104\nMOV             R8, R2                                                 ; +0x1c, 0x7ed108\nMOV             R9, R3                                                 ; +0x20, 0x7ed10c\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0x7ed110\nBEQ             loc_7ED198                                             ; +0x28, 0x7ed114\nLDR             R6, [R1]                                               ; +0x2c, 0x7ed118\nCMP             R12, R6                                                ; +0x30, 0x7ed11c\nBEQ             loc_7ED150                                             ; +0x34, 0x7ed120\nMOV             R3, #0x23 ; '#'                                        ; +0x38, 0x7ed124\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0x7ed128\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED144); \"crypto/ec/ec_oct.c\" ; +0x40, 0x7ed12c\nMOV             R0, #0x10                                              ; +0x44, 0x7ed130\nMOV             R1, #0x7D ; '}'                                        ; +0x48, 0x7ed134\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0x7ed138\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0x7ed13c\nBL              ERR_put_error                                          ; +0x54, 0x7ed140\nMOV             R0, #0                                                 ; +0x58, 0x7ed144\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7ed148\nPOP             {R4-R9,PC}                                             ; +0x60, 0x7ed14c\nLDR             R6, [R12]                                              ; +0x64, 0x7ed150\nTST             R6, #1                                                 ; +0x68, 0x7ed154\nBEQ             loc_7ED1B4                                             ; +0x6c, 0x7ed158\nLDR             R2, [R12,#4]                                           ; +0x70, 0x7ed15c\nLDR             R3, =0x196                                             ; +0x74, 0x7ed160\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0x7ed164\nCMP             R2, R3                                                 ; +0x7c, 0x7ed168\nMOV             R0, R4                                                 ; +0x80, 0x7ed16c\nMOV             R1, LR                                                 ; +0x84, 0x7ed170\nMOV             R2, R8                                                 ; +0x88, 0x7ed174\nMOV             R3, R9                                                 ; +0x8c, 0x7ed178\nBEQ             loc_7ED18C                                             ; +0x90, 0x7ed17c\nADD             SP, SP, #0xC                                           ; +0x94, 0x7ed180\nPOP             {R4-R9,LR}                                             ; +0x98, 0x7ed184\nB               ec_GF2m_simple_set_compressed_coordinates              ; +0x9c, 0x7ed188\nADD             SP, SP, #0xC                                           ; +0xa0, 0x7ed18c\nPOP             {R4-R9,LR}                                             ; +0xa4, 0x7ed190\nB               ec_GFp_simple_set_compressed_coordinates               ; +0xa8, 0x7ed194\nLDR             R3, [R12]                                              ; +0xac, 0x7ed198\nTST             R3, #1                                                 ; +0xb0, 0x7ed19c\nBEQ             loc_7ED1C8                                             ; +0xb4, 0x7ed1a0\nLDR             R3, [R1]                                               ; +0xb8, 0x7ed1a4\nCMP             R12, R3                                                ; +0xbc, 0x7ed1a8\nBNE             loc_7ED124                                             ; +0xc0, 0x7ed1ac\nB               loc_7ED15C                                             ; +0xc4, 0x7ed1b0\nMOV             R12, R5                                                ; +0xc8, 0x7ed1b4\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0x7ed1b8\nADD             SP, SP, #0xC                                           ; +0xd0, 0x7ed1bc\nPOP             {R4-R9,LR}                                             ; +0xd4, 0x7ed1c0\nBX              R12                                                    ; +0xd8, 0x7ed1c4\nMOV             R3, #0x1E                                              ; +0xdc, 0x7ed1c8\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe0, 0x7ed1cc\nLDR             R3, =(aCryptoEcEcOctC - 0x7ED1E8); \"crypto/ec/ec_oct.c\" ; +0xe4, 0x7ed1d0\nMOV             R0, #0x10                                              ; +0xe8, 0x7ed1d4\nMOV             R1, #0x7D ; '}'                                        ; +0xec, 0x7ed1d8\nMOV             R2, #0x42 ; 'B'                                        ; +0xf0, 0x7ed1dc\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf4, 0x7ed1e0\nBL              ERR_put_error                                          ; +0xf8, 0x7ed1e4\nB               loc_7ED144                                             ; +0xfc, 0x7ed1e8", "xrefs": ["ec_GFp_simple_oct2point @ 0x7f2c70", "<???> @ 0x61bbc"], "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"}