{"type": "func", "start": 4295205872, "end": 4295206023, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x10003a3f0 to 0x10003a487 (151 bytes)\n// \n// 0 xrefs:\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\nbool __fastcall EditorUI::positionIsInSnapped(EditorUI *a1, cocos2d::CCPoint a2)\n{\n  float *v2; // rsi\n  unsigned int v3; // ebx\n  __int64 v4; // r12\n\n  v3 = 0;\n  if ( (unsigned int)sub_100720070(a1->m_snapPositions) )\n  {\n    do\n    {\n      v4 = sub_1007200C0(a1->m_snapPositions, v3);\n      a2.x = *(float *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 192LL))(v4, *(double *)&a2);\n      if ( a2.x == *v2 )\n      {\n        a2 = (cocos2d::CCPoint)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4) + 4);\n        if ( a2.x == v2[1] )\n        {\n          LOBYTE(v3) = 1;\n          return v3;\n        }\n      }\n      ++v3;\n    }\n    while ( v3 < (unsigned int)sub_100720070(a1->m_snapPositions) );\n    LOBYTE(v3) = 0;\n  }\n  return v3;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x10003a3f0 to 0x10003a487 (151 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x10003a3f0\nmov     rbp, rsp                                                       ; +0x1, 0x10003a3f1\npush    r15                                                            ; +0x4, 0x10003a3f4\npush    r14                                                            ; +0x6, 0x10003a3f6\npush    r12                                                            ; +0x8, 0x10003a3f8\npush    rbx                                                            ; +0xa, 0x10003a3fa\nmov     r14, rsi                                                       ; +0xb, 0x10003a3fb\nmov     r15, rdi                                                       ; +0xe, 0x10003a3fe\nmov     rdi, [rdi+318h]                                                ; +0x11, 0x10003a401\ncall    sub_100720070                                                  ; +0x18, 0x10003a408\nxor     ebx, ebx                                                       ; +0x1d, 0x10003a40d\ntest    eax, eax                                                       ; +0x1f, 0x10003a40f\njnz     short loc_10003A432                                            ; +0x21, 0x10003a411\njmp     short loc_10003A47C                                            ; +0x23, 0x10003a413\nalign 20h                                                              ; +0x25, 0x10003a415\ninc     ebx                                                            ; +0x30, 0x10003a420\nmov     rdi, [r15+318h]                                                ; +0x32, 0x10003a422\ncall    sub_100720070                                                  ; +0x39, 0x10003a429\ncmp     ebx, eax                                                       ; +0x3e, 0x10003a42e\njnb     short loc_10003A47A                                            ; +0x40, 0x10003a430\nmov     rdi, [r15+318h]                                                ; +0x42, 0x10003a432\nmov     esi, ebx                                                       ; +0x49, 0x10003a439\ncall    sub_1007200C0                                                  ; +0x4b, 0x10003a43b\nmov     r12, rax                                                       ; +0x50, 0x10003a440\nmov     rax, [rax]                                                     ; +0x53, 0x10003a443\nmov     rdi, r12                                                       ; +0x56, 0x10003a446\ncall    qword ptr [rax+0C0h]                                           ; +0x59, 0x10003a449\nmovss   xmm0, dword ptr [rax]                                          ; +0x5f, 0x10003a44f\nucomiss xmm0, dword ptr [r14]                                          ; +0x63, 0x10003a453\njnz     short loc_10003A420                                            ; +0x67, 0x10003a457\njp      short loc_10003A420                                            ; +0x69, 0x10003a459\nmov     rax, [r12]                                                     ; +0x6b, 0x10003a45b\nmov     rdi, r12                                                       ; +0x6f, 0x10003a45f\ncall    qword ptr [rax+0C0h]                                           ; +0x72, 0x10003a462\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x78, 0x10003a468\nucomiss xmm0, dword ptr [r14+4]                                        ; +0x7d, 0x10003a46d\njnz     short loc_10003A420                                            ; +0x82, 0x10003a472\njp      short loc_10003A420                                            ; +0x84, 0x10003a474\nmov     bl, 1                                                          ; +0x86, 0x10003a476\njmp     short loc_10003A47C                                            ; +0x88, 0x10003a478\nxor     ebx, ebx                                                       ; +0x8a, 0x10003a47a\nmov     eax, ebx                                                       ; +0x8c, 0x10003a47c\npop     rbx                                                            ; +0x8e, 0x10003a47e\npop     r12                                                            ; +0x8f, 0x10003a47f\npop     r14                                                            ; +0x91, 0x10003a481\npop     r15                                                            ; +0x93, 0x10003a483\npop     rbp                                                            ; +0x95, 0x10003a485\nretn                                                                   ; +0x96, 0x10003a486", "xrefs": [], "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"}