{"type": "func", "start": 10493432, "end": 10493684, "name": "EC_POINT_set_compressed_coordinates_GF2m", "pseudocode": "// \n// EC_POINT_set_compressed_coordinates_GF2m from 0xa01df8 to 0xa01ef4 (252 bytes)\n// \n// 2 xrefs:\n// > ec_GF2m_simple_oct2point @ 0xa9e2f0\n// > <???> @ 0x7b66c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:38 +0000\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 0xa01df8 to 0xa01ef4 (252 bytes)\n; \n; 2 xrefs:\n; > ec_GF2m_simple_oct2point @ 0xa9e2f0\n; > <???> @ 0x7b66c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:38 +0000\n; \nLDR             R12, [R0]                                              ; +0x0, 0xa01df8\nPUSH            {R4-R9,LR}                                             ; +0x4, 0xa01dfc\nLDR             R5, [R12,#0x50]                                        ; +0x8, 0xa01e00\nSUB             SP, SP, #0xC                                           ; +0xc, 0xa01e04\nCMP             R5, #0                                                 ; +0x10, 0xa01e08\nMOV             R4, R0                                                 ; +0x14, 0xa01e0c\nMOV             LR, R1                                                 ; +0x18, 0xa01e10\nMOV             R8, R2                                                 ; +0x1c, 0xa01e14\nMOV             R9, R3                                                 ; +0x20, 0xa01e18\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0xa01e1c\nBEQ             loc_A01EA4                                             ; +0x28, 0xa01e20\nLDR             R6, [R1]                                               ; +0x2c, 0xa01e24\nCMP             R12, R6                                                ; +0x30, 0xa01e28\nBEQ             loc_A01E5C                                             ; +0x34, 0xa01e2c\nMOV             R3, #0x47 ; 'G'                                        ; +0x38, 0xa01e30\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0xa01e34\nLDR             R3, =(aCryptoEcEcOctC - 0xA01E50); \"crypto/ec/ec_oct.c\" ; +0x40, 0xa01e38\nMOV             R0, #0x10                                              ; +0x44, 0xa01e3c\nMOV             R1, #0xBA                                              ; +0x48, 0xa01e40\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0xa01e44\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0xa01e48\nBL              ERR_put_error                                          ; +0x54, 0xa01e4c\nMOV             R0, #0                                                 ; +0x58, 0xa01e50\nADD             SP, SP, #0xC                                           ; +0x5c, 0xa01e54\nPOP             {R4-R9,PC}                                             ; +0x60, 0xa01e58\nLDR             R6, [R12]                                              ; +0x64, 0xa01e5c\nTST             R6, #1                                                 ; +0x68, 0xa01e60\nBEQ             loc_A01EC0                                             ; +0x6c, 0xa01e64\nLDR             R2, [R12,#4]                                           ; +0x70, 0xa01e68\nLDR             R3, =0x196                                             ; +0x74, 0xa01e6c\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0xa01e70\nCMP             R2, R3                                                 ; +0x7c, 0xa01e74\nMOV             R0, R4                                                 ; +0x80, 0xa01e78\nMOV             R1, LR                                                 ; +0x84, 0xa01e7c\nMOV             R2, R8                                                 ; +0x88, 0xa01e80\nMOV             R3, R9                                                 ; +0x8c, 0xa01e84\nBEQ             loc_A01E98                                             ; +0x90, 0xa01e88\nADD             SP, SP, #0xC                                           ; +0x94, 0xa01e8c\nPOP             {R4-R9,LR}                                             ; +0x98, 0xa01e90\nB               ec_GF2m_simple_set_compressed_coordinates              ; +0x9c, 0xa01e94\nADD             SP, SP, #0xC                                           ; +0xa0, 0xa01e98\nPOP             {R4-R9,LR}                                             ; +0xa4, 0xa01e9c\nB               ec_GFp_simple_set_compressed_coordinates               ; +0xa8, 0xa01ea0\nLDR             R3, [R12]                                              ; +0xac, 0xa01ea4\nTST             R3, #1                                                 ; +0xb0, 0xa01ea8\nBEQ             loc_A01ED4                                             ; +0xb4, 0xa01eac\nLDR             R3, [R1]                                               ; +0xb8, 0xa01eb0\nCMP             R12, R3                                                ; +0xbc, 0xa01eb4\nBNE             loc_A01E30                                             ; +0xc0, 0xa01eb8\nB               loc_A01E68                                             ; +0xc4, 0xa01ebc\nMOV             R12, R5                                                ; +0xc8, 0xa01ec0\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0xa01ec4\nADD             SP, SP, #0xC                                           ; +0xd0, 0xa01ec8\nPOP             {R4-R9,LR}                                             ; +0xd4, 0xa01ecc\nBX              R12                                                    ; +0xd8, 0xa01ed0\nLDR             R3, =(aCryptoEcEcOctC - 0xA01EF0); \"crypto/ec/ec_oct.c\" ; +0xdc, 0xa01ed4\nMOV             R2, #0x42 ; 'B'                                        ; +0xe0, 0xa01ed8\nSTR             R2, [SP,#0xC+var_C]                                    ; +0xe4, 0xa01edc\nMOV             R0, #0x10                                              ; +0xe8, 0xa01ee0\nMOV             R1, #0xBA                                              ; +0xec, 0xa01ee4\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf0, 0xa01ee8\nBL              ERR_put_error                                          ; +0xf4, 0xa01eec\nB               loc_A01E50                                             ; +0xf8, 0xa01ef0", "xrefs": ["ec_GF2m_simple_oct2point @ 0xa9e2f0", "<???> @ 0x7b66c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}