{"type": "func", "start": 8291532, "end": 8291604, "name": "EC_get_builtin_curves", "pseudocode": "// \n// EC_get_builtin_curves from 0x7e84cc to 0x7e8514 (72 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x615ec\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 EC_get_builtin_curves(int a1, unsigned int a2)\n{\n  bool v2; // zf\n  int *v3; // r3\n  _DWORD *v4; // r2\n  char *v5; // r12\n  int v6; // r0\n  int v7; // r1\n\n  v2 = a2 == 0;\n  if ( a2 )\n    v2 = a1 == 0;\n  if ( !v2 )\n  {\n    v3 = (int *)&unk_AB2154;\n    if ( a2 >= 0x51 )\n      a2 = 81;\n    v4 = (_DWORD *)(a1 + 4);\n    v5 = (char *)&unk_AB2154 + 16 * a2;\n    do\n    {\n      v6 = *v3;\n      v7 = v3[3];\n      v3 += 4;\n      *(v4 - 1) = v6;\n      *v4 = v7;\n      v4 += 2;\n    }\n    while ( v3 != (int *)v5 );\n  }\n  return 81;\n}", "assembly": "; \n; EC_get_builtin_curves from 0x7e84cc to 0x7e8514 (72 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x615ec\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\nCMP             R1, #0                                                 ; +0x0, 0x7e84cc\nCMPNE           R0, #0                                                 ; +0x4, 0x7e84d0\nBEQ             loc_7E850C                                             ; +0x8, 0x7e84d4\nLDR             R3, =(unk_AB2154 - 0x7E84E8)                           ; +0xc, 0x7e84d8\nCMP             R1, #0x51 ; 'Q'                                        ; +0x10, 0x7e84dc\nADD             R3, PC, R3; unk_AB2154                                 ; +0x14, 0x7e84e0\nMOVCS           R1, #0x51 ; 'Q'                                        ; +0x18, 0x7e84e4\nADD             R2, R0, #4                                             ; +0x1c, 0x7e84e8\nADD             R12, R3, R1,LSL#4                                      ; +0x20, 0x7e84ec\nLDR             R0, [R3]                                               ; +0x24, 0x7e84f0\nLDR             R1, [R3,#0xC]                                          ; +0x28, 0x7e84f4\nADD             R3, R3, #0x10                                          ; +0x2c, 0x7e84f8\nCMP             R3, R12                                                ; +0x30, 0x7e84fc\nSTR             R0, [R2,#-4]                                           ; +0x34, 0x7e8500\nSTR             R1, [R2],#8                                            ; +0x38, 0x7e8504\nBNE             loc_7E84F0                                             ; +0x3c, 0x7e8508\nMOV             R0, #0x51 ; 'Q'                                        ; +0x40, 0x7e850c\nBX              LR                                                     ; +0x44, 0x7e8510", "xrefs": ["<???> @ 0x615ec"], "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"}