{"type": "func", "start": 16851020, "end": 16851272, "name": "EC_POINT_set_compressed_coordinates_GFp", "pseudocode": "// \n// EC_POINT_set_compressed_coordinates_GFp from 0x101204c to 0x1012148 (252 bytes)\n// \n// 2 xrefs:\n// > ec_GFp_simple_oct2point @ 0x101733c\n// > <???> @ 0x919a8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:03 +0000\n// \n\n__int64 __fastcall EC_POINT_set_compressed_coordinates_GFp(\n        __int64 a1,\n        _QWORD *a2,\n        __int64 a3,\n        unsigned int a4,\n        __int64 a5)\n{\n  _DWORD *v5; // x5\n  unsigned int (*v6)(void); // x8\n\n  v5 = *(_DWORD **)a1;\n  v6 = *(unsigned int (**)(void))(*(_QWORD *)a1 + 152LL);\n  if ( v6 )\n  {\n    if ( v5 != (_DWORD *)*a2 )\n      goto LABEL_3;\n    if ( (*v5 & 1) == 0 )\n      return v6();\n  }\n  else\n  {\n    if ( (*v5 & 1) == 0 )\n    {\n      ERR_put_error(16, 125, 66, \"crypto/ec/ec_oct.c\", 30);\n      return 0;\n    }\n    if ( v5 != (_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 ( v5[1] == 406 )\n    return ec_GFp_simple_set_compressed_coordinates(a1, a2, a3, a4, a5);\n  else\n    return ec_GF2m_simple_set_compressed_coordinates(a1, a2, a3, a4, a5);\n}", "assembly": "; \n; EC_POINT_set_compressed_coordinates_GFp from 0x101204c to 0x1012148 (252 bytes)\n; \n; 2 xrefs:\n; > ec_GFp_simple_oct2point @ 0x101733c\n; > <???> @ 0x919a8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:03 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x101204c\nMOV             X7, X0                                                 ; +0x4, 0x1012050\nMOV             X6, X1                                                 ; +0x8, 0x1012054\nMOV             X29, SP                                                ; +0xc, 0x1012058\nLDR             X5, [X0]                                               ; +0x10, 0x101205c\nMOV             X10, X2                                                ; +0x14, 0x1012060\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x18, 0x1012064\nMOV             W11, W3                                                ; +0x1c, 0x1012068\nMOV             X12, X4                                                ; +0x20, 0x101206c\nLDR             X8, [X5,#0x98]                                         ; +0x24, 0x1012070\nCBZ             X8, loc_10120F4                                        ; +0x28, 0x1012074\nLDR             X9, [X1]                                               ; +0x2c, 0x1012078\nCMP             X5, X9                                                 ; +0x30, 0x101207c\nB.EQ            loc_10120B4                                            ; +0x34, 0x1012080\nADRP            X3, #aCryptoEcEcOctC@PAGE; \"crypto/ec/ec_oct.c\"        ; +0x38, 0x1012084\nMOV             W0, #0x10                                              ; +0x3c, 0x1012088\nMOV             W1, #0x7D ; '}'                                        ; +0x40, 0x101208c\nMOV             W2, #0x65 ; 'e'                                        ; +0x44, 0x1012090\nADD             X3, X3, #aCryptoEcEcOctC@PAGEOFF; \"crypto/ec/ec_oct.c\" ; +0x48, 0x1012094\nMOV             W4, #0x23 ; '#'                                        ; +0x4c, 0x1012098\nMOV             W19, #0                                                ; +0x50, 0x101209c\nBL              ERR_put_error                                          ; +0x54, 0x10120a0\nMOV             W0, W19                                                ; +0x58, 0x10120a4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x5c, 0x10120a8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x60, 0x10120ac\nRET                                                                    ; +0x64, 0x10120b0\nLDR             W9, [X5]                                               ; +0x68, 0x10120b4\nTBZ             W9, #0, loc_1012110                                    ; +0x6c, 0x10120b8\nLDR             W0, [X5,#4]                                            ; +0x70, 0x10120bc\nMOV             X1, X6                                                 ; +0x74, 0x10120c0\nMOV             X2, X10                                                ; +0x78, 0x10120c4\nMOV             W3, W11                                                ; +0x7c, 0x10120c8\nCMP             W0, #0x196                                             ; +0x80, 0x10120cc\nMOV             X4, X12                                                ; +0x84, 0x10120d0\nMOV             X0, X7                                                 ; +0x88, 0x10120d4\nB.EQ            loc_10120E8                                            ; +0x8c, 0x10120d8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x90, 0x10120dc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x94, 0x10120e0\nB               ec_GF2m_simple_set_compressed_coordinates              ; +0x98, 0x10120e4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x9c, 0x10120e8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa0, 0x10120ec\nB               ec_GFp_simple_set_compressed_coordinates               ; +0xa4, 0x10120f0\nLDR             W0, [X5]                                               ; +0xa8, 0x10120f4\nAND             W19, W0, #1                                            ; +0xac, 0x10120f8\nTBZ             W0, #0, loc_1012128                                    ; +0xb0, 0x10120fc\nLDR             X0, [X1]                                               ; +0xb4, 0x1012100\nCMP             X5, X0                                                 ; +0xb8, 0x1012104\nB.NE            loc_1012084                                            ; +0xbc, 0x1012108\nB               loc_10120BC                                            ; +0xc0, 0x101210c\nBLR             X8                                                     ; +0xc4, 0x1012110\nMOV             W19, W0                                                ; +0xc8, 0x1012114\nMOV             W0, W19                                                ; +0xcc, 0x1012118\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xd0, 0x101211c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xd4, 0x1012120\nRET                                                                    ; +0xd8, 0x1012124\nADRP            X3, #aCryptoEcEcOctC@PAGE; \"crypto/ec/ec_oct.c\"        ; +0xdc, 0x1012128\nMOV             W0, #0x10                                              ; +0xe0, 0x101212c\nMOV             W1, #0x7D ; '}'                                        ; +0xe4, 0x1012130\nMOV             W2, #0x42 ; 'B'                                        ; +0xe8, 0x1012134\nADD             X3, X3, #aCryptoEcEcOctC@PAGEOFF; \"crypto/ec/ec_oct.c\" ; +0xec, 0x1012138\nMOV             W4, #0x1E                                              ; +0xf0, 0x101213c\nBL              ERR_put_error                                          ; +0xf4, 0x1012140\nB               loc_10120A4                                            ; +0xf8, 0x1012144", "xrefs": ["ec_GFp_simple_oct2point @ 0x101733c", "<???> @ 0x919a8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}