{"type": "func", "start": 9217864, "end": 9217936, "name": "BN_GF2m_arr2poly", "pseudocode": "// \n// BN_GF2m_arr2poly from 0x8ca748 to 0x8ca790 (72 bytes)\n// \n// 3 xrefs:\n// > BN_GF2m_mod_inv_arr @ 0x8ca7c4\n// > BN_GF2m_mod_div_arr @ 0x8ca838\n// > <???> @ 0x6ba6c\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\nint __fastcall BN_GF2m_arr2poly(int *a1, int **a2)\n{\n  int v4; // r1\n  int result; // r0\n  int v6; // t1\n\n  BN_set_word(a2, 0);\n  v4 = *a1;\n  if ( *a1 == -1 )\n    return 1;\n  while ( 1 )\n  {\n    result = BN_set_bit((int *)a2, v4);\n    if ( !result )\n      break;\n    v6 = a1[1];\n    ++a1;\n    v4 = v6;\n    if ( v6 == -1 )\n      return 1;\n  }\n  return result;\n}", "assembly": "; \n; BN_GF2m_arr2poly from 0x8ca748 to 0x8ca790 (72 bytes)\n; \n; 3 xrefs:\n; > BN_GF2m_mod_inv_arr @ 0x8ca7c4\n; > BN_GF2m_mod_div_arr @ 0x8ca838\n; > <???> @ 0x6ba6c\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x8ca748\nMOV             R5, R1                                                 ; +0x4, 0x8ca74c\nMOV             R4, R0                                                 ; +0x8, 0x8ca750\nMOV             R1, #0                                                 ; +0xc, 0x8ca754\nMOV             R0, R5                                                 ; +0x10, 0x8ca758\nBL              BN_set_word                                            ; +0x14, 0x8ca75c\nLDR             R1, [R4]                                               ; +0x18, 0x8ca760\nCMN             R1, #1                                                 ; +0x1c, 0x8ca764\nBEQ             loc_8CA788                                             ; +0x20, 0x8ca768\nMOV             R0, R5                                                 ; +0x24, 0x8ca76c\nBL              BN_set_bit                                             ; +0x28, 0x8ca770\nCMP             R0, #0                                                 ; +0x2c, 0x8ca774\nPOPEQ           {R3-R5,PC}                                             ; +0x30, 0x8ca778\nLDR             R1, [R4,#4]!                                           ; +0x34, 0x8ca77c\nCMN             R1, #1                                                 ; +0x38, 0x8ca780\nBNE             loc_8CA76C                                             ; +0x3c, 0x8ca784\nMOV             R0, #1                                                 ; +0x40, 0x8ca788\nPOP             {R3-R5,PC}                                             ; +0x44, 0x8ca78c", "xrefs": ["BN_GF2m_mod_inv_arr @ 0x8ca7c4", "BN_GF2m_mod_div_arr @ 0x8ca838", "<???> @ 0x6ba6c"], "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"}