; ; cocos2d::CCLayer::setAccelerometerEnabled from 0x180050990 to 0x180050a0f (127 bytes) ; ; 8 xrefs: ; > @ 0x1800ed2a8 ; > @ 0x1800ed768 ; > @ 0x1800edca0 ; > @ 0x1800ee208 ; > @ 0x1800ee7e0 ; > @ 0x1800f70b0 ; > @ 0x1801438a8 ; > @ 0x1801b2040 ; ; 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, 0x180050990 push rdi ; +0x5, 0x180050995 sub rsp, 20h ; +0x6, 0x180050996 movzx ebx, dl ; +0xa, 0x18005099a mov rdi, rcx ; +0xd, 0x18005099d cmp dl, [rcx+169h] ; +0x10, 0x1800509a0 jz short loc_180050A04 ; +0x16, 0x1800509a6 cmp byte ptr [rcx+110h], 0 ; +0x18, 0x1800509a8 mov [rcx+169h], dl ; +0x1f, 0x1800509af jz short loc_180050A04 ; +0x25, 0x1800509b5 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x27, 0x1800509b7 mov rdx, [rax] ; +0x2c, 0x1800509bc test bl, bl ; +0x2f, 0x1800509bf jz short loc_1800509F1 ; +0x31, 0x1800509c1 xor ecx, ecx ; +0x33, 0x1800509c3 lea rbx, [rdi+148h] ; +0x35, 0x1800509c5 test rdi, rdi ; +0x3c, 0x1800509cc cmovz rbx, rcx ; +0x3f, 0x1800509cf mov rcx, rax ; +0x43, 0x1800509d3 call qword ptr [rdx+0D0h] ; +0x46, 0x1800509d6 mov rcx, rax; this ; +0x4c, 0x1800509dc mov rdx, rbx; struct cocos2d::CCAccelerometerDelegate * ; +0x4f, 0x1800509df mov rbx, [rsp+28h+arg_0] ; +0x52, 0x1800509e2 add rsp, 20h ; +0x57, 0x1800509e7 pop rdi ; +0x5b, 0x1800509eb jmp ?setDelegate@CCAccelerometer@cocos2d@@QEAAXPEAVCCAccelerometerDelegate@2@@Z; cocos2d::CCAccelerometer::setDelegate(cocos2d::CCAccelerometerDelegate *) ; +0x5c, 0x1800509ec mov rcx, rax ; +0x61, 0x1800509f1 call qword ptr [rdx+0D0h] ; +0x64, 0x1800509f4 mov rcx, rax; this ; +0x6a, 0x1800509fa xor edx, edx; struct cocos2d::CCAccelerometerDelegate * ; +0x6d, 0x1800509fd call ?setDelegate@CCAccelerometer@cocos2d@@QEAAXPEAVCCAccelerometerDelegate@2@@Z; cocos2d::CCAccelerometer::setDelegate(cocos2d::CCAccelerometerDelegate *) ; +0x6f, 0x1800509ff mov rbx, [rsp+28h+arg_0] ; +0x74, 0x180050a04 add rsp, 20h ; +0x79, 0x180050a09 pop rdi ; +0x7d, 0x180050a0d retn ; +0x7e, 0x180050a0e