{"type": "func", "start": 16747768, "end": 16747820, "name": "BN_is_one", "pseudocode": "// \n// BN_is_one from 0xff8cf8 to 0xff8d2c (52 bytes)\n// \n// 31 xrefs:\n// > sub_1005CF0 @ 0x1005dd4\n// > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017b80\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x1017ca4\n// > ec_GFp_simple_point_get_affine_coordinates @ 0x1017d10\n// > sub_10545B8 @ 0x1054740\n// > sub_10945E0 @ 0x1094628\n// > BN_mod_exp_mont_consttime @ 0x1094d7c\n// > BN_mod_exp_mont @ 0x1095444\n// > BN_mod_exp_mont_word @ 0x1095ba4\n// > BN_mod_exp_simple @ 0x1095e04\n// > int_bn_mod_inverse @ 0x1096c08\n// > int_bn_mod_inverse @ 0x1096e1c\n// > int_bn_mod_inverse @ 0x10971bc\n// > BN_kronecker @ 0x10979d8\n// > BN_mod_sqrt @ 0x10990c4\n// > BN_mod_sqrt @ 0x109911c\n// > BN_mod_sqrt @ 0x109915c\n// > BN_mod_sqrt @ 0x1099490\n// > BN_mod_sqrt @ 0x1099604\n// > BN_mod_sqrt @ 0x109962c\n// > DH_check @ 0x10a7b7c\n// > DH_check @ 0x10a7c70\n// > DH_check_pub_key @ 0x10a7df0\n// > dsa_builtin_paramgen @ 0x10a8e84\n// > dsa_builtin_paramgen2 @ 0x10a955c\n// > sub_10B2654 @ 0x10b2708\n// > RSA_generate_key_ex @ 0x10e8ab8\n// > RSA_generate_key_ex @ 0x10e8c24\n// > BN_is_prime_fasttest_ex @ 0x10f51a4\n// > BN_is_prime_fasttest_ex @ 0x10f51d0\n// > <???> @ 0x83608\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_is_one(__int64 a1)\n{\n  __int64 result; // x0\n\n  result = BN_abs_is_word(a1, 1);\n  if ( (_DWORD)result )\n    return *(_DWORD *)(a1 + 16) == 0;\n  return result;\n}", "assembly": "; \n; BN_is_one from 0xff8cf8 to 0xff8d2c (52 bytes)\n; \n; 31 xrefs:\n; > sub_1005CF0 @ 0x1005dd4\n; > ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017b80\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x1017ca4\n; > ec_GFp_simple_point_get_affine_coordinates @ 0x1017d10\n; > sub_10545B8 @ 0x1054740\n; > sub_10945E0 @ 0x1094628\n; > BN_mod_exp_mont_consttime @ 0x1094d7c\n; > BN_mod_exp_mont @ 0x1095444\n; > BN_mod_exp_mont_word @ 0x1095ba4\n; > BN_mod_exp_simple @ 0x1095e04\n; > int_bn_mod_inverse @ 0x1096c08\n; > int_bn_mod_inverse @ 0x1096e1c\n; > int_bn_mod_inverse @ 0x10971bc\n; > BN_kronecker @ 0x10979d8\n; > BN_mod_sqrt @ 0x10990c4\n; > BN_mod_sqrt @ 0x109911c\n; > BN_mod_sqrt @ 0x109915c\n; > BN_mod_sqrt @ 0x1099490\n; > BN_mod_sqrt @ 0x1099604\n; > BN_mod_sqrt @ 0x109962c\n; > DH_check @ 0x10a7b7c\n; > DH_check @ 0x10a7c70\n; > DH_check_pub_key @ 0x10a7df0\n; > dsa_builtin_paramgen @ 0x10a8e84\n; > dsa_builtin_paramgen2 @ 0x10a955c\n; > sub_10B2654 @ 0x10b2708\n; > RSA_generate_key_ex @ 0x10e8ab8\n; > RSA_generate_key_ex @ 0x10e8c24\n; > BN_is_prime_fasttest_ex @ 0x10f51a4\n; > BN_is_prime_fasttest_ex @ 0x10f51d0\n; > <???> @ 0x83608\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, 0xff8cf8\nMOV             X1, #1                                                 ; +0x4, 0xff8cfc\nMOV             X29, SP                                                ; +0x8, 0xff8d00\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xff8d04\nMOV             X19, X0                                                ; +0x10, 0xff8d08\nBL              BN_abs_is_word                                         ; +0x14, 0xff8d0c\nCBZ             W0, loc_FF8D20                                         ; +0x18, 0xff8d10\nLDR             W0, [X19,#0x10]                                        ; +0x1c, 0xff8d14\nCMP             W0, WZR                                                ; +0x20, 0xff8d18\nCSET            W0, EQ                                                 ; +0x24, 0xff8d1c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xff8d20\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xff8d24\nRET                                                                    ; +0x30, 0xff8d28", "xrefs": ["sub_1005CF0 @ 0x1005dd4", "ec_GFp_simple_set_Jprojective_coordinates_GFp @ 0x1017b80", "ec_GFp_simple_point_get_affine_coordinates @ 0x1017ca4", "ec_GFp_simple_point_get_affine_coordinates @ 0x1017d10", "sub_10545B8 @ 0x1054740", "sub_10945E0 @ 0x1094628", "BN_mod_exp_mont_consttime @ 0x1094d7c", "BN_mod_exp_mont @ 0x1095444", "BN_mod_exp_mont_word @ 0x1095ba4", "BN_mod_exp_simple @ 0x1095e04", "int_bn_mod_inverse @ 0x1096c08", "int_bn_mod_inverse @ 0x1096e1c", "int_bn_mod_inverse @ 0x10971bc", "BN_kronecker @ 0x10979d8", "BN_mod_sqrt @ 0x10990c4", "BN_mod_sqrt @ 0x109911c", "BN_mod_sqrt @ 0x109915c", "BN_mod_sqrt @ 0x1099490", "BN_mod_sqrt @ 0x1099604", "BN_mod_sqrt @ 0x109962c", "DH_check @ 0x10a7b7c", "DH_check @ 0x10a7c70", "DH_check_pub_key @ 0x10a7df0", "dsa_builtin_paramgen @ 0x10a8e84", "dsa_builtin_paramgen2 @ 0x10a955c", "sub_10B2654 @ 0x10b2708", "RSA_generate_key_ex @ 0x10e8ab8", "RSA_generate_key_ex @ 0x10e8c24", "BN_is_prime_fasttest_ex @ 0x10f51a4", "BN_is_prime_fasttest_ex @ 0x10f51d0", "<???> @ 0x83608"], "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"}