{"type": "func", "start": 4610528, "end": 4610632, "name": "DrawGridLayer::timeForPos", "pseudocode": "// \n// DrawGridLayer::timeForPos from 0x4659e0 to 0x465a48 (104 bytes)\n// \n// 7 xrefs:\n// > LevelEditorLayer::timeForPos @ 0x465a88\n// > LevelEditorLayer::updateGameObjects @ 0x46cb90\n// > LevelEditorLayer::updateGameObjects @ 0x46cc06\n// > LevelEditorLayer::updateLevelSaveInfo @ 0x4708d0\n// > EditorUI::onPlayback @ 0x48249e\n// > EditorUI::onPlayback @ 0x4824ca\n// > EditorPauseLayer::init @ 0x509932\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:56 +0000\n// \n\nint __fastcall DrawGridLayer::timeForPos(\n        int a1,\n        const cocos2d::CCPoint *a2,\n        int a3,\n        int a4,\n        char a5,\n        char a6,\n        char a7,\n        int a8)\n{\n  float v12[2]; // [sp+1Ch] [bp-Ch] BYREF\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, a2);\n  return LevelTools::timeForPos(\n           v12,\n           *(cocos2d::CCArray **)(a1 + 404),\n           *(LevelTools **)(*(_DWORD *)(*(_DWORD *)(a1 + 372) + 2084) + 272),\n           a3,\n           a4,\n           a5,\n           *(_BYTE *)(*(_DWORD *)(*(_DWORD *)(a1 + 372) + 2084) + 281),\n           a6,\n           a7,\n           a8);\n}", "assembly": "; \n; DrawGridLayer::timeForPos from 0x4659e0 to 0x465a48 (104 bytes)\n; \n; 7 xrefs:\n; > LevelEditorLayer::timeForPos @ 0x465a88\n; > LevelEditorLayer::updateGameObjects @ 0x46cb90\n; > LevelEditorLayer::updateGameObjects @ 0x46cc06\n; > LevelEditorLayer::updateLevelSaveInfo @ 0x4708d0\n; > EditorUI::onPlayback @ 0x48249e\n; > EditorUI::onPlayback @ 0x4824ca\n; > EditorPauseLayer::init @ 0x509932\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:48:56 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x4659e0\nSUB             SP, SP, #0x28                                          ; +0x4, 0x4659e4\nLDR             R4, =(__stack_chk_guard_ptr - 0x4659F2)                ; +0x6, 0x4659e6\nMOV             R8, R3                                                 ; +0x8, 0x4659e8\nADD             R6, SP, #0x28+var_C                                    ; +0xa, 0x4659ea\nMOV             R5, R0                                                 ; +0xc, 0x4659ec\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4659ee\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4659f0\nMOV             R7, R2                                                 ; +0x12, 0x4659f2\nMOV             R0, R6; this                                           ; +0x14, 0x4659f4\nLDR             R3, [R4]                                               ; +0x16, 0x4659f6\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x18, 0x4659f8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1a, 0x4659fa\nLDR.W           R3, [R5,#0x174]                                        ; +0x1e, 0x4659fe\nMOV             R0, R6                                                 ; +0x22, 0x465a02\nLDR.W           R1, [R5,#0x194]                                        ; +0x24, 0x465a04\nLDR.W           R2, [R3,#0x824]                                        ; +0x28, 0x465a08\nLDRB.W          R3, [SP,#0x28+arg_0]                                   ; +0x2c, 0x465a0c\nSTR.W           R8, [SP,#0x28+var_28]                                  ; +0x30, 0x465a10\nSTR             R3, [SP,#0x28+var_24]                                  ; +0x34, 0x465a14\nLDRB.W          R3, [R2,#0x119]                                        ; +0x36, 0x465a16\nSTR             R3, [SP,#0x28+var_20]                                  ; +0x3a, 0x465a1a\nLDRB.W          R3, [SP,#0x28+arg_4]                                   ; +0x3c, 0x465a1c\nSTR             R3, [SP,#0x28+var_1C]                                  ; +0x40, 0x465a20\nLDRB.W          R3, [SP,#0x28+arg_8]                                   ; +0x42, 0x465a22\nSTR             R3, [SP,#0x28+var_18]                                  ; +0x46, 0x465a26\nLDR             R3, [SP,#0x28+arg_C]                                   ; +0x48, 0x465a28\nSTR             R3, [SP,#0x28+var_14]                                  ; +0x4a, 0x465a2a\nMOV             R3, R7                                                 ; +0x4c, 0x465a2c\nLDR.W           R2, [R2,#0x110]                                        ; +0x4e, 0x465a2e\nBL              _ZN10LevelTools10timeForPosEN7cocos2d7CCPointEPNS0_7CCArrayEiiibbbbi; LevelTools::timeForPos(cocos2d::CCPoint,cocos2d::CCArray *,int,int,int,bool,bool,bool,bool,int) ; +0x52, 0x465a32\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x56, 0x465a36\nLDR             R3, [R4]                                               ; +0x58, 0x465a38\nCMP             R2, R3                                                 ; +0x5a, 0x465a3a\nBEQ             loc_465A42                                             ; +0x5c, 0x465a3c\nBLX             __stack_chk_fail                                       ; +0x5e, 0x465a3e\nADD             SP, SP, #0x28 ; '('                                    ; +0x62, 0x465a42\nPOP.W           {R4-R8,PC}                                             ; +0x64, 0x465a44", "xrefs": ["LevelEditorLayer::timeForPos @ 0x465a88", "LevelEditorLayer::updateGameObjects @ 0x46cb90", "LevelEditorLayer::updateGameObjects @ 0x46cc06", "LevelEditorLayer::updateLevelSaveInfo @ 0x4708d0", "EditorUI::onPlayback @ 0x48249e", "EditorUI::onPlayback @ 0x4824ca", "EditorPauseLayer::init @ 0x509932"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}