{"type": "func", "start": 4297142448, "end": 4297142568, "name": "-[CCDirectorCaller doCaller:]", "pseudocode": "// \n// -[CCDirectorCaller doCaller:] from 0x1002130b0 to 0x100213128 (120 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845e58\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\nvoid __cdecl -[CCDirectorCaller doCaller:](CCDirectorCaller *self, SEL a2, id a3)\n{\n  double v4; // d0\n  float v5; // s8\n  cocos2d::CCDirector *v6; // x0\n  cocos2d::CCDirector *v7; // x0\n  double v8; // d0\n\n  if ( self->_lastTime <= 0.0 )\n  {\n    v5 = 0.016667;\n  }\n  else\n  {\n    objc_msgSend(self->displayLink, \"timestamp\", a3);\n    v5 = v4 - self->_lastTime;\n  }\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::setDeltaTime(v6, v5);\n  v7 = cocos2d::CCDirector::sharedDirector();\n  ((void (__fastcall *)(cocos2d::CCDirector *))v7->mainLoop)(v7);\n  objc_msgSend(self->displayLink, \"timestamp\");\n  self->_lastTime = v8;\n}", "assembly": "; \n; -[CCDirectorCaller doCaller:] from 0x1002130b0 to 0x100213128 (120 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845e58\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\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1002130b0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002130b4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002130b8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002130bc\nMOV             X19, X0                                                ; +0x10, 0x1002130c0\nLDR             D0, [X0,#0x18]                                         ; +0x14, 0x1002130c4\nFCMP            D0, #0.0                                               ; +0x18, 0x1002130c8\nB.LS            loc_1002130E8                                          ; +0x1c, 0x1002130cc\nLDR             X0, [X19,#8]                                           ; +0x20, 0x1002130d0\nBL              _objc_msgSend$timestamp                                ; +0x24, 0x1002130d4\nLDR             D1, [X19,#0x18]                                        ; +0x28, 0x1002130d8\nFSUB            D0, D0, D1                                             ; +0x2c, 0x1002130dc\nFCVT            S8, D0                                                 ; +0x30, 0x1002130e0\nB               loc_1002130F0                                          ; +0x34, 0x1002130e4\nADRP            X8, #dword_100637F48@PAGE                              ; +0x38, 0x1002130e8\nLDR             S8, [X8,#dword_100637F48@PAGEOFF]                      ; +0x3c, 0x1002130ec\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x40, 0x1002130f0\nFMOV            S0, S8                                                 ; +0x44, 0x1002130f4\nBL              cocos2d__CCDirector__setDeltaTime                      ; +0x48, 0x1002130f8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x1002130fc\nLDR             X8, [X0]                                               ; +0x50, 0x100213100\nLDR             X8, [X8,#0x78]                                         ; +0x54, 0x100213104\nBLR             X8                                                     ; +0x58, 0x100213108\nLDR             X0, [X19,#8]                                           ; +0x5c, 0x10021310c\nBL              _objc_msgSend$timestamp                                ; +0x60, 0x100213110\nSTR             D0, [X19,#0x18]                                        ; +0x64, 0x100213114\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x68, 0x100213118\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x6c, 0x10021311c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x70, 0x100213120\nRET                                                                    ; +0x74, 0x100213124", "xrefs": ["<???> @ 0x100845e58"], "is_objc": true, "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"}