{"type": "func", "start": 10493164, "end": 10493420, "name": "EC_POINT_set_compressed_coordinates_GFp", "pseudocode": "// \n// EC_POINT_set_compressed_coordinates_GFp from 0xa01cec to 0xa01dec (256 bytes)\n// \n// 2 xrefs:\n// > ec_GFp_simple_oct2point @ 0xa07870\n// > <???> @ 0x7b63c\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_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 0xa01cec to 0xa01dec (256 bytes)\n; \n; 2 xrefs:\n; > ec_GFp_simple_oct2point @ 0xa07870\n; > <???> @ 0x7b63c\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, 0xa01cec\nPUSH            {R4-R9,LR}                                             ; +0x4, 0xa01cf0\nLDR             R5, [R12,#0x50]                                        ; +0x8, 0xa01cf4\nSUB             SP, SP, #0xC                                           ; +0xc, 0xa01cf8\nCMP             R5, #0                                                 ; +0x10, 0xa01cfc\nMOV             R4, R0                                                 ; +0x14, 0xa01d00\nMOV             LR, R1                                                 ; +0x18, 0xa01d04\nMOV             R8, R2                                                 ; +0x1c, 0xa01d08\nMOV             R9, R3                                                 ; +0x20, 0xa01d0c\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x24, 0xa01d10\nBEQ             loc_A01D98                                             ; +0x28, 0xa01d14\nLDR             R6, [R1]                                               ; +0x2c, 0xa01d18\nCMP             R12, R6                                                ; +0x30, 0xa01d1c\nBEQ             loc_A01D50                                             ; +0x34, 0xa01d20\nMOV             R3, #0x23 ; '#'                                        ; +0x38, 0xa01d24\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x3c, 0xa01d28\nLDR             R3, =(aCryptoEcEcOctC - 0xA01D44); \"crypto/ec/ec_oct.c\" ; +0x40, 0xa01d2c\nMOV             R0, #0x10                                              ; +0x44, 0xa01d30\nMOV             R1, #0x7D ; '}'                                        ; +0x48, 0xa01d34\nMOV             R2, #0x65 ; 'e'                                        ; +0x4c, 0xa01d38\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0x50, 0xa01d3c\nBL              ERR_put_error                                          ; +0x54, 0xa01d40\nMOV             R0, #0                                                 ; +0x58, 0xa01d44\nADD             SP, SP, #0xC                                           ; +0x5c, 0xa01d48\nPOP             {R4-R9,PC}                                             ; +0x60, 0xa01d4c\nLDR             R6, [R12]                                              ; +0x64, 0xa01d50\nTST             R6, #1                                                 ; +0x68, 0xa01d54\nBEQ             loc_A01DB4                                             ; +0x6c, 0xa01d58\nLDR             R2, [R12,#4]                                           ; +0x70, 0xa01d5c\nLDR             R3, =0x196                                             ; +0x74, 0xa01d60\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x78, 0xa01d64\nCMP             R2, R3                                                 ; +0x7c, 0xa01d68\nMOV             R0, R4                                                 ; +0x80, 0xa01d6c\nMOV             R1, LR                                                 ; +0x84, 0xa01d70\nMOV             R2, R8                                                 ; +0x88, 0xa01d74\nMOV             R3, R9                                                 ; +0x8c, 0xa01d78\nBEQ             loc_A01D8C                                             ; +0x90, 0xa01d7c\nADD             SP, SP, #0xC                                           ; +0x94, 0xa01d80\nPOP             {R4-R9,LR}                                             ; +0x98, 0xa01d84\nB               ec_GF2m_simple_set_compressed_coordinates              ; +0x9c, 0xa01d88\nADD             SP, SP, #0xC                                           ; +0xa0, 0xa01d8c\nPOP             {R4-R9,LR}                                             ; +0xa4, 0xa01d90\nB               ec_GFp_simple_set_compressed_coordinates               ; +0xa8, 0xa01d94\nLDR             R3, [R12]                                              ; +0xac, 0xa01d98\nTST             R3, #1                                                 ; +0xb0, 0xa01d9c\nBEQ             loc_A01DC8                                             ; +0xb4, 0xa01da0\nLDR             R3, [R1]                                               ; +0xb8, 0xa01da4\nCMP             R12, R3                                                ; +0xbc, 0xa01da8\nBNE             loc_A01D24                                             ; +0xc0, 0xa01dac\nB               loc_A01D5C                                             ; +0xc4, 0xa01db0\nMOV             R12, R5                                                ; +0xc8, 0xa01db4\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0xcc, 0xa01db8\nADD             SP, SP, #0xC                                           ; +0xd0, 0xa01dbc\nPOP             {R4-R9,LR}                                             ; +0xd4, 0xa01dc0\nBX              R12                                                    ; +0xd8, 0xa01dc4\nMOV             R3, #0x1E                                              ; +0xdc, 0xa01dc8\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe0, 0xa01dcc\nLDR             R3, =(aCryptoEcEcOctC - 0xA01DE8); \"crypto/ec/ec_oct.c\" ; +0xe4, 0xa01dd0\nMOV             R0, #0x10                                              ; +0xe8, 0xa01dd4\nMOV             R1, #0x7D ; '}'                                        ; +0xec, 0xa01dd8\nMOV             R2, #0x42 ; 'B'                                        ; +0xf0, 0xa01ddc\nADD             R3, PC, R3; \"crypto/ec/ec_oct.c\"                       ; +0xf4, 0xa01de0\nBL              ERR_put_error                                          ; +0xf8, 0xa01de4\nB               loc_A01D44                                             ; +0xfc, 0xa01de8", "xrefs": ["ec_GFp_simple_oct2point @ 0xa07870", "<???> @ 0x7b63c"], "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"}