{"type": "func", "start": 17402928, "end": 17403000, "name": "BN_RECP_CTX_set", "pseudocode": "// \n// BN_RECP_CTX_set from 0x1098c30 to 0x1098c78 (72 bytes)\n// \n// 3 xrefs:\n// > sub_10945E0 @ 0x10946b0\n// > sub_10945E0 @ 0x10948a8\n// > <???> @ 0xe3ad0\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:17:24 +0000\n// \n\nunsigned __int64 *__fastcall BN_RECP_CTX_set(__int64 a1, __int64 a2)\n{\n  unsigned __int64 *result; // x0\n  int v5; // w0\n\n  result = BN_copy((unsigned __int64 *)a1, a2);\n  if ( result )\n  {\n    BN_set_word(a1 + 24, 0);\n    v5 = BN_num_bits(a2);\n    *(_DWORD *)(a1 + 52) = 0;\n    *(_DWORD *)(a1 + 48) = v5;\n    return (_QWORD *)(dword_0 + 1);\n  }\n  return result;\n}", "assembly": "; \n; BN_RECP_CTX_set from 0x1098c30 to 0x1098c78 (72 bytes)\n; \n; 3 xrefs:\n; > sub_10945E0 @ 0x10946b0\n; > sub_10945E0 @ 0x10948a8\n; > <???> @ 0xe3ad0\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:17:24 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x1098c30\nMOV             X29, SP                                                ; +0x4, 0x1098c34\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x1098c38\nMOV             X19, X0                                                ; +0xc, 0x1098c3c\nMOV             X20, X1                                                ; +0x10, 0x1098c40\nBL              BN_copy                                                ; +0x14, 0x1098c44\nCBZ             X0, loc_1098C6C                                        ; +0x18, 0x1098c48\nMOV             X1, #0                                                 ; +0x1c, 0x1098c4c\nADD             X0, X19, #0x18                                         ; +0x20, 0x1098c50\nBL              BN_set_word                                            ; +0x24, 0x1098c54\nMOV             X0, X20                                                ; +0x28, 0x1098c58\nBL              BN_num_bits                                            ; +0x2c, 0x1098c5c\nSTR             WZR, [X19,#0x34]                                       ; +0x30, 0x1098c60\nSTR             W0, [X19,#0x30]                                        ; +0x34, 0x1098c64\nMOV             W0, #1                                                 ; +0x38, 0x1098c68\nLDP             X19, X20, [SP,#var_s10]                                ; +0x3c, 0x1098c6c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x40, 0x1098c70\nRET                                                                    ; +0x44, 0x1098c74", "xrefs": ["sub_10945E0 @ 0x10946b0", "sub_10945E0 @ 0x10948a8", "<???> @ 0xe3ad0"], "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"}