; ; EditorUI::getGridSnappedPos from 0x1003eb9e0 to 0x1003eba54 (116 bytes) ; ; 9 xrefs: ; > SetupSmartBlockLayer::onPasteTemplate @ 0x100070000 ; > EditorUI::onCreateObject @ 0x1003eb30c ; > EditorUI::doPasteObjects @ 0x1003eed2c ; > EditorUI::createPrefab @ 0x1003f22f4 ; > EditorUI::applySpecialOffset @ 0x1003f7f58 ; > EditorUI::findSnapObject_1 @ 0x1003f8430 ; > EditorUI::findSnapObject_1 @ 0x1003f8534 ; > EditorUI::ccTouchMoved @ 0x1003f8f5c ; > EditorUI::ccTouchEnded @ 0x1003f92b0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; SUB SP, SP, #0x30 ; +0x0, 0x1003eb9e0 STP X20, X19, [SP,#0x20+var_10] ; +0x4, 0x1003eb9e4 STP X29, X30, [SP,#0x20+var_s0] ; +0x8, 0x1003eb9e8 ADD X29, SP, #0x20 ; +0xc, 0x1003eb9ec MOV X19, X0 ; +0x10, 0x1003eb9f0 MOV X20, X8 ; +0x14, 0x1003eb9f4 LDR X8, [X0,#0x4E8] ; +0x18, 0x1003eb9f8 LDR X8, [X8,#0x36C8] ; +0x1c, 0x1003eb9fc LDR S1, [X8,#0x25C] ; +0x20, 0x1003eba00 LDP S0, S2, [X1] ; +0x24, 0x1003eba04 FDIV S0, S0, S1 ; +0x28, 0x1003eba08 FDIV S2, S2, S1 ; +0x2c, 0x1003eba0c FRINTM S0, S0 ; +0x30, 0x1003eba10 FMOV S3, #0.5 ; +0x34, 0x1003eba14 FADD S0, S0, S3 ; +0x38, 0x1003eba18 FMUL S0, S1, S0 ; +0x3c, 0x1003eba1c FRINTM S2, S2 ; +0x40, 0x1003eba20 FADD S2, S2, S3 ; +0x44, 0x1003eba24 FMUL S1, S1, S2 ; +0x48, 0x1003eba28 ADD X0, SP, #0x20+var_18 ; +0x4c, 0x1003eba2c BL sub_100022980 ; +0x50, 0x1003eba30 ADD X1, SP, #0x20+var_18 ; +0x54, 0x1003eba34 MOV X8, X20 ; +0x58, 0x1003eba38 MOV X0, X19 ; +0x5c, 0x1003eba3c BL EditorUI__getLimitedPosition ; +0x60, 0x1003eba40 LDP X29, X30, [SP,#0x20+var_s0] ; +0x64, 0x1003eba44 LDP X20, X19, [SP,#0x20+var_10] ; +0x68, 0x1003eba48 ADD SP, SP, #0x30 ; '0' ; +0x6c, 0x1003eba4c RET ; +0x70, 0x1003eba50