{"type": "func", "start": 5373752672, "end": 5373752813, "name": "GJUINode::toggleHighlight", "pseudocode": "// \n// GJUINode::toggleHighlight from 0x1404cf560 to 0x1404cf5ed (141 bytes)\n// \n// 5 xrefs:\n// > UILayer::processUINodeTouch @ 0x1404ce65c\n// > UILayer::processUINodeTouch @ 0x1404ce6f3\n// > UILayer::processUINodeTouch @ 0x1404ce88c\n// > UILayer::processUINodeTouch @ 0x1404ce8a2\n// > <???> @ 0x1406dd5f8\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 GJUINode::toggleHighlight(GJUINode *a1, int a2, bool a3)\n{\n  bool m_modeB; // r10\n  bool v4; // r9\n  cocos2d::CCSprite *m_firstSprite; // rcx\n  __int16 v6; // [rsp+30h] [rbp+8h] BYREF\n  char v7; // [rsp+32h] [rbp+Ah]\n  __int16 v8; // [rsp+38h] [rbp+10h] BYREF\n  char v9; // [rsp+3Ah] [rbp+12h]\n\n  m_modeB = a1->m_modeB;\n  v4 = 0;\n  if ( !m_modeB )\n    v4 = a3;\n  if ( a2 != 3 || m_modeB )\n    m_firstSprite = a1->m_firstSprite;\n  else\n    m_firstSprite = a1->m_secondSprite;\n  if ( m_firstSprite )\n  {\n    if ( v4 )\n    {\n      v8 = -26986;\n      v9 = -106;\n      m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v8);\n    }\n    else\n    {\n      v6 = -1;\n      v7 = -1;\n      m_firstSprite->setColor(&m_firstSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v6);\n    }\n  }\n}", "assembly": "; \n; GJUINode::toggleHighlight from 0x1404cf560 to 0x1404cf5ed (141 bytes)\n; \n; 5 xrefs:\n; > UILayer::processUINodeTouch @ 0x1404ce65c\n; > UILayer::processUINodeTouch @ 0x1404ce6f3\n; > UILayer::processUINodeTouch @ 0x1404ce88c\n; > UILayer::processUINodeTouch @ 0x1404ce8a2\n; > <???> @ 0x1406dd5f8\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\nsub     rsp, 28h                                                       ; +0x0, 0x1404cf560\nmovzx   r10d, byte ptr [rcx+17Dh]                                      ; +0x4, 0x1404cf564\nxor     r9d, r9d                                                       ; +0xc, 0x1404cf56c\ntest    r10b, r10b                                                     ; +0xf, 0x1404cf56f\nmovzx   eax, r8b                                                       ; +0x12, 0x1404cf572\ncmovz   r9d, eax                                                       ; +0x16, 0x1404cf576\ncmp     edx, 3                                                         ; +0x1a, 0x1404cf57a\njnz     short loc_1404CF58D                                            ; +0x1d, 0x1404cf57d\ntest    r10b, r10b                                                     ; +0x1f, 0x1404cf57f\njnz     short loc_1404CF58D                                            ; +0x22, 0x1404cf582\nmov     rcx, [rcx+148h]                                                ; +0x24, 0x1404cf584\njmp     short loc_1404CF594                                            ; +0x2b, 0x1404cf58b\nmov     rcx, [rcx+140h]                                                ; +0x2d, 0x1404cf58d\ntest    rcx, rcx                                                       ; +0x34, 0x1404cf594\njz      short loc_1404CF5E8                                            ; +0x37, 0x1404cf597\ntest    r9b, r9b                                                       ; +0x39, 0x1404cf599\njz      short loc_1404CF5C0                                            ; +0x3c, 0x1404cf59c\nadd     rcx, 140h                                                      ; +0x3e, 0x1404cf59e\nmov     [rsp+28h+arg_8], 9696h                                         ; +0x45, 0x1404cf5a5\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x4c, 0x1404cf5ac\nmov     [rsp+28h+arg_A], 96h                                           ; +0x51, 0x1404cf5b1\nmov     rax, [rcx]                                                     ; +0x56, 0x1404cf5b6\ncall    qword ptr [rax]                                                ; +0x59, 0x1404cf5b9\nadd     rsp, 28h                                                       ; +0x5b, 0x1404cf5bb\nretn                                                                   ; +0x5f, 0x1404cf5bf\nmovzx   eax, cs:word_140529CA0                                         ; +0x60, 0x1404cf5c0\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x67, 0x1404cf5c7\nmov     [rsp+28h+arg_0], ax                                            ; +0x6c, 0x1404cf5cc\nadd     rcx, 140h                                                      ; +0x71, 0x1404cf5d1\nmovzx   eax, cs:byte_140529CA2                                         ; +0x78, 0x1404cf5d8\nmov     [rsp+28h+arg_2], al                                            ; +0x7f, 0x1404cf5df\nmov     rax, [rcx]                                                     ; +0x83, 0x1404cf5e3\ncall    qword ptr [rax]                                                ; +0x86, 0x1404cf5e6\nadd     rsp, 28h                                                       ; +0x88, 0x1404cf5e8\nretn                                                                   ; +0x8c, 0x1404cf5ec", "xrefs": ["UILayer::processUINodeTouch @ 0x1404ce65c", "UILayer::processUINodeTouch @ 0x1404ce6f3", "UILayer::processUINodeTouch @ 0x1404ce88c", "UILayer::processUINodeTouch @ 0x1404ce8a2", "<???> @ 0x1406dd5f8"], "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"}