; ; -[CCDirectorCaller startMainLoop] from 0x1002af68c to 0x1002af790 (260 bytes) ; ; 1 xrefs: ; > @ 0x1009cdcb0 ; ; 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:02:19 +0000 ; STP D9, D8, [SP,#-0x10+var_30]! ; +0x0, 0x1002af68c STP X22, X21, [SP,#0x30+var_20] ; +0x4, 0x1002af690 STP X20, X19, [SP,#0x30+var_10] ; +0x8, 0x1002af694 STP X29, X30, [SP,#0x30+var_s0] ; +0xc, 0x1002af698 ADD X29, SP, #0x30 ; +0x10, 0x1002af69c MOV X19, X0 ; +0x14, 0x1002af6a0 STR XZR, [X0,#0x18] ; +0x18, 0x1002af6a4 LDR X0, [X0,#8] ; +0x1c, 0x1002af6a8 BL _objc_msgSend$invalidate ; +0x20, 0x1002af6ac STR XZR, [X19,#8] ; +0x24, 0x1002af6b0 ADRL X0, cfstr_Cadisplaylink; aClassName ; +0x28, 0x1002af6b4 BL _NSClassFromString ; +0x30, 0x1002af6bc ADRP X8, #selRef_doCaller_@PAGE ; +0x34, 0x1002af6c0 LDR X3, [X8,#selRef_doCaller_@PAGEOFF]; "doCaller:" ... ; +0x38, 0x1002af6c4 MOV X2, X19 ; +0x3c, 0x1002af6c8 BL _objc_msgSend$displayLinkWithTarget_selector_; -[objc_class displayLinkWithTarget:selector:] ... ; +0x40, 0x1002af6cc STR X0, [X19,#8] ; +0x44, 0x1002af6d0 ADRP X8, #classRef_UIScreen@PAGE ; +0x48, 0x1002af6d4 LDR X0, [X8,#classRef_UIScreen@PAGEOFF]; _OBJC_CLASS_$_UIScreen ; +0x4c, 0x1002af6d8 BL _objc_msgSend$mainScreen; +[UIScreen mainScreen] ... ; +0x50, 0x1002af6dc BL _objc_msgSend$maximumFramesPerSecond; -[UIScreen maximumFramesPerSecond] ... ; +0x54, 0x1002af6e0 CMP X0, #0x3C ; '<' ; +0x58, 0x1002af6e4 MOV W8, #0x3C ; '<' ; +0x5c, 0x1002af6e8 CSEL X20, X0, X8, LT ; +0x60, 0x1002af6ec MOV W0, #2 ; +0x64, 0x1002af6f0 MOV W1, #0xF ; +0x68, 0x1002af6f4 MOV W2, #0 ; +0x6c, 0x1002af6f8 MOV W3, #0 ; +0x70, 0x1002af6fc BL sub_100754934 ; +0x74, 0x1002af700 LDR X21, [X19,#8] ; +0x78, 0x1002af704 CBZ W0, loc_1002AF72C ; +0x7c, 0x1002af708 SCVTF S8, X20 ; +0x80, 0x1002af70c FMOV S0, S8; minimum ; +0x84, 0x1002af710 FMOV S1, S8; maximum ; +0x88, 0x1002af714 FMOV S2, S8; preferred ; +0x8c, 0x1002af718 BL _CAFrameRateRangeMake ; +0x90, 0x1002af71c MOV X0, X21 ; +0x94, 0x1002af720 BL _objc_msgSend$setPreferredFrameRateRange_ ; +0x98, 0x1002af724 B loc_1002AF73C ; +0x9c, 0x1002af728 MOV X0, X21 ; +0xa0, 0x1002af72c MOV X2, X20 ; +0xa4, 0x1002af730 BL _objc_msgSend$setPreferredFramesPerSecond_ ; +0xa8, 0x1002af734 SCVTF S8, X20 ; +0xac, 0x1002af738 LDR X19, [X19,#8] ; +0xb0, 0x1002af73c ADRP X8, #classRef_NSRunLoop@PAGE ; +0xb4, 0x1002af740 LDR X0, [X8,#classRef_NSRunLoop@PAGEOFF]; _OBJC_CLASS_$_NSRunLoop ; +0xb8, 0x1002af744 BL _objc_msgSend$currentRunLoop; +[NSRunLoop currentRunLoop] ... ; +0xbc, 0x1002af748 MOV X2, X0 ; +0xc0, 0x1002af74c ADRP X8, #_NSRunLoopCommonModes_ptr@PAGE ; +0xc4, 0x1002af750 LDR X8, [X8,#_NSRunLoopCommonModes_ptr@PAGEOFF]; _NSRunLoopCommonModes ; +0xc8, 0x1002af754 LDR X3, [X8] ; +0xcc, 0x1002af758 MOV X0, X19 ; +0xd0, 0x1002af75c BL _objc_msgSend$addToRunLoop_forMode_ ; +0xd4, 0x1002af760 BL cocos2d__CCDirector__sharedDirector ; +0xd8, 0x1002af764 FMOV S0, #1.0 ; +0xdc, 0x1002af768 FDIV S0, S0, S8 ; +0xe0, 0x1002af76c FCVT D0, S0 ; +0xe4, 0x1002af770 LDR X8, [X0] ; +0xe8, 0x1002af774 LDR X1, [X8,#0x60] ; +0xec, 0x1002af778 LDP X29, X30, [SP,#0x30+var_s0] ; +0xf0, 0x1002af77c LDP X20, X19, [SP,#0x30+var_10] ; +0xf4, 0x1002af780 LDP X22, X21, [SP,#0x30+var_20] ; +0xf8, 0x1002af784 LDP D9, D8, [SP+0x30+var_30],#0x40 ; +0xfc, 0x1002af788 BR X1 ; +0x100, 0x1002af78c