{"type": "func", "start": 8210444, "end": 8210496, "name": "BN_set_negative", "pseudocode": "// \n// BN_set_negative from 0x7d480c to 0x7d4840 (52 bytes)\n// \n// 12 xrefs:\n// > BN_sub_word @ 0x7d89b4\n// > ec_GFp_simple_group_set_curve @ 0x7f3e60\n// > ASN1_INTEGER_to_BN @ 0x862744\n// > ASN1_ENUMERATED_to_BN @ 0x862db0\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dcc\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dec\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889e14\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ecc\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ef8\n// > sub_8D1010 @ 0x8d1628\n// > sub_8D1010 @ 0x8d1634\n// > <???> @ 0x5fb6c\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\nbool __fastcall BN_set_negative(_BOOL4 result, int a2)\n{\n  int v2; // r4\n\n  v2 = result;\n  *(_DWORD *)(v2 + 12) = a2 && !(result = BN_is_zero(result));\n  return result;\n}", "assembly": "; \n; BN_set_negative from 0x7d480c to 0x7d4840 (52 bytes)\n; \n; 12 xrefs:\n; > BN_sub_word @ 0x7d89b4\n; > ec_GFp_simple_group_set_curve @ 0x7f3e60\n; > ASN1_INTEGER_to_BN @ 0x862744\n; > ASN1_ENUMERATED_to_BN @ 0x862db0\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dcc\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dec\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0x889e14\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ecc\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ef8\n; > sub_8D1010 @ 0x8d1628\n; > sub_8D1010 @ 0x8d1634\n; > <???> @ 0x5fb6c\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\nCMP             R1, #0                                                 ; +0x0, 0x7d480c\nPUSH            {R4,LR}                                                ; +0x4, 0x7d4810\nMOV             R4, R0                                                 ; +0x8, 0x7d4814\nBNE             loc_7D4828                                             ; +0xc, 0x7d4818\nMOV             R3, #0                                                 ; +0x10, 0x7d481c\nSTR             R3, [R4,#0xC]                                          ; +0x14, 0x7d4820\nPOP             {R4,PC}                                                ; +0x18, 0x7d4824\nBL              BN_is_zero                                             ; +0x1c, 0x7d4828\nCMP             R0, #0                                                 ; +0x20, 0x7d482c\nBNE             loc_7D481C                                             ; +0x24, 0x7d4830\nMOV             R3, #1                                                 ; +0x28, 0x7d4834\nSTR             R3, [R4,#0xC]                                          ; +0x2c, 0x7d4838\nPOP             {R4,PC}                                                ; +0x30, 0x7d483c", "xrefs": ["BN_sub_word @ 0x7d89b4", "ec_GFp_simple_group_set_curve @ 0x7f3e60", "ASN1_INTEGER_to_BN @ 0x862744", "ASN1_ENUMERATED_to_BN @ 0x862db0", "ec_GF2m_simple_point_set_affine_coordinates @ 0x889dcc", "ec_GF2m_simple_point_set_affine_coordinates @ 0x889dec", "ec_GF2m_simple_point_set_affine_coordinates @ 0x889e14", "ec_GF2m_simple_point_get_affine_coordinates @ 0x889ecc", "ec_GF2m_simple_point_get_affine_coordinates @ 0x889ef8", "sub_8D1010 @ 0x8d1628", "sub_8D1010 @ 0x8d1634", "<???> @ 0x5fb6c"], "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"}