; ; EditorWindowPopup::clampWindowOnScreen from 0x1004d9e2c to 0x1004d9f5c (304 bytes) ; ; 1 xrefs: ; > EmotePickerPopup::init @ 0x1004daff4 ; ; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:06:33 +0000 ; STP D15, D14, [SP,#-0x10+var_50]! ; +0x0, 0x1004d9e2c STP D13, D12, [SP,#0x50+var_40] ; +0x4, 0x1004d9e30 STP D11, D10, [SP,#0x50+var_30] ; +0x8, 0x1004d9e34 STP D9, D8, [SP,#0x50+var_20] ; +0xc, 0x1004d9e38 STP X20, X19, [SP,#0x50+var_10] ; +0x10, 0x1004d9e3c STP X29, X30, [SP,#0x50+var_s0] ; +0x14, 0x1004d9e40 ADD X29, SP, #0x50 ; +0x18, 0x1004d9e44 MOV X19, X1 ; +0x1c, 0x1004d9e48 MOV X20, X8 ; +0x20, 0x1004d9e4c LDR S0, [X0,#0x420] ; +0x24, 0x1004d9e50 LDR S1, [X0,#0x428] ; +0x28, 0x1004d9e54 FMUL S8, S0, S1 ; +0x2c, 0x1004d9e58 LDR S0, [X0,#0x424] ; +0x30, 0x1004d9e5c FMUL S9, S1, S0 ; +0x34, 0x1004d9e60 LDR X8, [X0,#0x3F8] ; +0x38, 0x1004d9e64 CBZ X8, loc_1004D9E74 ; +0x3c, 0x1004d9e68 LDR S11, [X8,#0x358] ; +0x40, 0x1004d9e6c B loc_1004D9E78 ; +0x44, 0x1004d9e70 FMOV S11, WZR ; +0x48, 0x1004d9e74 BL cocos2d__CCDirector__sharedDirector ; +0x4c, 0x1004d9e78 BL sub_100207EA8 ; +0x50, 0x1004d9e7c FMOV S13, #6.0 ; +0x54, 0x1004d9e80 FADD S0, S0, S13 ; +0x58, 0x1004d9e84 FMOV S10, #0.5 ; +0x5c, 0x1004d9e88 FMUL S12, S8, S10 ; +0x60, 0x1004d9e8c FADD S8, S12, S0 ; +0x64, 0x1004d9e90 BL cocos2d__CCDirector__sharedDirector ; +0x68, 0x1004d9e94 BL sub_100207EB0 ; +0x6c, 0x1004d9e98 FMOV S14, #-6.0 ; +0x70, 0x1004d9e9c FADD S0, S0, S14 ; +0x74, 0x1004d9ea0 FSUB S12, S0, S12 ; +0x78, 0x1004d9ea4 BL cocos2d__CCDirector__sharedDirector ; +0x7c, 0x1004d9ea8 BL sub_100207EA0 ; +0x80, 0x1004d9eac FADD S0, S11, S0 ; +0x84, 0x1004d9eb0 FADD S0, S0, S13 ; +0x88, 0x1004d9eb4 FMUL S11, S9, S10 ; +0x8c, 0x1004d9eb8 FADD S9, S11, S0 ; +0x90, 0x1004d9ebc BL cocos2d__CCDirector__sharedDirector ; +0x94, 0x1004d9ec0 BL sub_100207E98 ; +0x98, 0x1004d9ec4 FADD S0, S0, S14 ; +0x9c, 0x1004d9ec8 FSUB S0, S0, S11 ; +0xa0, 0x1004d9ecc FCMP S8, S12 ; +0xa4, 0x1004d9ed0 B.LE loc_1004D9EE4 ; +0xa8, 0x1004d9ed4 FADD S1, S8, S12 ; +0xac, 0x1004d9ed8 FMUL S8, S1, S10 ; +0xb0, 0x1004d9edc B loc_1004D9EFC ; +0xb4, 0x1004d9ee0 LDR S1, [X19] ; +0xb8, 0x1004d9ee4 FCMP S1, S8 ; +0xbc, 0x1004d9ee8 B.MI loc_1004D9EFC ; +0xc0, 0x1004d9eec FCMP S1, S12 ; +0xc4, 0x1004d9ef0 FMOV S8, S12 ; +0xc8, 0x1004d9ef4 B.LE loc_1004D9F00 ; +0xcc, 0x1004d9ef8 STR S8, [X19] ; +0xd0, 0x1004d9efc FCMP S9, S0 ; +0xd4, 0x1004d9f00 B.LE loc_1004D9F1C ; +0xd8, 0x1004d9f04 FADD S0, S9, S0 ; +0xdc, 0x1004d9f08 FMOV S1, #0.5 ; +0xe0, 0x1004d9f0c FMUL S0, S0, S1 ; +0xe4, 0x1004d9f10 STR S0, [X19,#4] ; +0xe8, 0x1004d9f14 B loc_1004D9F38 ; +0xec, 0x1004d9f18 LDR S1, [X19,#4] ; +0xf0, 0x1004d9f1c FCMP S1, S9 ; +0xf4, 0x1004d9f20 B.PL loc_1004D9F30 ; +0xf8, 0x1004d9f24 STR S9, [X19,#4] ; +0xfc, 0x1004d9f28 B loc_1004D9F38 ; +0x100, 0x1004d9f2c FCMP S1, S0 ; +0x104, 0x1004d9f30 B.GT loc_1004D9F14 ; +0x108, 0x1004d9f34 MOV X0, X20 ; +0x10c, 0x1004d9f38 MOV X1, X19 ; +0x110, 0x1004d9f3c LDP X29, X30, [SP,#0x50+var_s0] ; +0x114, 0x1004d9f40 LDP X20, X19, [SP,#0x50+var_10] ; +0x118, 0x1004d9f44 LDP D9, D8, [SP,#0x50+var_20] ; +0x11c, 0x1004d9f48 LDP D11, D10, [SP,#0x50+var_30] ; +0x120, 0x1004d9f4c LDP D13, D12, [SP,#0x50+var_40] ; +0x124, 0x1004d9f50 LDP D15, D14, [SP+0x50+var_50],#0x60 ; +0x128, 0x1004d9f54 B sub_1000262F4 ; +0x12c, 0x1004d9f58