{"type": "func", "start": 16842296, "end": 16842428, "name": "EC_POINT_set_to_infinity", "pseudocode": "// \n// EC_POINT_set_to_infinity from 0x100fe38 to 0x100febc (132 bytes)\n// \n// 10 xrefs:\n// > ec_wNAF_mul @ 0x1010f4c\n// > ec_wNAF_mul @ 0x1011afc\n// > sub_10150E8 @ 0x10151c8\n// > ec_GFp_simple_oct2point @ 0x101722c\n// > ec_GF2m_simple_oct2point @ 0x10b1138\n// > ec_GF2m_simple_add @ 0x10b237c\n// > sub_10FAC48 @ 0x10fad0c\n// > sub_10FAC48 @ 0x10fb238\n// > ec_GF2m_simple_mul @ 0x10fb5b8\n// > <???> @ 0xd9cc0\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_set_to_infinity(__int64 a1, _QWORD *a2)\n{\n  __int64 (*v2)(void); // x19\n\n  v2 = *(__int64 (**)(void))(*(_QWORD *)a1 + 112LL);\n  if ( v2 )\n  {\n    if ( *(_QWORD *)a1 == *a2 )\n    {\n      return v2();\n    }\n    else\n    {\n      ERR_put_error(16, 127, 101, \"crypto/ec/ec_lib.c\", 644);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(16, 127, 66, \"crypto/ec/ec_lib.c\", 640);\n    return 0;\n  }\n}", "assembly": "; \n; EC_POINT_set_to_infinity from 0x100fe38 to 0x100febc (132 bytes)\n; \n; 10 xrefs:\n; > ec_wNAF_mul @ 0x1010f4c\n; > ec_wNAF_mul @ 0x1011afc\n; > sub_10150E8 @ 0x10151c8\n; > ec_GFp_simple_oct2point @ 0x101722c\n; > ec_GF2m_simple_oct2point @ 0x10b1138\n; > ec_GF2m_simple_add @ 0x10b237c\n; > sub_10FAC48 @ 0x10fad0c\n; > sub_10FAC48 @ 0x10fb238\n; > ec_GF2m_simple_mul @ 0x10fb5b8\n; > <???> @ 0xd9cc0\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, 0x100fe38\nMOV             X29, SP                                                ; +0x4, 0x100fe3c\nLDR             X2, [X0]                                               ; +0x8, 0x100fe40\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x100fe44\nLDR             X19, [X2,#0x70]                                        ; +0x10, 0x100fe48\nCBZ             X19, loc_100FE98                                       ; +0x14, 0x100fe4c\nLDR             X3, [X1]                                               ; +0x18, 0x100fe50\nCMP             X2, X3                                                 ; +0x1c, 0x100fe54\nB.EQ            loc_100FE88                                            ; +0x20, 0x100fe58\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x24, 0x100fe5c\nMOV             W0, #0x10                                              ; +0x28, 0x100fe60\nMOV             W1, #0x7F                                              ; +0x2c, 0x100fe64\nMOV             W2, #0x65 ; 'e'                                        ; +0x30, 0x100fe68\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x34, 0x100fe6c\nMOV             W4, #0x284                                             ; +0x38, 0x100fe70\nBL              ERR_put_error                                          ; +0x3c, 0x100fe74\nMOV             W0, #0                                                 ; +0x40, 0x100fe78\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x44, 0x100fe7c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x48, 0x100fe80\nRET                                                                    ; +0x4c, 0x100fe84\nBLR             X19                                                    ; +0x50, 0x100fe88\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x54, 0x100fe8c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0x100fe90\nRET                                                                    ; +0x5c, 0x100fe94\nADRP            X3, #aCryptoEcEcLibC@PAGE; \"crypto/ec/ec_lib.c\"        ; +0x60, 0x100fe98\nMOV             W0, #0x10                                              ; +0x64, 0x100fe9c\nMOV             W1, #0x7F                                              ; +0x68, 0x100fea0\nMOV             W2, #0x42 ; 'B'                                        ; +0x6c, 0x100fea4\nADD             X3, X3, #aCryptoEcEcLibC@PAGEOFF; \"crypto/ec/ec_lib.c\" ; +0x70, 0x100fea8\nMOV             W4, #0x280                                             ; +0x74, 0x100feac\nBL              ERR_put_error                                          ; +0x78, 0x100feb0\nMOV             W0, W19                                                ; +0x7c, 0x100feb4\nB               loc_100FE7C                                            ; +0x80, 0x100feb8", "xrefs": ["ec_wNAF_mul @ 0x1010f4c", "ec_wNAF_mul @ 0x1011afc", "sub_10150E8 @ 0x10151c8", "ec_GFp_simple_oct2point @ 0x101722c", "ec_GF2m_simple_oct2point @ 0x10b1138", "ec_GF2m_simple_add @ 0x10b237c", "sub_10FAC48 @ 0x10fad0c", "sub_10FAC48 @ 0x10fb238", "ec_GF2m_simple_mul @ 0x10fb5b8", "<???> @ 0xd9cc0"], "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"}