{"type": "func", "start": 7938996, "end": 7939188, "name": "DrawGridLayer::timeForPos", "pseudocode": "// \n// DrawGridLayer::timeForPos from 0x7923b4 to 0x792474 (192 bytes)\n// \n// 8 xrefs:\n// > LevelEditorLayer::timeForPos @ 0x7924d8\n// > LevelEditorLayer::updateGameObjects @ 0x79e3e4\n// > LevelEditorLayer::updateGameObjects @ 0x79e9c4\n// > LevelEditorLayer::updateLevelSaveInfo @ 0x7a4968\n// > EditorUI::onPlayback @ 0x7c28dc\n// > EditorUI::onPlayback @ 0x7c2918\n// > EditorPauseLayer::init @ 0x8b74bc\n// > <???> @ 0x84328\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 12:53:30 +0000\n// \n\n__int64 __fastcall DrawGridLayer::timeForPos(\n        __int64 a1,\n        const cocos2d::CCPoint *a2,\n        int a3,\n        int a4,\n        unsigned __int8 a5,\n        unsigned __int8 a6,\n        char a7,\n        int a8)\n{\n  float v16; // [xsp+70h] [xbp+60h] BYREF\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, a2);\n  LevelTools::timeForPos(\n    &v16,\n    *(cocos2d::CCArray **)(a1 + 560),\n    *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 332LL),\n    a3,\n    a4,\n    a5,\n    *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 496) + 3272LL) + 341LL),\n    a6,\n    a7,\n    a8);\n  return _stack_chk_guard;\n}", "assembly": "; \n; DrawGridLayer::timeForPos from 0x7923b4 to 0x792474 (192 bytes)\n; \n; 8 xrefs:\n; > LevelEditorLayer::timeForPos @ 0x7924d8\n; > LevelEditorLayer::updateGameObjects @ 0x79e3e4\n; > LevelEditorLayer::updateGameObjects @ 0x79e9c4\n; > LevelEditorLayer::updateLevelSaveInfo @ 0x7a4968\n; > EditorUI::onPlayback @ 0x7c28dc\n; > EditorUI::onPlayback @ 0x7c2918\n; > EditorPauseLayer::init @ 0x8b74bc\n; > <???> @ 0x84328\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 12:53:30 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x7923b4\nSTP             X29, X30, [SP,#0x80+var_70]                            ; +0x4, 0x7923b8\nADD             X29, SP, #0x10                                         ; +0x8, 0x7923bc\nSTP             X19, X20, [SP,#0x80+var_60]                            ; +0xc, 0x7923c0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x7923c4\nADD             X20, X29, #0x70+var_10                                 ; +0x14, 0x7923c8\nSTP             X21, X22, [SP,#0x80+var_50]                            ; +0x18, 0x7923cc\nSTP             X23, X24, [SP,#0x80+var_40]                            ; +0x1c, 0x7923d0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7923d4\nMOV             X21, X0                                                ; +0x24, 0x7923d8\nSTP             X25, X26, [SP,#0x80+var_30]                            ; +0x28, 0x7923dc\nMOV             W26, W3                                                ; +0x2c, 0x7923e0\nMOV             X0, X20; this                                          ; +0x30, 0x7923e4\nLDR             X3, [X19]                                              ; +0x34, 0x7923e8\nUXTB            W25, W4                                                ; +0x38, 0x7923ec\nUXTB            W24, W5                                                ; +0x3c, 0x7923f0\nUXTB            W23, W6                                                ; +0x40, 0x7923f4\nMOV             W22, W7                                                ; +0x44, 0x7923f8\nSTR             X2, [X29,#0x70+var_18]                                 ; +0x48, 0x7923fc\nSTR             X3, [X29,#0x70+var_8]                                  ; +0x4c, 0x792400\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x50, 0x792404\nLDR             X6, [X21,#0x1F0]                                       ; +0x54, 0x792408\nMOV             X0, X20                                                ; +0x58, 0x79240c\nLDR             X2, [X29,#0x70+var_18]                                 ; +0x5c, 0x792410\nMOV             W4, W26                                                ; +0x60, 0x792414\nLDR             X1, [X21,#0x230]                                       ; +0x64, 0x792418\nMOV             W5, W25                                                ; +0x68, 0x79241c\nLDR             X8, [X6,#0xCC8]                                        ; +0x6c, 0x792420\nMOV             W3, W2                                                 ; +0x70, 0x792424\nMOV             W7, W24                                                ; +0x74, 0x792428\nLDR             W2, [X8,#0x14C]                                        ; +0x78, 0x79242c\nLDRB            W6, [X8,#0x155]                                        ; +0x7c, 0x792430\nSTRB            W23, [SP,#0x80+var_80]                                 ; +0x80, 0x792434\nSTR             W22, [SP,#0x80+var_78]                                 ; +0x84, 0x792438\nBL              _ZN10LevelTools10timeForPosEN7cocos2d7CCPointEPNS0_7CCArrayEiiibbbbi; LevelTools::timeForPos(cocos2d::CCPoint,cocos2d::CCArray *,int,int,int,bool,bool,bool,bool,int) ; +0x88, 0x79243c\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x8c, 0x792440\nLDR             X0, [X19]                                              ; +0x90, 0x792444\nCMP             X1, X0                                                 ; +0x94, 0x792448\nB.NE            loc_792470                                             ; +0x98, 0x79244c\nSUB             SP, X29, #0x10                                         ; +0x9c, 0x792450\nLDP             X19, X20, [SP,#0x80+var_60]                            ; +0xa0, 0x792454\nLDP             X21, X22, [SP,#0x80+var_50]                            ; +0xa4, 0x792458\nLDP             X23, X24, [SP,#0x80+var_40]                            ; +0xa8, 0x79245c\nLDP             X25, X26, [SP,#0x80+var_30]                            ; +0xac, 0x792460\nLDP             X29, X30, [SP,#0x80+var_70]                            ; +0xb0, 0x792464\nADD             SP, SP, #0x80                                          ; +0xb4, 0x792468\nRET                                                                    ; +0xb8, 0x79246c\nBL              .__stack_chk_fail                                      ; +0xbc, 0x792470", "xrefs": ["LevelEditorLayer::timeForPos @ 0x7924d8", "LevelEditorLayer::updateGameObjects @ 0x79e3e4", "LevelEditorLayer::updateGameObjects @ 0x79e9c4", "LevelEditorLayer::updateLevelSaveInfo @ 0x7a4968", "EditorUI::onPlayback @ 0x7c28dc", "EditorUI::onPlayback @ 0x7c2918", "EditorPauseLayer::init @ 0x8b74bc", "<???> @ 0x84328"], "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"}