{"type": "func", "start": 14225788, "end": 14225872, "name": "EC_GROUP_get_cofactor", "pseudocode": "// \n// EC_GROUP_get_cofactor from 0xd9117c to 0xd911d0 (84 bytes)\n// \n// 2 xrefs:\n// > ecdh_simple_compute_key @ 0xd94354\n// > <???> @ 0x52fc8\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\nbool __fastcall EC_GROUP_get_cofactor(__int64 a1, unsigned __int64 *a2)\n{\n  __int64 v2; // x3\n\n  v2 = *(_QWORD *)(a1 + 24);\n  return v2 && BN_copy(a2, v2) && !BN_is_zero(*(_QWORD *)(a1 + 24));\n}", "assembly": "; \n; EC_GROUP_get_cofactor from 0xd9117c to 0xd911d0 (84 bytes)\n; \n; 2 xrefs:\n; > ecdh_simple_compute_key @ 0xd94354\n; > <???> @ 0x52fc8\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd9117c\nMOV             X29, SP                                                ; +0x4, 0xd91180\nLDR             X3, [X0,#0x18]                                         ; +0x8, 0xd91184\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xd91188\nCBZ             X3, loc_D911C0                                         ; +0x10, 0xd9118c\nMOV             X19, X0                                                ; +0x14, 0xd91190\nMOV             X0, X1                                                 ; +0x18, 0xd91194\nMOV             X1, X3                                                 ; +0x1c, 0xd91198\nBL              BN_copy                                                ; +0x20, 0xd9119c\nCBZ             X0, loc_D911C0                                         ; +0x24, 0xd911a0\nLDR             X0, [X19,#0x18]                                        ; +0x28, 0xd911a4\nBL              BN_is_zero                                             ; +0x2c, 0xd911a8\nCMP             W0, WZR                                                ; +0x30, 0xd911ac\nCSET            W0, EQ                                                 ; +0x34, 0xd911b0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xd911b4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xd911b8\nRET                                                                    ; +0x40, 0xd911bc\nMOV             W0, #0                                                 ; +0x44, 0xd911c0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0xd911c4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0xd911c8\nRET                                                                    ; +0x50, 0xd911cc", "xrefs": ["ecdh_simple_compute_key @ 0xd94354", "<???> @ 0x52fc8"], "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"}