{"type": "func", "start": 16747700, "end": 16747768, "name": "BN_set_negative", "pseudocode": "// \n// BN_set_negative from 0xff8cb4 to 0xff8cf8 (68 bytes)\n// \n// 12 xrefs:\n// > BN_sub_word @ 0xffd9d8\n// > ec_GFp_simple_group_set_curve @ 0x1018470\n// > ASN1_INTEGER_to_BN @ 0x1088fc8\n// > ASN1_ENUMERATED_to_BN @ 0x10894cc\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b1980\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b199c\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b19c0\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1a88\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1aac\n// > sub_10FAC48 @ 0x10fb204\n// > sub_10FAC48 @ 0x10fb210\n// > <???> @ 0x544f0\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:15:49 +0000\n// \n\n__int64 __fastcall BN_set_negative(__int64 a1, int a2)\n{\n  if ( !a2 || BN_is_zero(a1) )\n  {\n    *(_DWORD *)(a1 + 16) = 0;\n    return 0;\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 16) = 1;\n    return 1;\n  }\n}", "assembly": "; \n; BN_set_negative from 0xff8cb4 to 0xff8cf8 (68 bytes)\n; \n; 12 xrefs:\n; > BN_sub_word @ 0xffd9d8\n; > ec_GFp_simple_group_set_curve @ 0x1018470\n; > ASN1_INTEGER_to_BN @ 0x1088fc8\n; > ASN1_ENUMERATED_to_BN @ 0x10894cc\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b1980\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b199c\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b19c0\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1a88\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1aac\n; > sub_10FAC48 @ 0x10fb204\n; > sub_10FAC48 @ 0x10fb210\n; > <???> @ 0x544f0\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:15:49 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xff8cb4\nMOV             X29, SP                                                ; +0x4, 0xff8cb8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xff8cbc\nMOV             X19, X0                                                ; +0xc, 0xff8cc0\nCBNZ            W1, loc_FF8CDC                                         ; +0x10, 0xff8cc4\nMOV             W0, #0                                                 ; +0x14, 0xff8cc8\nSTR             W0, [X19,#0x10]                                        ; +0x18, 0xff8ccc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x1c, 0xff8cd0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x20, 0xff8cd4\nRET                                                                    ; +0x24, 0xff8cd8\nBL              BN_is_zero                                             ; +0x28, 0xff8cdc\nCBNZ            W0, loc_FF8CC8                                         ; +0x2c, 0xff8ce0\nMOV             W0, #1                                                 ; +0x30, 0xff8ce4\nSTR             W0, [X19,#0x10]                                        ; +0x34, 0xff8ce8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xff8cec\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xff8cf0\nRET                                                                    ; +0x40, 0xff8cf4", "xrefs": ["BN_sub_word @ 0xffd9d8", "ec_GFp_simple_group_set_curve @ 0x1018470", "ASN1_INTEGER_to_BN @ 0x1088fc8", "ASN1_ENUMERATED_to_BN @ 0x10894cc", "ec_GF2m_simple_point_set_affine_coordinates @ 0x10b1980", "ec_GF2m_simple_point_set_affine_coordinates @ 0x10b199c", "ec_GF2m_simple_point_set_affine_coordinates @ 0x10b19c0", "ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1a88", "ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1aac", "sub_10FAC48 @ 0x10fb204", "sub_10FAC48 @ 0x10fb210", "<???> @ 0x544f0"], "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"}