{"type": "func", "start": 10392588, "end": 10392640, "name": "BN_set_negative", "pseudocode": "// \n// BN_set_negative from 0x9e940c to 0x9e9440 (52 bytes)\n// \n// 12 xrefs:\n// > BN_sub_word @ 0x9ed5b4\n// > ec_GFp_simple_group_set_curve @ 0xa08a60\n// > ASN1_INTEGER_to_BN @ 0xa77344\n// > ASN1_ENUMERATED_to_BN @ 0xa779b0\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9cc\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9ec\n// > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9ea14\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eacc\n// > ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eaf8\n// > sub_AE6010 @ 0xae6628\n// > sub_AE6010 @ 0xae6634\n// > <???> @ 0x795ec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:25 +0000\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 0x9e940c to 0x9e9440 (52 bytes)\n; \n; 12 xrefs:\n; > BN_sub_word @ 0x9ed5b4\n; > ec_GFp_simple_group_set_curve @ 0xa08a60\n; > ASN1_INTEGER_to_BN @ 0xa77344\n; > ASN1_ENUMERATED_to_BN @ 0xa779b0\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9cc\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9ec\n; > ec_GF2m_simple_point_set_affine_coordinates @ 0xa9ea14\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eacc\n; > ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eaf8\n; > sub_AE6010 @ 0xae6628\n; > sub_AE6010 @ 0xae6634\n; > <???> @ 0x795ec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:25 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x9e940c\nPUSH            {R4,LR}                                                ; +0x4, 0x9e9410\nMOV             R4, R0                                                 ; +0x8, 0x9e9414\nBNE             loc_9E9428                                             ; +0xc, 0x9e9418\nMOV             R3, #0                                                 ; +0x10, 0x9e941c\nSTR             R3, [R4,#0xC]                                          ; +0x14, 0x9e9420\nPOP             {R4,PC}                                                ; +0x18, 0x9e9424\nBL              BN_is_zero                                             ; +0x1c, 0x9e9428\nCMP             R0, #0                                                 ; +0x20, 0x9e942c\nBNE             loc_9E941C                                             ; +0x24, 0x9e9430\nMOV             R3, #1                                                 ; +0x28, 0x9e9434\nSTR             R3, [R4,#0xC]                                          ; +0x2c, 0x9e9438\nPOP             {R4,PC}                                                ; +0x30, 0x9e943c", "xrefs": ["BN_sub_word @ 0x9ed5b4", "ec_GFp_simple_group_set_curve @ 0xa08a60", "ASN1_INTEGER_to_BN @ 0xa77344", "ASN1_ENUMERATED_to_BN @ 0xa779b0", "ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9cc", "ec_GF2m_simple_point_set_affine_coordinates @ 0xa9e9ec", "ec_GF2m_simple_point_set_affine_coordinates @ 0xa9ea14", "ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eacc", "ec_GF2m_simple_point_get_affine_coordinates @ 0xa9eaf8", "sub_AE6010 @ 0xae6628", "sub_AE6010 @ 0xae6634", "<???> @ 0x795ec"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}