{"type": "func", "start": 16747820, "end": 16747880, "name": "BN_is_word", "pseudocode": "// \n// BN_is_word from 0xff8d2c to 0xff8d68 (60 bytes)\n// \n// 6 xrefs:\n// > int_bn_mod_inverse @ 0x1096e2c\n// > int_bn_mod_inverse @ 0x1096f44\n// > DH_check @ 0x10a7bec\n// > DH_check @ 0x10a7c38\n// > BN_is_prime_fasttest_ex @ 0x10f50b0\n// > <???> @ 0xfc328\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_word(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n\n  result = BN_abs_is_word(a1, a2);\n  if ( (_DWORD)result )\n  {\n    result = 1;\n    if ( a2 )\n      return *(_DWORD *)(a1 + 16) == 0;\n  }\n  return result;\n}", "assembly": "; \n; BN_is_word from 0xff8d2c to 0xff8d68 (60 bytes)\n; \n; 6 xrefs:\n; > int_bn_mod_inverse @ 0x1096e2c\n; > int_bn_mod_inverse @ 0x1096f44\n; > DH_check @ 0x10a7bec\n; > DH_check @ 0x10a7c38\n; > BN_is_prime_fasttest_ex @ 0x10f50b0\n; > <???> @ 0xfc328\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,#-0x20+var_s0]!                          ; +0x0, 0xff8d2c\nMOV             X29, SP                                                ; +0x4, 0xff8d30\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xff8d34\nMOV             X20, X0                                                ; +0xc, 0xff8d38\nMOV             X19, X1                                                ; +0x10, 0xff8d3c\nBL              BN_abs_is_word                                         ; +0x14, 0xff8d40\nCBZ             W0, loc_FF8D5C                                         ; +0x18, 0xff8d44\nMOV             W0, #1                                                 ; +0x1c, 0xff8d48\nCBZ             X19, loc_FF8D5C                                        ; +0x20, 0xff8d4c\nLDR             W0, [X20,#0x10]                                        ; +0x24, 0xff8d50\nCMP             W0, WZR                                                ; +0x28, 0xff8d54\nCSET            W0, EQ                                                 ; +0x2c, 0xff8d58\nLDP             X19, X20, [SP,#var_s10]                                ; +0x30, 0xff8d5c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x34, 0xff8d60\nRET                                                                    ; +0x38, 0xff8d64", "xrefs": ["int_bn_mod_inverse @ 0x1096e2c", "int_bn_mod_inverse @ 0x1096f44", "DH_check @ 0x10a7bec", "DH_check @ 0x10a7c38", "BN_is_prime_fasttest_ex @ 0x10f50b0", "<???> @ 0xfc328"], "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"}