-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisp.asm
82 lines (71 loc) · 1.34 KB
/
disp.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
%include "gdlib.asm"
section .text
global _get_xPosition
_get_xPosition:
push rbp
mov rbp,rsp
movsd xmm0, [rdi+0x6b0]
pop rbp
ret
extern _baseAddress
extern _eventTapCallback
global _dispatchAsm
extern _routBoth
global _routAsm
_dispatchAsm:
push rbp
mov rbp, rsp
push rdi
push rsi
push rdx
call _eventTapCallback
call _baseAddress
add rax, 0xe81a4
pop rdx
pop rsi
pop rdi
pop rbp
push rbp ; CODE XREF=-[AppController ddhidJoystick:buttonDown:]+134, -[AppController ddhidJoystick:buttonUp:]+97, -[EAGLView keyDown:]+145, -[EAGLView keyUp:]+111
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x18
mov r12d, edx
jmp rax
_routAsm:
push rbp
mov rbp, rsp
push rdi
push rsi
push rdx
movss xmm10, xmm0
call _routBoth
call _baseAddress
add rax, 0x78b7a
movss xmm0, xmm10
pop rdx
pop rsi
pop rdi
pop rbp
push rbp ; CODE XREF=_ZN9PlayLayer6updateEPvf+1599
mov rbp, rsp
push r14
push rbx
sub rsp, 0x10
movss dword [rbp-0x14], xmm0
mov rbx, rdi
cmp byte [rbx+0x700], 0x0
jmp rax
global _toStdStr
_toStdStr:
push rbp
mov rbp, rsp
sub rsp, 0x28
lea rdx,[rsp-0x10]
relcall 0x489fc0 ; new string
add rsp, 0x28
pop rbp
ret