{"type": "func", "start": 14187732, "end": 14187816, "name": "DH_set_method", "pseudocode": "// \n// DH_set_method from 0xd87cd4 to 0xd87d28 (84 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x85440\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\n__int64 __fastcall DH_set_method(__int64 a1, __int64 a2)\n{\n  void (*v4)(void); // x1\n  void (__fastcall *v5)(__int64); // x1\n\n  v4 = *(void (**)(void))(*(_QWORD *)(a1 + 120) + 40LL);\n  if ( v4 )\n    v4();\n  ENGINE_finish(*(_QWORD *)(a1 + 128));\n  v5 = *(void (__fastcall **)(__int64))(a2 + 32);\n  *(_QWORD *)(a1 + 128) = 0;\n  *(_QWORD *)(a1 + 120) = a2;\n  if ( v5 )\n    v5(a1);\n  return 1;\n}", "assembly": "; \n; DH_set_method from 0xd87cd4 to 0xd87d28 (84 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x85440\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,#-0x20+var_s0]!                          ; +0x0, 0xd87cd4\nMOV             X29, SP                                                ; +0x4, 0xd87cd8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xd87cdc\nMOV             X20, X1                                                ; +0xc, 0xd87ce0\nLDR             X1, [X0,#0x78]                                         ; +0x10, 0xd87ce4\nMOV             X19, X0                                                ; +0x14, 0xd87ce8\nLDR             X1, [X1,#0x28]                                         ; +0x18, 0xd87cec\nCBZ             X1, loc_D87CF8                                         ; +0x1c, 0xd87cf0\nBLR             X1                                                     ; +0x20, 0xd87cf4\nLDR             X0, [X19,#0x80]                                        ; +0x24, 0xd87cf8\nBL              ENGINE_finish                                          ; +0x28, 0xd87cfc\nLDR             X1, [X20,#0x20]                                        ; +0x2c, 0xd87d00\nSTR             XZR, [X19,#0x80]                                       ; +0x30, 0xd87d04\nSTR             X20, [X19,#0x78]                                       ; +0x34, 0xd87d08\nCBZ             X1, loc_D87D18                                         ; +0x38, 0xd87d0c\nMOV             X0, X19                                                ; +0x3c, 0xd87d10\nBLR             X1                                                     ; +0x40, 0xd87d14\nMOV             W0, #1                                                 ; +0x44, 0xd87d18\nLDP             X19, X20, [SP,#var_s10]                                ; +0x48, 0xd87d1c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x4c, 0xd87d20\nRET                                                                    ; +0x50, 0xd87d24", "xrefs": ["<???> @ 0x85440"], "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"}