{"type": "func", "start": 4299651684, "end": 4299651848, "name": "EditorUI::positionIsInSnapped", "pseudocode": "// \n// EditorUI::positionIsInSnapped from 0x100477a64 to 0x100477b08 (164 bytes)\n// \n// 1 xrefs:\n// > EditorUI::onCreateObject @ 0x10047729c\n// \n// This function is hookable on this platform (idp: arm, 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:05:41 +0000\n// \n\n__int64 __fastcall EditorUI::positionIsInSnapped(__int64 a1, float *a2)\n{\n  __int64 result; // x0\n  unsigned int v5; // w21\n  __int64 v6; // x22\n  float *v7; // x0\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 880));\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    while ( 1 )\n    {\n      v6 = sub_1002E75A0(*(_QWORD *)(a1 + 880), v5);\n      v7 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6);\n      if ( *v7 == *a2\n        && *(float *)((*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 192LL))(v6, *v7) + 4) == a2[1] )\n      {\n        break;\n      }\n      if ( ++v5 >= (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 880)) )\n        return 0;\n    }\n    return 1;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::positionIsInSnapped from 0x100477a64 to 0x100477b08 (164 bytes)\n; \n; 1 xrefs:\n; > EditorUI::onCreateObject @ 0x10047729c\n; \n; This function is hookable on this platform (idp: arm, 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:05:41 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100477a64\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100477a68\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100477a6c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100477a70\nMOV             X19, X1                                                ; +0x10, 0x100477a74\nMOV             X20, X0                                                ; +0x14, 0x100477a78\nLDR             X0, [X0,#0x370]                                        ; +0x18, 0x100477a7c\nBL              sub_1002E757C                                          ; +0x1c, 0x100477a80\nCBZ             W0, loc_100477AF8                                      ; +0x20, 0x100477a84\nMOV             W21, #0                                                ; +0x24, 0x100477a88\nLDR             X0, [X20,#0x370]                                       ; +0x28, 0x100477a8c\nMOV             X1, X21                                                ; +0x2c, 0x100477a90\nBL              sub_1002E75A0                                          ; +0x30, 0x100477a94\nMOV             X22, X0                                                ; +0x34, 0x100477a98\nLDR             X8, [X0]                                               ; +0x38, 0x100477a9c\nLDR             X8, [X8,#0xC0]                                         ; +0x3c, 0x100477aa0\nBLR             X8                                                     ; +0x40, 0x100477aa4\nLDR             S0, [X0]                                               ; +0x44, 0x100477aa8\nLDR             S1, [X19]                                              ; +0x48, 0x100477aac\nFCMP            S0, S1                                                 ; +0x4c, 0x100477ab0\nB.NE            loc_100477AD8                                          ; +0x50, 0x100477ab4\nLDR             X8, [X22]                                              ; +0x54, 0x100477ab8\nLDR             X8, [X8,#0xC0]                                         ; +0x58, 0x100477abc\nMOV             X0, X22                                                ; +0x5c, 0x100477ac0\nBLR             X8                                                     ; +0x60, 0x100477ac4\nLDR             S0, [X0,#4]                                            ; +0x64, 0x100477ac8\nLDR             S1, [X19,#4]                                           ; +0x68, 0x100477acc\nFCMP            S0, S1                                                 ; +0x6c, 0x100477ad0\nB.EQ            loc_100477AF4                                          ; +0x70, 0x100477ad4\nADD             W21, W21, #1                                           ; +0x74, 0x100477ad8\nLDR             X0, [X20,#0x370]                                       ; +0x78, 0x100477adc\nBL              sub_1002E757C                                          ; +0x7c, 0x100477ae0\nCMP             W21, W0                                                ; +0x80, 0x100477ae4\nB.CC            loc_100477A8C                                          ; +0x84, 0x100477ae8\nMOV             W0, #0                                                 ; +0x88, 0x100477aec\nB               loc_100477AF8                                          ; +0x8c, 0x100477af0\nMOV             W0, #1                                                 ; +0x90, 0x100477af4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x100477af8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100477afc\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x100477b00\nRET                                                                    ; +0xa0, 0x100477b04", "xrefs": ["EditorUI::onCreateObject @ 0x10047729c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}