{"type": "func", "start": 5372478176, "end": 5372478499, "name": "PlayerObject::resetTouchedRings", "pseudocode": "// \n// PlayerObject::resetTouchedRings from 0x1403982e0 to 0x140398423 (323 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::update @ 0x14023809e\n// > GJBaseGameLayer::update @ 0x1402380b5\n// > <???> @ 0x140697f90\n// > <???> @ 0x140697fa0\n// > <???> @ 0x1406d64e8\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 PlayerObject::resetTouchedRings(PlayerObject *a1, bool a2)\n{\n  cocos2d::CCArray *m_touchingRings; // rcx\n  unsigned int v4; // ebx\n  cocos2d::CCObjectType m_eObjType; // r8d\n  std::_Simple_types<std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>>::value_type *v6; // rcx\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr v8; // rcx\n\n  m_touchingRings = a1->m_touchingRings;\n  if ( a2 )\n  {\n    cocos2d::CCArray::removeAllObjects(m_touchingRings);\n    sub_14005E0D0(&a1->m_touchedRings._Traitsobj._Mypair._Myval2._Myval2);\n    return;\n  }\n  v4 = 0;\n  if ( cocos2d::CCArray::count(m_touchingRings) )\n  {\n    while ( 1 )\n    {\n      m_eObjType = cocos2d::CCArray::objectAtIndex(a1->m_touchingRings, v4)[16].m_eObjType;\n      v6 = &a1->m_touchedRings._Vec._Mypair._Myval2._Myfirst[2\n                                                           * ((0x100000001B3LL\n                                                             * (((unsigned __int64)(unsigned int)m_eObjType >> 24)\n                                                              ^ (0x100000001B3LL\n                                                               * (BYTE2(m_eObjType)\n                                                                ^ (0x100000001B3LL\n                                                                 * ((0x100000001B3LL\n                                                                   * ((unsigned __int8)m_eObjType ^ 0xCBF29CE484222325uLL))\n                                                                  ^ BYTE1(m_eObjType)))))))\n                                                            & a1->m_touchedRings._Mask)];\n      Ptr = v6[1]._Ptr;\n      if ( Ptr == a1->m_touchedRings._List._Mypair._Myval2._Myhead )\n        goto LABEL_9;\n      v8 = v6->_Ptr;\n      if ( m_eObjType != *((_DWORD *)Ptr + 4) )\n        break;\nLABEL_10:\n      if ( Ptr )\n        ++v4;\n      else\n        cocos2d::CCArray::removeObjectAtIndex(a1->m_touchingRings, v4, 1);\n      if ( v4 >= cocos2d::CCArray::count(a1->m_touchingRings) )\n        goto LABEL_14;\n    }\n    while ( Ptr != v8 )\n    {\n      Ptr = *((std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr *)Ptr\n            + 1);\n      if ( m_eObjType == *((_DWORD *)Ptr + 4) )\n        goto LABEL_10;\n    }\nLABEL_9:\n    Ptr = nullptr;\n    goto LABEL_10;\n  }\nLABEL_14:\n  sub_14005E0D0(&a1->m_touchedRings._Traitsobj._Mypair._Myval2._Myval2);\n}", "assembly": "; \n; PlayerObject::resetTouchedRings from 0x1403982e0 to 0x140398423 (323 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::update @ 0x14023809e\n; > GJBaseGameLayer::update @ 0x1402380b5\n; > <???> @ 0x140697f90\n; > <???> @ 0x140697fa0\n; > <???> @ 0x1406d64e8\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, 0x1403982e0\nsub     rsp, 20h                                                       ; +0x2, 0x1403982e2\nmov     rdi, rcx                                                       ; +0x6, 0x1403982e6\nmov     rcx, [rcx+0A38h]                                               ; +0x9, 0x1403982e9\ntest    dl, dl                                                         ; +0x10, 0x1403982f0\njz      short loc_14039830B                                            ; +0x12, 0x1403982f2\ncall    cs:?removeAllObjects@CCArray@cocos2d@@QEAAXXZ; cocos2d::CCArray::removeAllObjects(void) ; +0x14, 0x1403982f4\nlea     rcx, [rdi+0A40h]                                               ; +0x1a, 0x1403982fa\nadd     rsp, 20h                                                       ; +0x21, 0x140398301\npop     rdi                                                            ; +0x25, 0x140398305\njmp     sub_14005E0D0                                                  ; +0x26, 0x140398306\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2b, 0x14039830b\nxor     ebx, ebx                                                       ; +0x30, 0x140398310\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x32, 0x140398312\ntest    eax, eax                                                       ; +0x38, 0x140398318\njz      loc_14039840D                                                  ; +0x3a, 0x14039831a\nmov     [rsp+28h+arg_8], rbp                                           ; +0x40, 0x140398320\nmov     rbp, 0CBF29CE484222325h                                        ; +0x45, 0x140398325\nmov     [rsp+28h+arg_10], rsi                                          ; +0x4f, 0x14039832f\nmov     rsi, 100000001B3h                                              ; +0x54, 0x140398334\nxchg    ax, ax                                                         ; +0x5e, 0x14039833e\nmov     rcx, [rdi+0A38h]                                               ; +0x60, 0x140398340\nmov     edx, ebx                                                       ; +0x67, 0x140398347\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140398349\nmov     r8d, [rax+39Ch]                                                ; +0x6f, 0x14039834f\nmov     eax, r8d                                                       ; +0x76, 0x140398356\nshr     eax, 8                                                         ; +0x79, 0x140398359\nmovzx   edx, al                                                        ; +0x7c, 0x14039835c\nmovzx   eax, r8b                                                       ; +0x7f, 0x14039835f\nxor     rax, rbp                                                       ; +0x83, 0x140398363\nimul    rax, rsi                                                       ; +0x86, 0x140398366\nxor     rdx, rax                                                       ; +0x8a, 0x14039836a\nmov     eax, r8d                                                       ; +0x8d, 0x14039836d\nimul    rdx, rsi                                                       ; +0x90, 0x140398370\nshr     eax, 10h                                                       ; +0x94, 0x140398374\nmovzx   ecx, al                                                        ; +0x97, 0x140398377\nmov     eax, r8d                                                       ; +0x9a, 0x14039837a\nxor     rdx, rcx                                                       ; +0x9d, 0x14039837d\nshr     rax, 18h                                                       ; +0xa0, 0x140398380\nmov     rcx, [rdi+0A70h]                                               ; +0xa4, 0x140398384\nimul    rdx, rsi                                                       ; +0xab, 0x14039838b\nxor     rdx, rax                                                       ; +0xaf, 0x14039838f\nimul    rdx, rsi                                                       ; +0xb2, 0x140398392\nand     rcx, rdx                                                       ; +0xb6, 0x140398396\nshl     rcx, 4                                                         ; +0xb9, 0x140398399\nadd     rcx, [rdi+0A58h]                                               ; +0xbd, 0x14039839d\nmov     rax, [rcx+8]                                                   ; +0xc4, 0x1403983a4\ncmp     rax, [rdi+0A48h]                                               ; +0xc8, 0x1403983a8\njz      short loc_1403983D1                                            ; +0xcf, 0x1403983af\nmov     rcx, [rcx]                                                     ; +0xd1, 0x1403983b1\ncmp     r8d, [rax+10h]                                                 ; +0xd4, 0x1403983b4\njz      short loc_1403983D3                                            ; +0xd8, 0x1403983b8\nnop     word ptr [rax+rax+00h]                                         ; +0xda, 0x1403983ba\ncmp     rax, rcx                                                       ; +0xe0, 0x1403983c0\njz      short loc_1403983D1                                            ; +0xe3, 0x1403983c3\nmov     rax, [rax+8]                                                   ; +0xe5, 0x1403983c5\ncmp     r8d, [rax+10h]                                                 ; +0xe9, 0x1403983c9\njnz     short loc_1403983C0                                            ; +0xed, 0x1403983cd\njmp     short loc_1403983D3                                            ; +0xef, 0x1403983cf\nxor     eax, eax                                                       ; +0xf1, 0x1403983d1\ntest    rax, rax                                                       ; +0xf3, 0x1403983d3\njnz     short loc_1403983EC                                            ; +0xf6, 0x1403983d6\nmov     rcx, [rdi+0A38h]                                               ; +0xf8, 0x1403983d8\nmov     r8b, 1                                                         ; +0xff, 0x1403983df\nmov     edx, ebx                                                       ; +0x102, 0x1403983e2\ncall    cs:?removeObjectAtIndex@CCArray@cocos2d@@QEAAXI_N@Z; cocos2d::CCArray::removeObjectAtIndex(uint,bool) ; +0x104, 0x1403983e4\njmp     short loc_1403983EE                                            ; +0x10a, 0x1403983ea\ninc     ebx                                                            ; +0x10c, 0x1403983ec\nmov     rcx, [rdi+0A38h]                                               ; +0x10e, 0x1403983ee\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x115, 0x1403983f5\ncmp     ebx, eax                                                       ; +0x11b, 0x1403983fb\njb      loc_140398340                                                  ; +0x11d, 0x1403983fd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x123, 0x140398403\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x128, 0x140398408\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x12d, 0x14039840d\nlea     rcx, [rdi+0A40h]                                               ; +0x132, 0x140398412\nadd     rsp, 20h                                                       ; +0x139, 0x140398419\npop     rdi                                                            ; +0x13d, 0x14039841d\njmp     sub_14005E0D0                                                  ; +0x13e, 0x14039841e", "xrefs": ["GJBaseGameLayer::update @ 0x14023809e", "GJBaseGameLayer::update @ 0x1402380b5", "<???> @ 0x140697f90", "<???> @ 0x140697fa0", "<???> @ 0x1406d64e8"], "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"}