{"type": "func", "start": 4295093696, "end": 4295093907, "name": "CCMenuItemToggler::selectedTouch", "pseudocode": "// \n// CCMenuItemToggler::selectedTouch from 0x10001edc0 to 0x10001ee93 (211 bytes)\n// \n// 1 xrefs:\n// > CCMenuItemToggler::init @ 0x10001eaf1\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:18:57 +0000\n// \n\nvoid __fastcall CCMenuItemToggler::selectedTouch(__int64 a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rax\n  __int64 v4; // [rsp-28h] [rbp-28h] BYREF\n  float v5[8]; // [rsp-20h] [rbp-20h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 393) )\n  {\n    *(_BYTE *)(a1 + 392) = 0;\n    (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 376) + 344LL))(*(_QWORD *)(a1 + 376), 1);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 384) + 344LL))(*(_QWORD *)(a1 + 384), 0);\n    v2 = *(_QWORD *)(a1 + 8LL * *(unsigned __int8 *)(a1 + 392) + 376);\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 328LL))(v2);\n    sub_100278630(v5, v3);\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 320LL))(a1, v5);\n    sub_100278250(&v4, v5[0] * 0.5, 0.5 * v5[1]);\n    (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 376) + 184LL))(*(_QWORD *)(a1 + 376), &v4);\n    (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 384) + 184LL))(*(_QWORD *)(a1 + 384), &v4);\n  }\n}", "assembly": "; \n; CCMenuItemToggler::selectedTouch from 0x10001edc0 to 0x10001ee93 (211 bytes)\n; \n; 1 xrefs:\n; > CCMenuItemToggler::init @ 0x10001eaf1\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:18:57 +0000\n; \ncmp     byte ptr [rdi+189h], 0                                         ; +0x0, 0x10001edc0\njnz     locret_10001EE92                                               ; +0x7, 0x10001edc7\npush    rbp                                                            ; +0xd, 0x10001edcd\nmov     rbp, rsp                                                       ; +0xe, 0x10001edce\npush    r14                                                            ; +0x11, 0x10001edd1\npush    rbx                                                            ; +0x13, 0x10001edd3\nsub     rsp, 10h                                                       ; +0x14, 0x10001edd4\nmov     byte ptr [rdi+188h], 0                                         ; +0x18, 0x10001edd8\nmov     rax, [rdi+178h]                                                ; +0x1f, 0x10001eddf\nmov     rcx, [rax]                                                     ; +0x26, 0x10001ede6\nmov     rbx, rdi                                                       ; +0x29, 0x10001ede9\nmov     rdi, rax                                                       ; +0x2c, 0x10001edec\nmov     esi, 1                                                         ; +0x2f, 0x10001edef\ncall    qword ptr [rcx+158h]                                           ; +0x34, 0x10001edf4\nmov     rdi, [rbx+180h]                                                ; +0x3a, 0x10001edfa\nmov     rax, [rdi]                                                     ; +0x41, 0x10001ee01\nxor     esi, esi                                                       ; +0x44, 0x10001ee04\ncall    qword ptr [rax+158h]                                           ; +0x46, 0x10001ee06\nmovzx   eax, byte ptr [rbx+188h]                                       ; +0x4c, 0x10001ee0c\nmov     rdi, [rbx+rax*8+178h]                                          ; +0x53, 0x10001ee13\nmov     rax, [rdi]                                                     ; +0x5b, 0x10001ee1b\ncall    qword ptr [rax+148h]                                           ; +0x5e, 0x10001ee1e\nlea     r14, [rbp-18h]                                                 ; +0x64, 0x10001ee24\nmov     rdi, r14                                                       ; +0x68, 0x10001ee28\nmov     rsi, rax                                                       ; +0x6b, 0x10001ee2b\ncall    sub_100278630                                                  ; +0x6e, 0x10001ee2e\nmov     rax, [rbx]                                                     ; +0x73, 0x10001ee33\nmov     rdi, rbx                                                       ; +0x76, 0x10001ee36\nmov     rsi, r14                                                       ; +0x79, 0x10001ee39\ncall    qword ptr [rax+140h]                                           ; +0x7c, 0x10001ee3c\nmovss   xmm1, cs:dword_100A03578                                       ; +0x82, 0x10001ee42\nmovss   xmm0, dword ptr [rbp-18h]                                      ; +0x8a, 0x10001ee4a\nmulss   xmm0, xmm1                                                     ; +0x8f, 0x10001ee4f\nmulss   xmm1, dword ptr [rbp-14h]                                      ; +0x93, 0x10001ee53\nlea     r14, [rbp-20h]                                                 ; +0x98, 0x10001ee58\nmov     rdi, r14                                                       ; +0x9c, 0x10001ee5c\ncall    sub_100278250                                                  ; +0x9f, 0x10001ee5f\nmov     rdi, [rbx+178h]                                                ; +0xa4, 0x10001ee64\nmov     rax, [rdi]                                                     ; +0xab, 0x10001ee6b\nmov     rsi, r14                                                       ; +0xae, 0x10001ee6e\ncall    qword ptr [rax+0B8h]                                           ; +0xb1, 0x10001ee71\nmov     rdi, [rbx+180h]                                                ; +0xb7, 0x10001ee77\nmov     rax, [rdi]                                                     ; +0xbe, 0x10001ee7e\nmov     rsi, r14                                                       ; +0xc1, 0x10001ee81\ncall    qword ptr [rax+0B8h]                                           ; +0xc4, 0x10001ee84\nadd     rsp, 10h                                                       ; +0xca, 0x10001ee8a\npop     rbx                                                            ; +0xce, 0x10001ee8e\npop     r14                                                            ; +0xcf, 0x10001ee8f\npop     rbp                                                            ; +0xd1, 0x10001ee91\nretn                                                                   ; +0xd2, 0x10001ee92", "xrefs": ["CCMenuItemToggler::init @ 0x10001eaf1"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}