{"type": "func", "start": 17779668, "end": 17779744, "name": "BN_GF2m_arr2poly", "pseudocode": "// \n// BN_GF2m_arr2poly from 0x10f4bd4 to 0x10f4c20 (76 bytes)\n// \n// 3 xrefs:\n// > BN_GF2m_mod_inv_arr @ 0x10f4c64\n// > BN_GF2m_mod_div_arr @ 0x10f4d0c\n// > <???> @ 0x42ef8\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:18:09 +0000\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 0x10f4bd4 to 0x10f4c20 (76 bytes)\n; \n; 3 xrefs:\n; > BN_GF2m_mod_inv_arr @ 0x10f4c64\n; > BN_GF2m_mod_div_arr @ 0x10f4d0c\n; > <???> @ 0x42ef8\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:18:09 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x10f4bd4\nMOV             X29, SP                                                ; +0x4, 0x10f4bd8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x10f4bdc\nMOV             X20, X1                                                ; +0xc, 0x10f4be0\nMOV             X19, X0                                                ; +0x10, 0x10f4be4\nMOV             X0, X1                                                 ; +0x14, 0x10f4be8\nMOV             X1, #0                                                 ; +0x18, 0x10f4bec\nBL              BN_set_word                                            ; +0x1c, 0x10f4bf0\nB               loc_10F4C04                                            ; +0x20, 0x10f4bf4\nMOV             X0, X20                                                ; +0x24, 0x10f4bf8\nBL              BN_set_bit                                             ; +0x28, 0x10f4bfc\nCBZ             W0, loc_10F4C14                                        ; +0x2c, 0x10f4c00\nLDR             W1, [X19],#4                                           ; +0x30, 0x10f4c04\nCMN             W1, #1                                                 ; +0x34, 0x10f4c08\nB.NE            loc_10F4BF8                                            ; +0x38, 0x10f4c0c\nMOV             W0, #1                                                 ; +0x3c, 0x10f4c10\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0x10f4c14\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x10f4c18\nRET                                                                    ; +0x48, 0x10f4c1c", "xrefs": ["BN_GF2m_mod_inv_arr @ 0x10f4c64", "BN_GF2m_mod_div_arr @ 0x10f4d0c", "<???> @ 0x42ef8"], "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"}