{"type": "func", "start": 4301677680, "end": 4301677868, "name": "-[EAGLView mouseDownExec:]", "pseudocode": "// \n// -[EAGLView mouseDownExec:] from 0x100666470 to 0x10066652c (188 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10099b0c0\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\nvoid __cdecl -[EAGLView mouseDownExec:](EAGLView *self, SEL a2, id a3)\n{\n  float frameZoomFactor; // xmm1_4\n  float backingScaleFactor; // xmm2_4\n  cocos2d::CCDirector *v6; // rax\n  unsigned int v7; // [rsp+Ch] [rbp-24h] BYREF\n  float v8; // [rsp+10h] [rbp-20h] BYREF\n  float v9[7]; // [rsp+14h] [rbp-1Ch] BYREF\n\n  objc_msgSend(a3, \"timestamp\");\n  v7 = (unsigned int)objc_msgSend(a3, \"eventNumber\");\n  frameZoomFactor = self->frameZoomFactor_;\n  backingScaleFactor = self->_backingScaleFactor;\n  v8 = (float)(self->_mouseX / frameZoomFactor) / backingScaleFactor;\n  v9[0] = (float)(self->_mouseY / frameZoomFactor) / backingScaleFactor;\n  v6 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCEGLView *, __int64, unsigned int *, float *, float *))v6->m_pobOpenGLView->handleTouchesBegin)(\n    v6->m_pobOpenGLView,\n    1,\n    &v7,\n    &v8,\n    v9);\n}", "assembly": "; \n; -[EAGLView mouseDownExec:] from 0x100666470 to 0x10066652c (188 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10099b0c0\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\npush    rbp                                                            ; +0x0, 0x100666470\nmov     rbp, rsp                                                       ; +0x1, 0x100666471\npush    r15                                                            ; +0x4, 0x100666474\npush    r14                                                            ; +0x6, 0x100666476\npush    rbx                                                            ; +0x8, 0x100666478\nsub     rsp, 18h                                                       ; +0x9, 0x100666479\nmov     r14, rdx                                                       ; +0xd, 0x10066647d\nmov     rbx, rdi                                                       ; +0x10, 0x100666480\nmov     rsi, cs:selRef_timestamp; SEL                                  ; +0x13, 0x100666483\nmov     r15, cs:_objc_msgSend_ptr                                      ; +0x1a, 0x10066648a\nmov     rdi, rdx; id                                                   ; +0x21, 0x100666491\ncall    r15 ; _objc_msgSend                                            ; +0x24, 0x100666494\nmovsd   [rbp+var_30], xmm0                                             ; +0x27, 0x100666497\nmov     rsi, cs:selRef_eventNumber; SEL                                ; +0x2c, 0x10066649c\nmov     rdi, r14; id                                                   ; +0x33, 0x1006664a3\ncall    r15 ; _objc_msgSend                                            ; +0x36, 0x1006664a6\nmov     [rbp+var_24], eax                                              ; +0x39, 0x1006664a9\nmov     rax, cs:_OBJC_IVAR_$_EAGLView__mouseX; float _mouseX;          ; +0x3c, 0x1006664ac\nmovss   xmm0, dword ptr [rbx+rax]                                      ; +0x43, 0x1006664b3\nmov     rax, cs:_OBJC_IVAR_$_EAGLView_frameZoomFactor_; float frameZoomFactor_; ; +0x48, 0x1006664b8\nmovss   xmm1, dword ptr [rbx+rax]                                      ; +0x4f, 0x1006664bf\ndivss   xmm0, xmm1                                                     ; +0x54, 0x1006664c4\nmov     rax, cs:_OBJC_IVAR_$_EAGLView__backingScaleFactor; float _backingScaleFactor; ; +0x58, 0x1006664c8\nmovss   xmm2, dword ptr [rbx+rax]                                      ; +0x5f, 0x1006664cf\ndivss   xmm0, xmm2                                                     ; +0x64, 0x1006664d4\nmovss   [rbp+var_20], xmm0                                             ; +0x68, 0x1006664d8\nmov     rax, cs:_OBJC_IVAR_$_EAGLView__mouseY; float _mouseY;          ; +0x6d, 0x1006664dd\nmovss   xmm0, dword ptr [rbx+rax]                                      ; +0x74, 0x1006664e4\ndivss   xmm0, xmm1                                                     ; +0x79, 0x1006664e9\ndivss   xmm0, xmm2                                                     ; +0x7d, 0x1006664ed\nmovss   [rbp+var_1C], xmm0                                             ; +0x81, 0x1006664f1\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x86, 0x1006664f6\nmov     rdi, [rax+0B8h]                                                ; +0x8b, 0x1006664fb\nmov     rax, [rdi]                                                     ; +0x92, 0x100666502\nlea     rdx, [rbp+var_24]                                              ; +0x95, 0x100666505\nlea     rcx, [rbp+var_20]                                              ; +0x99, 0x100666509\nlea     r8, [rbp+var_1C]                                               ; +0x9d, 0x10066650d\nmov     esi, 1                                                         ; +0xa1, 0x100666511\nmovsd   xmm0, [rbp+var_30]                                             ; +0xa6, 0x100666516\ncall    qword ptr [rax+90h]                                            ; +0xab, 0x10066651b\nadd     rsp, 18h                                                       ; +0xb1, 0x100666521\npop     rbx                                                            ; +0xb5, 0x100666525\npop     r14                                                            ; +0xb6, 0x100666526\npop     r15                                                            ; +0xb8, 0x100666528\npop     rbp                                                            ; +0xba, 0x10066652a\nretn                                                                   ; +0xbb, 0x10066652b", "xrefs": ["<???> @ 0x10099b0c0"], "is_objc": true, "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"}