{"type": "func", "start": 16839900, "end": 16839984, "name": "EC_GROUP_get_cofactor", "pseudocode": "// \n// EC_GROUP_get_cofactor from 0x100f4dc to 0x100f530 (84 bytes)\n// \n// 2 xrefs:\n// > ecdh_simple_compute_key @ 0x10126b4\n// > <???> @ 0x73378\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:16:01 +0000\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 0x100f4dc to 0x100f530 (84 bytes)\n; \n; 2 xrefs:\n; > ecdh_simple_compute_key @ 0x10126b4\n; > <???> @ 0x73378\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:16:01 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x100f4dc\nMOV             X29, SP                                                ; +0x4, 0x100f4e0\nLDR             X3, [X0,#0x18]                                         ; +0x8, 0x100f4e4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x100f4e8\nCBZ             X3, loc_100F520                                        ; +0x10, 0x100f4ec\nMOV             X19, X0                                                ; +0x14, 0x100f4f0\nMOV             X0, X1                                                 ; +0x18, 0x100f4f4\nMOV             X1, X3                                                 ; +0x1c, 0x100f4f8\nBL              BN_copy                                                ; +0x20, 0x100f4fc\nCBZ             X0, loc_100F520                                        ; +0x24, 0x100f500\nLDR             X0, [X19,#0x18]                                        ; +0x28, 0x100f504\nBL              BN_is_zero                                             ; +0x2c, 0x100f508\nCMP             W0, WZR                                                ; +0x30, 0x100f50c\nCSET            W0, EQ                                                 ; +0x34, 0x100f510\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x100f514\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x100f518\nRET                                                                    ; +0x40, 0x100f51c\nMOV             W0, #0                                                 ; +0x44, 0x100f520\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0x100f524\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0x100f528\nRET                                                                    ; +0x50, 0x100f52c", "xrefs": ["ecdh_simple_compute_key @ 0x10126b4", "<???> @ 0x73378"], "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"}