{"type": "func", "start": 5372905824, "end": 5372905987, "name": "SetupObjectOptionsPopup::onSinglePlayerTouch", "pseudocode": "// \n// SetupObjectOptionsPopup::onSinglePlayerTouch from 0x140400960 to 0x140400a03 (163 bytes)\n// \n// 4 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403feada\n// > <???> @ 0x14069e870\n// > <???> @ 0x14069e880\n// > <???> @ 0x1406d87e0\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 SetupObjectOptionsPopup::onSinglePlayerTouch(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  GameObject *m_gameObject; // rax\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = !a1->m_singlePlayerTouch;\n  a1->m_singlePlayerTouch = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    if ( m_gameObject->m_classType == Effect )\n      LOBYTE(m_gameObject[1].m_transformToBatch.tx) = v3;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      if ( v6[22].m_uAutoReleaseCount == 1 )\n        LOBYTE(v6[31].m_uReference) = a1->m_singlePlayerTouch;\n    }\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onSinglePlayerTouch from 0x140400960 to 0x140400a03 (163 bytes)\n; \n; 4 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403feada\n; > <???> @ 0x14069e870\n; > <???> @ 0x14069e880\n; > <???> @ 0x1406d87e0\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    rdi                                                            ; +0x0, 0x140400960\nsub     rsp, 20h                                                       ; +0x2, 0x140400962\ncmp     byte ptr [rcx+2B1h], 0                                         ; +0x6, 0x140400966\nmov     rdi, rcx                                                       ; +0xd, 0x14040096d\nsetz    al                                                             ; +0x10, 0x140400970\nmovzx   ecx, al                                                        ; +0x13, 0x140400973\nmov     [rdi+2B1h], al                                                 ; +0x16, 0x140400976\nmov     rax, [rdi+280h]                                                ; +0x1c, 0x14040097c\ntest    rax, rax                                                       ; +0x23, 0x140400983\njz      short loc_14040099D                                            ; +0x26, 0x140400986\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x28, 0x140400988\njnz     short loc_1404009FD                                            ; +0x2f, 0x14040098f\nmov     [rax+6DCh], cl                                                 ; +0x31, 0x140400991\nadd     rsp, 20h                                                       ; +0x37, 0x140400997\npop     rdi                                                            ; +0x3b, 0x14040099b\nretn                                                                   ; +0x3c, 0x14040099c\nmov     rcx, [rdi+288h]                                                ; +0x3d, 0x14040099d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x44, 0x1404009a4\nxor     ebx, ebx                                                       ; +0x49, 0x1404009a9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x1404009ab\ntest    eax, eax                                                       ; +0x51, 0x1404009b1\njz      short loc_1404009F8                                            ; +0x53, 0x1404009b3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x55, 0x1404009b5\nmov     rcx, [rdi+288h]                                                ; +0x60, 0x1404009c0\nmov     edx, ebx                                                       ; +0x67, 0x1404009c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1404009c9\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x6f, 0x1404009cf\njnz     short loc_1404009E5                                            ; +0x76, 0x1404009d6\nmovzx   ecx, byte ptr [rdi+2B1h]                                       ; +0x78, 0x1404009d8\nmov     [rax+6DCh], cl                                                 ; +0x7f, 0x1404009df\nmov     rcx, [rdi+288h]                                                ; +0x85, 0x1404009e5\ninc     ebx                                                            ; +0x8c, 0x1404009ec\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8e, 0x1404009ee\ncmp     ebx, eax                                                       ; +0x94, 0x1404009f4\njb      short loc_1404009C0                                            ; +0x96, 0x1404009f6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x1404009f8\nadd     rsp, 20h                                                       ; +0x9d, 0x1404009fd\npop     rdi                                                            ; +0xa1, 0x140400a01\nretn                                                                   ; +0xa2, 0x140400a02", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403feada", "<???> @ 0x14069e870", "<???> @ 0x14069e880", "<???> @ 0x1406d87e0"], "is_objc": false, "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"}