{"type": "func", "start": 15166420, "end": 15166496, "name": "BN_GF2m_arr2poly", "pseudocode": "// \n// BN_GF2m_arr2poly from 0xe76bd4 to 0xe76c20 (76 bytes)\n// \n// 3 xrefs:\n// > BN_GF2m_mod_inv_arr @ 0xe76c64\n// > BN_GF2m_mod_div_arr @ 0xe76d0c\n// > <???> @ 0x2c418\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_GF2m_arr2poly(int *a1, __int64 a2)\n{\n  __int64 result; // x0\n  int v5; // w1\n  int v6; // t1\n\n  BN_set_word(a2, 0);\n  while ( 1 )\n  {\n    v6 = *a1++;\n    v5 = v6;\n    if ( v6 == -1 )\n      break;\n    result = BN_set_bit(a2, v5);\n    if ( !(_DWORD)result )\n      return result;\n  }\n  return 1;\n}", "assembly": "; \n; BN_GF2m_arr2poly from 0xe76bd4 to 0xe76c20 (76 bytes)\n; \n; 3 xrefs:\n; > BN_GF2m_mod_inv_arr @ 0xe76c64\n; > BN_GF2m_mod_div_arr @ 0xe76d0c\n; > <???> @ 0x2c418\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xe76bd4\nMOV             X29, SP                                                ; +0x4, 0xe76bd8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xe76bdc\nMOV             X20, X1                                                ; +0xc, 0xe76be0\nMOV             X19, X0                                                ; +0x10, 0xe76be4\nMOV             X0, X1                                                 ; +0x14, 0xe76be8\nMOV             X1, #0                                                 ; +0x18, 0xe76bec\nBL              BN_set_word                                            ; +0x1c, 0xe76bf0\nB               loc_E76C04                                             ; +0x20, 0xe76bf4\nMOV             X0, X20                                                ; +0x24, 0xe76bf8\nBL              BN_set_bit                                             ; +0x28, 0xe76bfc\nCBZ             W0, loc_E76C14                                         ; +0x2c, 0xe76c00\nLDR             W1, [X19],#4                                           ; +0x30, 0xe76c04\nCMN             W1, #1                                                 ; +0x34, 0xe76c08\nB.NE            loc_E76BF8                                             ; +0x38, 0xe76c0c\nMOV             W0, #1                                                 ; +0x3c, 0xe76c10\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0xe76c14\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0xe76c18\nRET                                                                    ; +0x48, 0xe76c1c", "xrefs": ["BN_GF2m_mod_inv_arr @ 0xe76c64", "BN_GF2m_mod_div_arr @ 0xe76d0c", "<???> @ 0x2c418"], "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"}