{"type": "func", "start": 16843240, "end": 16843372, "name": "EC_POINT_invert", "pseudocode": "// \n// EC_POINT_invert from 0x10101e8 to 0x101026c (132 bytes)\n// \n// 3 xrefs:\n// > ec_wNAF_mul @ 0x10119a8\n// > ec_wNAF_mul @ 0x1011ab8\n// > <???> @ 0x5f2f0\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:02 +0000\n// \n\n__int64 __fastcall EC_POINT_invert(__int64 a1, _QWORD *a2)\n{\n  __int64 (*v2)(void); // x19\n\n  v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 192LL);\n  if ( v2 )\n  {\n    if ( *(_QWORD *)a1 == *a2 )\n    {\n      return v2();\n    }\n    else\n    {\n      ERR_put_error(16, 210, 101, \"crypto/ec/ec_lib.c\", 812);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 210, 66, \"crypto/ec/ec_lib.c\", 808);\n    return 0;\n  }\n}", "assembly": "; \n; EC_POINT_invert from 0x10101e8 to 0x101026c (132 bytes)\n; \n; 3 xrefs:\n; > ec_wNAF_mul @ 0x10119a8\n; > ec_wNAF_mul @ 0x1011ab8\n; > <???> @ 0x5f2f0\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:02 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x10101e8\nMOV             X29, SP                                                ; +0x4, 0x10101ec\nLDR             X3, [X0]                                               ; +0x8, 0x10101f0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x10101f4\nLDR             X19, [X3,#0xC0]                                        ; +0x10, 0x10101f8\nCBZ             X19, loc_1010248                                       ; +0x14, 0x10101fc\nLDR             X4, [X1]                                               ; +0x18, 0x1010200\nCMP             X3, X4                                                 ; +0x1c, 0x1010204\nB.EQ            loc_1010238                                            ; +0x20, 0x1010208\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x24, 0x101020c\nMOV             W0, #0x10                                              ; +0x28, 0x1010210\nMOV             W1, #0xD2                                              ; +0x2c, 0x1010214\nMOV             W2, #0x65 ; 'e'                                        ; +0x30, 0x1010218\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x34, 0x101021c\nMOV             W4, #0x32C                                             ; +0x38, 0x1010220\nBL              ERR_put_error                                          ; +0x3c, 0x1010224\nMOV             W0, #0                                                 ; +0x40, 0x1010228\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x44, 0x101022c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x48, 0x1010230\nRET                                                                    ; +0x4c, 0x1010234\nBLR             X19                                                    ; +0x50, 0x1010238\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0x101023c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x1010240\nRET                                                                    ; +0x5c, 0x1010244\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x60, 0x1010248\nMOV             W0, #0x10                                              ; +0x64, 0x101024c\nMOV             W1, #0xD2                                              ; +0x68, 0x1010250\nMOV             W2, #0x42 ; 'B'                                        ; +0x6c, 0x1010254\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x70, 0x1010258\nMOV             W4, #0x328                                             ; +0x74, 0x101025c\nBL              ERR_put_error                                          ; +0x78, 0x1010260\nMOV             W0, W19                                                ; +0x7c, 0x1010264\nB               loc_101022C                                            ; +0x80, 0x1010268", "xrefs": ["ec_wNAF_mul @ 0x10119a8", "ec_wNAF_mul @ 0x1011ab8", "<???> @ 0x5f2f0"], "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"}