{"type": "func", "start": 4295002144, "end": 4295002257, "name": "-[AppController leftMouseDown]", "pseudocode": "// \n// -[AppController leftMouseDown] from 0x100008820 to 0x100008891 (113 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009991d0\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 -[AppController leftMouseDown](AppController *self, SEL a2)\n{\n  __CGEvent *v2; // rbx\n  CGPoint Location; // kr00_16\n  __CGEvent *MouseEvent; // rbx\n\n  self->_mouseDown = 1;\n  v2 = CGEventCreate(nullptr);\n  Location = CGEventGetLocation(v2);\n  CFRelease(v2);\n  MouseEvent = CGEventCreateMouseEvent(nullptr, kCGEventLeftMouseDown, Location, kCGMouseButtonLeft);\n  CGEventSetType(MouseEvent, kCGEventLeftMouseDown);\n  CGEventPost(kCGHIDEventTap, MouseEvent);\n  CFRelease(MouseEvent);\n}", "assembly": "; \n; -[AppController leftMouseDown] from 0x100008820 to 0x100008891 (113 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009991d0\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, 0x100008820\nmov     rbp, rsp                                                       ; +0x1, 0x100008821\npush    rbx                                                            ; +0x4, 0x100008824\nsub     rsp, 18h                                                       ; +0x5, 0x100008825\nmov     byte ptr [rdi+1Dh], 1                                          ; +0x9, 0x100008829\nxor     edi, edi; source                                               ; +0xd, 0x10000882d\ncall    _CGEventCreate                                                 ; +0xf, 0x10000882f\nmov     rbx, rax                                                       ; +0x14, 0x100008834\nmov     rdi, rax; event                                                ; +0x17, 0x100008837\ncall    _CGEventGetLocation                                            ; +0x1a, 0x10000883a\nmovsd   [rbp+mouseCursorPosition.x], xmm0                              ; +0x1f, 0x10000883f\nmovsd   [rbp+mouseCursorPosition.y], xmm1                              ; +0x24, 0x100008844\nmov     rdi, rbx; cf                                                   ; +0x29, 0x100008849\ncall    _CFRelease                                                     ; +0x2c, 0x10000884c\nxor     edi, edi; source                                               ; +0x31, 0x100008851\nmov     esi, 1; mouseType                                              ; +0x33, 0x100008853\nmovsd   xmm0, [rbp+mouseCursorPosition.x]; mouseCursorPosition         ; +0x38, 0x100008858\nmovsd   xmm1, [rbp+mouseCursorPosition.y]; mouseCursorPosition         ; +0x3d, 0x10000885d\nxor     edx, edx; mouseButton                                          ; +0x42, 0x100008862\ncall    _CGEventCreateMouseEvent                                       ; +0x44, 0x100008864\nmov     rbx, rax                                                       ; +0x49, 0x100008869\nmov     rdi, rax; event                                                ; +0x4c, 0x10000886c\nmov     esi, 1; type                                                   ; +0x4f, 0x10000886f\ncall    _CGEventSetType                                                ; +0x54, 0x100008874\nxor     edi, edi; tap                                                  ; +0x59, 0x100008879\nmov     rsi, rbx; event                                                ; +0x5b, 0x10000887b\ncall    _CGEventPost                                                   ; +0x5e, 0x10000887e\nmov     rdi, rbx; cf                                                   ; +0x63, 0x100008883\nadd     rsp, 18h                                                       ; +0x66, 0x100008886\npop     rbx                                                            ; +0x6a, 0x10000888a\npop     rbp                                                            ; +0x6b, 0x10000888b\njmp     _CFRelease                                                     ; +0x6c, 0x10000888c", "xrefs": ["<???> @ 0x1009991d0"], "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"}