{"type": "func", "start": 16823196, "end": 16823332, "name": "EC_GROUP_get_trinomial_basis", "pseudocode": "// \n// EC_GROUP_get_trinomial_basis from 0x100b39c to 0x100b424 (136 bytes)\n// \n// 2 xrefs:\n// > EC_GROUP_get_ecparameters @ 0x100bd2c\n// > <???> @ 0x4c4f8\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:59 +0000\n// \n\n__int64 __fastcall EC_GROUP_get_trinomial_basis(_DWORD *a1, _DWORD *a2)\n{\n  __int64 v3; // x0\n  int v4; // w0\n\n  if ( !a1 )\n    return 0;\n  v3 = EC_GROUP_method_of();\n  if ( (unsigned int)EC_METHOD_get_field_type(v3) != 407 || !a1[18] || (v4 = a1[19]) == 0 || a1[20] )\n  {\n    ERR_put_error(16, 194, 66, \"crypto/ec/ec_asn1.c\", 48);\n    return 0;\n  }\n  if ( a2 )\n    *a2 = v4;\n  return 1;\n}", "assembly": "; \n; EC_GROUP_get_trinomial_basis from 0x100b39c to 0x100b424 (136 bytes)\n; \n; 2 xrefs:\n; > EC_GROUP_get_ecparameters @ 0x100bd2c\n; > <???> @ 0x4c4f8\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:59 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x100b39c\nMOV             X29, SP                                                ; +0x4, 0x100b3a0\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0x100b3a4\nMOV             X19, X0                                                ; +0xc, 0x100b3a8\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0x100b3ac\nCBZ             X0, loc_100B40C                                        ; +0x14, 0x100b3b0\nBL              EC_GROUP_method_of                                     ; +0x18, 0x100b3b4\nBL              EC_METHOD_get_field_type                               ; +0x1c, 0x100b3b8\nCMP             W0, #0x197                                             ; +0x20, 0x100b3bc\nB.NE            loc_100B3F0                                            ; +0x24, 0x100b3c0\nLDR             W0, [X19,#0x48]                                        ; +0x28, 0x100b3c4\nCBZ             W0, loc_100B3F0                                        ; +0x2c, 0x100b3c8\nLDR             W0, [X19,#0x4C]                                        ; +0x30, 0x100b3cc\nCBZ             W0, loc_100B3F0                                        ; +0x34, 0x100b3d0\nLDR             W2, [X19,#0x50]                                        ; +0x38, 0x100b3d4\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x3c, 0x100b3d8\nCBNZ            W2, loc_100B3F0                                        ; +0x40, 0x100b3dc\nCBZ             X1, loc_100B41C                                        ; +0x44, 0x100b3e0\nSTR             W0, [X1]                                               ; +0x48, 0x100b3e4\nMOV             W0, #1                                                 ; +0x4c, 0x100b3e8\nB               loc_100B410                                            ; +0x50, 0x100b3ec\nADRP            X3, #aCryptoEcEcAsn1@PAGE; \"crypto/ec/ec_asn1.c\"       ; +0x54, 0x100b3f0\nMOV             W0, #0x10                                              ; +0x58, 0x100b3f4\nMOV             W1, #0xC2                                              ; +0x5c, 0x100b3f8\nMOV             W2, #0x42 ; 'B'                                        ; +0x60, 0x100b3fc\nADD             X3, X3, #aCryptoEcEcAsn1@PAGEOFF; \"crypto/ec/ec_asn1.c\" ; +0x64, 0x100b400\nMOV             W4, #0x30 ; '0'                                        ; +0x68, 0x100b404\nBL              ERR_put_error                                          ; +0x6c, 0x100b408\nMOV             W0, #0                                                 ; +0x70, 0x100b40c\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x74, 0x100b410\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0x100b414\nRET                                                                    ; +0x7c, 0x100b418\nMOV             W0, #1                                                 ; +0x80, 0x100b41c\nB               loc_100B410                                            ; +0x84, 0x100b420", "xrefs": ["EC_GROUP_get_ecparameters @ 0x100bd2c", "<???> @ 0x4c4f8"], "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"}