{"type": "func", "start": 14131484, "end": 14131548, "name": "BN_is_bit_set", "pseudocode": "// \n// BN_is_bit_set from 0xd7a11c to 0xd7a15c (64 bytes)\n// \n// 32 xrefs:\n// > sub_E162E0 @ 0xe1648c\n// > sub_E162E0 @ 0xe164c8\n// > BN_exp @ 0xe167b0\n// > BN_mod_exp_mont_consttime @ 0xe16cc4\n// > BN_mod_exp_mont_consttime @ 0xe16d3c\n// > BN_mod_exp_mont @ 0xe1724c\n// > BN_mod_exp_mont @ 0xe1728c\n// > BN_mod_exp_mont_word @ 0xe176dc\n// > BN_mod_exp_simple @ 0xe17c5c\n// > BN_mod_exp_simple @ 0xe17c98\n// > BN_mod_exp2_mont @ 0xe183dc\n// > BN_mod_exp2_mont @ 0xe183fc\n// > BN_mod_exp2_mont @ 0xe1842c\n// > BN_mod_exp2_mont @ 0xe184b0\n// > BN_mod_exp2_mont @ 0xe184d0\n// > BN_mod_exp2_mont @ 0xe18500\n// > int_bn_mod_inverse @ 0xe18dd4\n// > int_bn_mod_inverse @ 0xe18e38\n// > bn_compute_wNAF @ 0xe190e4\n// > BN_kronecker @ 0xe19560\n// > BN_kronecker @ 0xe195f0\n// > BN_rand_range @ 0xe1a348\n// > BN_rand_range @ 0xe1a394\n// > BN_pseudo_rand_range @ 0xe1a504\n// > BN_pseudo_rand_range @ 0xe1a550\n// > BN_mod_sqrt @ 0xe1ad98\n// > BN_mod_sqrt @ 0xe1aeec\n// > BN_mod_sqrt @ 0xe1b1e0\n// > BN_GF2m_mod_exp_arr @ 0xe75ba4\n// > BN_is_prime_fasttest_ex @ 0xe770ec\n// > bn_probable_prime_dh_coprime @ 0xe7735c\n// > <???> @ 0x82d70\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_is_bit_set(__int64 a1, int a2)\n{\n  __int64 v2; // x2\n\n  if ( a2 < 0 )\n    return 0;\n  LODWORD(v2) = 0;\n  if ( a2 >> 6 < *(_DWORD *)(a1 + 8) )\n    return (*(_QWORD *)(*(_QWORD *)a1 + 8LL * (a2 >> 6)) >> (a2 & 0x3F)) & 1LL;\n  return (unsigned int)v2;\n}", "assembly": "; \n; BN_is_bit_set from 0xd7a11c to 0xd7a15c (64 bytes)\n; \n; 32 xrefs:\n; > sub_E162E0 @ 0xe1648c\n; > sub_E162E0 @ 0xe164c8\n; > BN_exp @ 0xe167b0\n; > BN_mod_exp_mont_consttime @ 0xe16cc4\n; > BN_mod_exp_mont_consttime @ 0xe16d3c\n; > BN_mod_exp_mont @ 0xe1724c\n; > BN_mod_exp_mont @ 0xe1728c\n; > BN_mod_exp_mont_word @ 0xe176dc\n; > BN_mod_exp_simple @ 0xe17c5c\n; > BN_mod_exp_simple @ 0xe17c98\n; > BN_mod_exp2_mont @ 0xe183dc\n; > BN_mod_exp2_mont @ 0xe183fc\n; > BN_mod_exp2_mont @ 0xe1842c\n; > BN_mod_exp2_mont @ 0xe184b0\n; > BN_mod_exp2_mont @ 0xe184d0\n; > BN_mod_exp2_mont @ 0xe18500\n; > int_bn_mod_inverse @ 0xe18dd4\n; > int_bn_mod_inverse @ 0xe18e38\n; > bn_compute_wNAF @ 0xe190e4\n; > BN_kronecker @ 0xe19560\n; > BN_kronecker @ 0xe195f0\n; > BN_rand_range @ 0xe1a348\n; > BN_rand_range @ 0xe1a394\n; > BN_pseudo_rand_range @ 0xe1a504\n; > BN_pseudo_rand_range @ 0xe1a550\n; > BN_mod_sqrt @ 0xe1ad98\n; > BN_mod_sqrt @ 0xe1aeec\n; > BN_mod_sqrt @ 0xe1b1e0\n; > BN_GF2m_mod_exp_arr @ 0xe75ba4\n; > BN_is_prime_fasttest_ex @ 0xe770ec\n; > bn_probable_prime_dh_coprime @ 0xe7735c\n; > <???> @ 0x82d70\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\nTBNZ            W1, #0x1F, loc_D7A150                                  ; +0x0, 0xd7a11c\nLDR             W4, [X0,#8]                                            ; +0x4, 0xd7a120\nASR             W3, W1, #6                                             ; +0x8, 0xd7a124\nMOV             W2, #0                                                 ; +0xc, 0xd7a128\nCMP             W3, W4                                                 ; +0x10, 0xd7a12c\nB.GE            loc_D7A148                                             ; +0x14, 0xd7a130\nLDR             X0, [X0]                                               ; +0x18, 0xd7a134\nAND             W2, W1, #0x3F ; '?'                                    ; +0x1c, 0xd7a138\nLDR             X0, [X0,W3,SXTW#3]                                     ; +0x20, 0xd7a13c\nLSR             X2, X0, X2                                             ; +0x24, 0xd7a140\nAND             W2, W2, #1                                             ; +0x28, 0xd7a144\nMOV             W0, W2                                                 ; +0x2c, 0xd7a148\nRET                                                                    ; +0x30, 0xd7a14c\nMOV             W2, #0                                                 ; +0x34, 0xd7a150\nMOV             W0, W2                                                 ; +0x38, 0xd7a154\nRET                                                                    ; +0x3c, 0xd7a158", "xrefs": ["sub_E162E0 @ 0xe1648c", "sub_E162E0 @ 0xe164c8", "BN_exp @ 0xe167b0", "BN_mod_exp_mont_consttime @ 0xe16cc4", "BN_mod_exp_mont_consttime @ 0xe16d3c", "BN_mod_exp_mont @ 0xe1724c", "BN_mod_exp_mont @ 0xe1728c", "BN_mod_exp_mont_word @ 0xe176dc", "BN_mod_exp_simple @ 0xe17c5c", "BN_mod_exp_simple @ 0xe17c98", "BN_mod_exp2_mont @ 0xe183dc", "BN_mod_exp2_mont @ 0xe183fc", "BN_mod_exp2_mont @ 0xe1842c", "BN_mod_exp2_mont @ 0xe184b0", "BN_mod_exp2_mont @ 0xe184d0", "BN_mod_exp2_mont @ 0xe18500", "int_bn_mod_inverse @ 0xe18dd4", "int_bn_mod_inverse @ 0xe18e38", "bn_compute_wNAF @ 0xe190e4", "BN_kronecker @ 0xe19560", "BN_kronecker @ 0xe195f0", "BN_rand_range @ 0xe1a348", "BN_rand_range @ 0xe1a394", "BN_pseudo_rand_range @ 0xe1a504", "BN_pseudo_rand_range @ 0xe1a550", "BN_mod_sqrt @ 0xe1ad98", "BN_mod_sqrt @ 0xe1aeec", "BN_mod_sqrt @ 0xe1b1e0", "BN_GF2m_mod_exp_arr @ 0xe75ba4", "BN_is_prime_fasttest_ex @ 0xe770ec", "bn_probable_prime_dh_coprime @ 0xe7735c", "<???> @ 0x82d70"], "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"}