https://bugs.winehq.org/show_bug.cgi?id=52736
--- Comment #4 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Fabian Maurer from comment #3)
Created attachment 72100 [details] Hack to "work around" the issue
As noted, this is dependent on the optimizations. This hack makes it work even with -O2, hopefully narrowing it a bit down...
Does it help if you add DECLSPEC_HOTPATCH to these methods enstead?