{"type": "func", "start": 5370541056, "end": 5370541309, "name": "EditorUI::findSnapObject", "pseudocode": "// \n// EditorUI::findSnapObject from 0x1401bf400 to 0x1401bf4fd (253 bytes)\n// \n// 5 xrefs:\n// > EditorUI::startFreeMoveTouch @ 0x1401bfbcb\n// > EditorUI::startFreeMoveTouch @ 0x1401bfd0d\n// > <???> @ 0x1408a2590\n// > <???> @ 0x1408a25a0\n// > <???> @ 0x14091a5b8\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 11:28:02 +0000\n// \n\n__int64 __fastcall EditorUI::findSnapObject(__int64 a1, const struct cocos2d::CCPoint *a2)\n{\n  __int64 v4; // rcx\n  unsigned int v5; // ebx\n  cocos2d::CCArray *i; // rbp\n  struct cocos2d::CCObject *v7; // rsi\n  cocos2d::CCRect *ObjectRect; // rax\n  _BYTE v10[16]; // [rsp+30h] [rbp-38h] BYREF\n  _BYTE v11[16]; // [rsp+40h] [rbp-28h] BYREF\n\n  if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)) )\n  {\n    v5 = 0;\n    for ( i = (cocos2d::CCArray *)cocos2d::CCArray::create(v4);\n          v5 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n          ++v5 )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v5);\n      LevelEditorLayer::getObjectRect(*(_QWORD *)(a1 + 1512), v10, v7);\n      ObjectRect = (cocos2d::CCRect *)LevelEditorLayer::getObjectRect(*(_QWORD *)(a1 + 1512), v11, v7);\n      if ( cocos2d::CCRect::containsPoint(ObjectRect, a2) )\n        cocos2d::CCArray::addObject(i, v7);\n    }\n  }\n  else\n  {\n    i = nullptr;\n  }\n  return EditorUI::findSnapObject_1(a1, i);\n}", "assembly": "; \n; EditorUI::findSnapObject from 0x1401bf400 to 0x1401bf4fd (253 bytes)\n; \n; 5 xrefs:\n; > EditorUI::startFreeMoveTouch @ 0x1401bfbcb\n; > EditorUI::startFreeMoveTouch @ 0x1401bfd0d\n; > <???> @ 0x1408a2590\n; > <???> @ 0x1408a25a0\n; > <???> @ 0x14091a5b8\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 11:28:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1401bf400\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401bf405\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x1401bf40a\npush    r14                                                            ; +0xf, 0x1401bf40f\nsub     rsp, 60h                                                       ; +0x11, 0x1401bf411\nmov     rdi, rcx                                                       ; +0x15, 0x1401bf415\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x18, 0x1401bf418\nmov     rcx, [rcx+3B0h]                                                ; +0x1d, 0x1401bf41d\nmovaps  xmm6, xmm2                                                     ; +0x24, 0x1401bf424\nmov     r14, rdx                                                       ; +0x27, 0x1401bf427\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2a, 0x1401bf42a\ntest    eax, eax                                                       ; +0x30, 0x1401bf430\njz      loc_1401BF4D0                                                  ; +0x32, 0x1401bf432\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x38, 0x1401bf438\nmov     rcx, [rdi+3B0h]                                                ; +0x3e, 0x1401bf43e\nxor     ebx, ebx                                                       ; +0x45, 0x1401bf445\nmov     rbp, rax                                                       ; +0x47, 0x1401bf447\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x1401bf44a\ntest    eax, eax                                                       ; +0x50, 0x1401bf450\njz      loc_1401BF4D4                                                  ; +0x52, 0x1401bf452\nmov     [rsp+68h+arg_0], rsi                                           ; +0x58, 0x1401bf458\nnop     dword ptr [rax]                                                ; +0x5d, 0x1401bf45d\nmov     rcx, [rdi+3B0h]                                                ; +0x60, 0x1401bf460\nmov     edx, ebx                                                       ; +0x67, 0x1401bf467\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x1401bf469\nmov     rcx, [rdi+5E8h]                                                ; +0x6f, 0x1401bf46f\nlea     rdx, [rsp+68h+var_38]                                          ; +0x76, 0x1401bf476\nmov     r8, rax                                                        ; +0x7b, 0x1401bf47b\nmov     rsi, rax                                                       ; +0x7e, 0x1401bf47e\ncall    LevelEditorLayer__getObjectRect                                ; +0x81, 0x1401bf481\nmov     rcx, [rdi+5E8h]                                                ; +0x86, 0x1401bf486\nlea     rdx, [rsp+68h+var_28]                                          ; +0x8d, 0x1401bf48d\nmov     r8, rsi                                                        ; +0x92, 0x1401bf492\ncall    LevelEditorLayer__getObjectRect                                ; +0x95, 0x1401bf495\nmov     rcx, rax                                                       ; +0x9a, 0x1401bf49a\nmov     rdx, r14                                                       ; +0x9d, 0x1401bf49d\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xa0, 0x1401bf4a0\ntest    al, al                                                         ; +0xa6, 0x1401bf4a6\njz      short loc_1401BF4B6                                            ; +0xa8, 0x1401bf4a8\nmov     rdx, rsi                                                       ; +0xaa, 0x1401bf4aa\nmov     rcx, rbp                                                       ; +0xad, 0x1401bf4ad\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xb0, 0x1401bf4b0\nmov     rcx, [rdi+3B0h]                                                ; +0xb6, 0x1401bf4b6\ninc     ebx                                                            ; +0xbd, 0x1401bf4bd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbf, 0x1401bf4bf\ncmp     ebx, eax                                                       ; +0xc5, 0x1401bf4c5\njb      short loc_1401BF460                                            ; +0xc7, 0x1401bf4c7\nmov     rsi, [rsp+68h+arg_0]                                           ; +0xc9, 0x1401bf4c9\njmp     short loc_1401BF4D4                                            ; +0xce, 0x1401bf4ce\nxor     ebx, ebx                                                       ; +0xd0, 0x1401bf4d0\nmov     ebp, ebx                                                       ; +0xd2, 0x1401bf4d2\nmovaps  xmm2, xmm6                                                     ; +0xd4, 0x1401bf4d4\nmov     rdx, rbp                                                       ; +0xd7, 0x1401bf4d7\nmov     rcx, rdi                                                       ; +0xda, 0x1401bf4da\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xdd, 0x1401bf4dd\nlea     r11, [rsp+68h+var_8]                                           ; +0xe2, 0x1401bf4e2\nmov     rbx, [r11+18h]                                                 ; +0xe7, 0x1401bf4e7\nmov     rbp, [r11+20h]                                                 ; +0xeb, 0x1401bf4eb\nmov     rdi, [r11+28h]                                                 ; +0xef, 0x1401bf4ef\nmov     rsp, r11                                                       ; +0xf3, 0x1401bf4f3\npop     r14                                                            ; +0xf6, 0x1401bf4f6\njmp     EditorUI__findSnapObject_1                                     ; +0xf8, 0x1401bf4f8", "xrefs": ["EditorUI::startFreeMoveTouch @ 0x1401bfbcb", "EditorUI::startFreeMoveTouch @ 0x1401bfd0d", "<???> @ 0x1408a2590", "<???> @ 0x1408a25a0", "<???> @ 0x14091a5b8"], "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"}