{"type": "func", "start": 16767772, "end": 16767904, "name": "BN_mul_word", "pseudocode": "// \n// BN_mul_word from 0xffdb1c to 0xffdba0 (132 bytes)\n// \n// 9 xrefs:\n// > a2d_ASN1_OBJECT @ 0xfe1c0c\n// > BN_dec2bn @ 0xffc4d8\n// > ec_GFp_simple_group_check_discriminant @ 0x1017a2c\n// > BN_mod_exp_mont_word @ 0x1095b1c\n// > BN_mod_exp_mont_word @ 0x1095b60\n// > BN_mod_exp_mont_word @ 0x1095c30\n// > int_bn_mod_inverse @ 0x109704c\n// > bn_probable_prime_dh_coprime @ 0x10f53c0\n// > <???> @ 0xa9ca8\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:52 +0000\n// \n\nunsigned __int64 *__fastcall BN_mul_word(unsigned __int64 *a1, __int64 a2)\n{\n  __int64 v2; // x2\n  __int64 v4; // x20\n  unsigned __int64 *result; // x0\n  int v6; // w1\n  unsigned __int64 v7; // x2\n\n  v2 = *((unsigned int *)a1 + 2);\n  if ( !(_DWORD)v2 )\n    return (_QWORD *)(dword_0 + 1);\n  if ( !a2 )\n  {\n    BN_set_word((__int64)a1, 0);\n    return (_QWORD *)(dword_0 + 1);\n  }\n  v4 = bn_mul_words(*a1, *a1, v2, a2);\n  if ( !v4 )\n    return (_QWORD *)(dword_0 + 1);\n  result = bn_wexpand(a1, *((_DWORD *)a1 + 2) + 1);\n  if ( result )\n  {\n    v6 = *((_DWORD *)a1 + 2);\n    v7 = *a1;\n    *((_DWORD *)a1 + 2) = v6 + 1;\n    *(_QWORD *)(v7 + 8LL * v6) = v4;\n    return (_QWORD *)(dword_0 + 1);\n  }\n  return result;\n}", "assembly": "; \n; BN_mul_word from 0xffdb1c to 0xffdba0 (132 bytes)\n; \n; 9 xrefs:\n; > a2d_ASN1_OBJECT @ 0xfe1c0c\n; > BN_dec2bn @ 0xffc4d8\n; > ec_GFp_simple_group_check_discriminant @ 0x1017a2c\n; > BN_mod_exp_mont_word @ 0x1095b1c\n; > BN_mod_exp_mont_word @ 0x1095b60\n; > BN_mod_exp_mont_word @ 0x1095c30\n; > int_bn_mod_inverse @ 0x109704c\n; > bn_probable_prime_dh_coprime @ 0x10f53c0\n; > <???> @ 0xa9ca8\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:52 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xffdb1c\nMOV             X3, X1                                                 ; +0x4, 0xffdb20\nMOV             X29, SP                                                ; +0x8, 0xffdb24\nLDR             W2, [X0,#8]                                            ; +0xc, 0xffdb28\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0xffdb2c\nCBZ             W2, loc_FFDB50                                         ; +0x14, 0xffdb30\nMOV             X19, X0                                                ; +0x18, 0xffdb34\nCBZ             X1, loc_FFDB60                                         ; +0x1c, 0xffdb38\nLDR             X0, [X0]                                               ; +0x20, 0xffdb3c\nMOV             X1, X0                                                 ; +0x24, 0xffdb40\nBL              bn_mul_words                                           ; +0x28, 0xffdb44\nMOV             X20, X0                                                ; +0x2c, 0xffdb48\nCBNZ            X0, loc_FFDB68                                         ; +0x30, 0xffdb4c\nMOV             W0, #1                                                 ; +0x34, 0xffdb50\nLDP             X19, X20, [SP,#var_s10]                                ; +0x38, 0xffdb54\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x3c, 0xffdb58\nRET                                                                    ; +0x40, 0xffdb5c\nBL              BN_set_word                                            ; +0x44, 0xffdb60\nB               loc_FFDB50                                             ; +0x48, 0xffdb64\nLDR             W1, [X19,#8]                                           ; +0x4c, 0xffdb68\nMOV             X0, X19                                                ; +0x50, 0xffdb6c\nADD             W1, W1, #1                                             ; +0x54, 0xffdb70\nBL              bn_wexpand                                             ; +0x58, 0xffdb74\nCBZ             X0, loc_FFDB54                                         ; +0x5c, 0xffdb78\nLDR             W1, [X19,#8]                                           ; +0x60, 0xffdb7c\nMOV             W0, #1                                                 ; +0x64, 0xffdb80\nLDR             X2, [X19]                                              ; +0x68, 0xffdb84\nADD             W3, W1, W0                                             ; +0x6c, 0xffdb88\nSTR             W3, [X19,#8]                                           ; +0x70, 0xffdb8c\nSTR             X20, [X2,W1,SXTW#3]                                    ; +0x74, 0xffdb90\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0xffdb94\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0xffdb98\nRET                                                                    ; +0x80, 0xffdb9c", "xrefs": ["a2d_ASN1_OBJECT @ 0xfe1c0c", "BN_dec2bn @ 0xffc4d8", "ec_GFp_simple_group_check_discriminant @ 0x1017a2c", "BN_mod_exp_mont_word @ 0x1095b1c", "BN_mod_exp_mont_word @ 0x1095b60", "BN_mod_exp_mont_word @ 0x1095c30", "int_bn_mod_inverse @ 0x109704c", "bn_probable_prime_dh_coprime @ 0x10f53c0", "<???> @ 0xa9ca8"], "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"}