; ; cocos2d::CCApplication::setupVerticalSync from 0x180073d70 to 0x180073e1a (170 bytes) ; ; 4 xrefs: ; > cocos2d::CCApplication::run @ 0x1800734f0 ; > @ 0x1801438a8 ; > @ 0x1801b44a0 ; > @ 0x1801b44ac ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180073d70 push rdi ; +0x5, 0x180073d75 sub rsp, 20h ; +0x6, 0x180073d76 mov rbx, rcx ; +0xa, 0x180073d7a lea rcx, aWglgetextensio; "wglGetExtensionsStringEXT" ; +0xd, 0x180073d7d call cs:wglGetProcAddress ; +0x14, 0x180073d84 mov rdi, rax ; +0x1a, 0x180073d8a call rdi ; +0x1d, 0x180073d8d mov rcx, rax; Str ; +0x1f, 0x180073d8f lea rdx, SubStr; "WGL_EXT_swap_control" ; +0x22, 0x180073d92 call strstr ; +0x29, 0x180073d99 test rax, rax ; +0x2e, 0x180073d9e jz short loc_180073DCD ; +0x31, 0x180073da1 call rdi ; +0x33, 0x180073da3 mov rcx, rax; Str ; +0x35, 0x180073da5 lea rdx, aExtSwapControl; "EXT_swap_control_tear" ; +0x38, 0x180073da8 call strstr ; +0x3f, 0x180073daf test rax, rax ; +0x44, 0x180073db4 lea rcx, aWglswapinterva; "wglSwapIntervalEXT" ; +0x47, 0x180073db7 setnz al ; +0x4e, 0x180073dbe mov [rbx+0B9h], al ; +0x51, 0x180073dc1 call cs:wglGetProcAddress ; +0x57, 0x180073dc7 lea rcx, aWglExtSwapCont_0; "WGL_EXT_swap_control_tear" ; +0x5d, 0x180073dcd mov cs:qword_1801A84C8, rax ; +0x64, 0x180073dd4 call sub_1800D3240 ; +0x6b, 0x180073ddb cmp eax, 1 ; +0x70, 0x180073de0 jz short loc_180073E08 ; +0x73, 0x180073de3 lea rcx, aGlxExtSwapCont; "GLX_EXT_swap_control_tear" ; +0x75, 0x180073de5 call sub_1800D3240 ; +0x7c, 0x180073dec cmp eax, 1 ; +0x81, 0x180073df1 jz short loc_180073E08 ; +0x84, 0x180073df4 mov byte ptr [rbx+0B9h], 0 ; +0x86, 0x180073df6 mov rbx, [rsp+28h+arg_0] ; +0x8d, 0x180073dfd add rsp, 20h ; +0x92, 0x180073e02 pop rdi ; +0x96, 0x180073e06 retn ; +0x97, 0x180073e07 mov byte ptr [rbx+0B9h], 1 ; +0x98, 0x180073e08 mov rbx, [rsp+28h+arg_0] ; +0x9f, 0x180073e0f add rsp, 20h ; +0xa4, 0x180073e14 pop rdi ; +0xa8, 0x180073e18 retn ; +0xa9, 0x180073e19