{"type": "func", "start": 14133588, "end": 14133656, "name": "BN_set_negative", "pseudocode": "// \n// BN_set_negative from 0xd7a954 to 0xd7a998 (68 bytes)\n// \n// 12 xrefs:\n// > BN_sub_word @ 0xd7f678\n// > ec_GFp_simple_group_set_curve @ 0xd9a110\n// > ASN1_INTEGER_to_BN @ 0xe0acc8\n// > ASN1_ENUMERATED_to_BN @ 0xe0b1cc\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe33680\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe3369c\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe336c0\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0xe33788\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0xe337ac\n// > sub_E7CC48 @ 0xe7d204\n// > sub_E7CC48 @ 0xe7d210\n// > <???> @ 0x39e58\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0xd7a954 to 0xd7a998 (68 bytes)\n; \n; 12 xrefs:\n; > BN_sub_word @ 0xd7f678\n; > ec_GFp_simple_group_set_curve @ 0xd9a110\n; > ASN1_INTEGER_to_BN @ 0xe0acc8\n; > ASN1_ENUMERATED_to_BN @ 0xe0b1cc\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xe33680\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xe3369c\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xe336c0\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0xe33788\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0xe337ac\n; > sub_E7CC48 @ 0xe7d204\n; > sub_E7CC48 @ 0xe7d210\n; > <???> @ 0x39e58\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd7a954\nMOV             X29, SP                                                ; +0x4, 0xd7a958\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xd7a95c\nMOV             X19, X0                                                ; +0xc, 0xd7a960\nCBNZ            W1, loc_D7A97C                                         ; +0x10, 0xd7a964\nMOV             W0, #0                                                 ; +0x14, 0xd7a968\nSTR             W0, [X19,#0x10]                                        ; +0x18, 0xd7a96c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x1c, 0xd7a970\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x20, 0xd7a974\nRET                                                                    ; +0x24, 0xd7a978\nBL              BN_is_zero                                             ; +0x28, 0xd7a97c\nCBNZ            W0, loc_D7A968                                         ; +0x2c, 0xd7a980\nMOV             W0, #1                                                 ; +0x30, 0xd7a984\nSTR             W0, [X19,#0x10]                                        ; +0x34, 0xd7a988\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xd7a98c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xd7a990\nRET                                                                    ; +0x40, 0xd7a994", "xrefs": ["BN_sub_word @ 0xd7f678", "ec_GFp_simple_group_set_curve @ 0xd9a110", "ASN1_INTEGER_to_BN @ 0xe0acc8", "ASN1_ENUMERATED_to_BN @ 0xe0b1cc", "ec_GF2m_simple_point_set_affine_coordinates @ 0xe33680", "ec_GF2m_simple_point_set_affine_coordinates @ 0xe3369c", "ec_GF2m_simple_point_set_affine_coordinates @ 0xe336c0", "ec_GF2m_simple_point_get_affine_coordinates @ 0xe33788", "ec_GF2m_simple_point_get_affine_coordinates @ 0xe337ac", "sub_E7CC48 @ 0xe7d204", "sub_E7CC48 @ 0xe7d210", "<???> @ 0x39e58"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}