{"type": "func", "start": 5372530080, "end": 5372530912, "name": "PlayLayer::PlayLayer", "pseudocode": "// \n// PlayLayer::PlayLayer from 0x1403a4da0 to 0x1403a50e0 (832 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::scene @ 0x1403a5a94\n// > <???> @ 0x1406d6adc\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\n// Hidden C++ exception states: #wind=11\nPlayLayer *PlayLayer::PlayLayer(PlayLayer *a1)\n{\n  __int64 v2; // r8\n  DynamicBitset *p_m_keyPulses; // [rsp+38h] [rbp+10h] BYREF\n\n  GJBaseGameLayer::GJBaseGameLayer(a1);\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (PlayLayer_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->GJBaseGameLayer::TriggerEffectDelegate::__vftable = (TriggerEffectDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->CCCircleWaveDelegate::__vftable = (CCCircleWaveDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->CurrencyRewardDelegate::__vftable = (CurrencyRewardDelegate_vtbl *)&PlayLayer::`vftable';\n  a1->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&PlayLayer::`vftable';\n  *(_DWORD *)&a1->m_unk36cc = 0;\n  a1->m_damageVerified = 0;\n  a1->m_objectStrings._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_objectStrings._Mypair._Myval2._Mylast = nullptr;\n  a1->m_objectStrings._Mypair._Myval2._Myend = nullptr;\n  a1->m_coinArray = nullptr;\n  a1->m_passedIntegrity = 0;\n  a1->m_objectsCreated = 0;\n  a1->m_dynamicSaveObjects._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_dynamicSaveObjects._Mypair._Myval2._Mylast = nullptr;\n  a1->m_dynamicSaveObjects._Mypair._Myval2._Myend = nullptr;\n  a1->m_activeSaveObjects1._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_activeSaveObjects1._Mypair._Myval2._Mylast = nullptr;\n  a1->m_activeSaveObjects1._Mypair._Myval2._Myend = nullptr;\n  a1->m_activeSaveObjects2._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_activeSaveObjects2._Mypair._Myval2._Mylast = nullptr;\n  a1->m_activeSaveObjects2._Mypair._Myval2._Myend = nullptr;\n  a1->m_dynamicSaveObjects2._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_dynamicSaveObjects2._Mypair._Myval2._Mylast = nullptr;\n  a1->m_dynamicSaveObjects2._Mypair._Myval2._Myend = nullptr;\n  a1->m_unk3768 = 0;\n  *(_WORD *)&a1->m_platformerRestart = 0;\n  a1->m_isIgnoreDamageEnabled = 0;\n  a1->m_statusLabel = nullptr;\n  a1->m_unk3778 = 0.0;\n  *(_QWORD *)&a1->m_unk3780 = 0;\n  a1->m_endChecked = 0;\n  a1->m_endXPosition = 0.0;\n  a1->m_currentCheckpoint = nullptr;\n  a1->m_checkpointArray = nullptr;\n  *(_WORD *)&a1->m_unk37b0 = 0;\n  cocos2d::CCPoint::CCPoint(&a1->m_enterEffectPosition);\n  a1->m_isSilent = 0;\n  a1->m_circleWaveArray = nullptr;\n  a1->m_collectibles = nullptr;\n  a1->m_unk37e0 = 0;\n  *(_QWORD *)&a1->m_pulseRodIndex = 0;\n  a1->m_attemptLabel = nullptr;\n  *(_WORD *)&a1->m_decimalPercentage = 0;\n  a1->m_progressBar = nullptr;\n  a1->m_progressFill = nullptr;\n  *(_QWORD *)&a1->m_progressWidth = 0;\n  *(_QWORD *)&a1->m_totalGravityEffects = 0;\n  a1->m_gravityEffectIndex = 0;\n  a1->m_gravityEffects = nullptr;\n  a1->m_doNot = 0;\n  a1->m_unk383c = 0.0;\n  a1->m_skipAudioStep = 0;\n  HIDWORD(p_m_keyPulses) = (unsigned __int64)&a1->m_blendingColors >> 32;\n  LODWORD(p_m_keyPulses) = 0;\n  sub_14005E660((__int64)&a1->m_blendingColors, &p_m_keyPulses, v2);\n  a1->m_jumps = 0;\n  a1->m_hasJumped = 0;\n  a1->m_uncommittedJumps = 0;\n  *(_WORD *)&a1->m_showLeaderboardPercentage = 0;\n  a1->m_inResetDelay = 0;\n  a1->m_lastAttemptPercent = 0;\n  a1->m_endLayerStars = 0;\n  *(_QWORD *)&a1->m_orbs = 0;\n  *(_WORD *)&a1->m_secretKey = 0;\n  a1->m_unk38b0 = 0.0;\n  a1->m_unk38b8 = 0.0;\n  a1->m_unk38c0 = 0.0;\n  a1->m_unk38c8 = 0;\n  *(_QWORD *)&a1->m_unk38cc = 0;\n  a1->m_attemptTime = 0.0;\n  a1->m_bestAttemptTime = 0.0;\n  a1->m_currentTime = 0.0;\n  a1->m_pauseDelta = 0.0;\n  *(_QWORD *)&a1->m_unk3900 = 0;\n  a1->m_disableGravityEffect = 0;\n  a1->m_infoLabel = nullptr;\n  cocos2d::CCPoint::CCPoint(&a1->m_unk3918);\n  cocos2d::CCPoint::CCPoint(&a1->m_unk3920);\n  a1->m_keyColors._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_keyColors._Mypair._Myval2._Mylast = nullptr;\n  a1->m_keyColors._Mypair._Myval2._Myend = nullptr;\n  a1->m_keyOpacities._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_keyOpacities._Mypair._Myval2._Mylast = nullptr;\n  a1->m_keyOpacities._Mypair._Myval2._Myend = nullptr;\n  p_m_keyPulses = &a1->m_keyPulses;\n  a1->m_keyPulses.m_bits._Mypair._Myval2._Myfirst = nullptr;\n  a1->m_keyPulses.m_bits._Mypair._Myval2._Mylast = nullptr;\n  a1->m_keyPulses.m_bits._Mypair._Myval2._Myend = nullptr;\n  DynamicBitset::resize(&a1->m_keyPulses, 0);\n  a1->m_nextColorKey = 0;\n  a1->m_tryPlaceCheckpoint = 0;\n  a1->m_activatedCheckpoint = nullptr;\n  a1->m_musicPrepared = 0;\n  cocos2d::CCPoint::CCPoint(&a1->m_endPosition);\n  a1->m_platformerEndTrigger = nullptr;\n  return a1;\n}", "assembly": "; \n; PlayLayer::PlayLayer from 0x1403a4da0 to 0x1403a50e0 (832 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::scene @ 0x1403a5a94\n; > <???> @ 0x1406d6adc\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1403a4da0\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x1403a4da5\npush    rdi                                                            ; +0xa, 0x1403a4daa\nsub     rsp, 20h                                                       ; +0xb, 0x1403a4dab\nmov     rbx, rcx                                                       ; +0xf, 0x1403a4daf\ncall    GJBaseGameLayer__GJBaseGameLayer                               ; +0x12, 0x1403a4db2\nnop                                                                    ; +0x17, 0x1403a4db7\nlea     rax, ??_7PlayLayer@@6B@; const PlayLayer::`vftable'            ; +0x18, 0x1403a4db8\nmov     [rbx], rax                                                     ; +0x1f, 0x1403a4dbf\nlea     rax, ??_7PlayLayer@@6B@_0; const PlayLayer::`vftable'          ; +0x22, 0x1403a4dc2\nmov     [rbx+140h], rax                                                ; +0x29, 0x1403a4dc9\nlea     rax, ??_7PlayLayer@@6B@_1; const PlayLayer::`vftable'          ; +0x30, 0x1403a4dd0\nmov     [rbx+148h], rax                                                ; +0x37, 0x1403a4dd7\nlea     rax, ??_7PlayLayer@@6B@_2; const PlayLayer::`vftable'          ; +0x3e, 0x1403a4dde\nmov     [rbx+150h], rax                                                ; +0x45, 0x1403a4de5\nlea     rax, ??_7PlayLayer@@6B@_3; const PlayLayer::`vftable'          ; +0x4c, 0x1403a4dec\nmov     [rbx+158h], rax                                                ; +0x53, 0x1403a4df3\nlea     rax, ??_7PlayLayer@@6B@_4; const PlayLayer::`vftable'          ; +0x5a, 0x1403a4dfa\nmov     [rbx+160h], rax                                                ; +0x61, 0x1403a4e01\nlea     rax, ??_7PlayLayer@@6B@_5; const PlayLayer::`vftable'          ; +0x68, 0x1403a4e08\nmov     [rbx+198h], rax                                                ; +0x6f, 0x1403a4e0f\nlea     rax, ??_7PlayLayer@@6B@_6; const PlayLayer::`vftable'          ; +0x76, 0x1403a4e16\nmov     [rbx+37A0h], rax                                               ; +0x7d, 0x1403a4e1d\nlea     rax, ??_7PlayLayer@@6B@_7; const PlayLayer::`vftable'          ; +0x84, 0x1403a4e24\nmov     [rbx+37A8h], rax                                               ; +0x8b, 0x1403a4e2b\nlea     rax, ??_7PlayLayer@@6B@_8; const PlayLayer::`vftable'          ; +0x92, 0x1403a4e32\nmov     [rbx+37B0h], rax                                               ; +0x99, 0x1403a4e39\nmov     dword ptr [rbx+37BCh], 0                                       ; +0xa0, 0x1403a4e40\nmov     byte ptr [rbx+37C0h], 0                                        ; +0xaa, 0x1403a4e4a\nxor     edi, edi                                                       ; +0xb1, 0x1403a4e51\nmov     [rbx+37C8h], rdi                                               ; +0xb3, 0x1403a4e53\nmov     [rbx+37D0h], rdi                                               ; +0xba, 0x1403a4e5a\nmov     [rbx+37D8h], rdi                                               ; +0xc1, 0x1403a4e61\nmov     [rbx+37E0h], rdi                                               ; +0xc8, 0x1403a4e68\nmov     [rbx+37E8h], dil                                               ; +0xcf, 0x1403a4e6f\nmov     [rbx+37ECh], edi                                               ; +0xd6, 0x1403a4e76\nmov     [rbx+37F0h], rdi                                               ; +0xdc, 0x1403a4e7c\nmov     [rbx+37F8h], rdi                                               ; +0xe3, 0x1403a4e83\nmov     [rbx+3800h], rdi                                               ; +0xea, 0x1403a4e8a\nmov     [rbx+3808h], rdi                                               ; +0xf1, 0x1403a4e91\nmov     [rbx+3810h], rdi                                               ; +0xf8, 0x1403a4e98\nmov     [rbx+3818h], rdi                                               ; +0xff, 0x1403a4e9f\nmov     [rbx+3820h], rdi                                               ; +0x106, 0x1403a4ea6\nmov     [rbx+3828h], rdi                                               ; +0x10d, 0x1403a4ead\nmov     [rbx+3830h], rdi                                               ; +0x114, 0x1403a4eb4\nmov     [rbx+3838h], rdi                                               ; +0x11b, 0x1403a4ebb\nmov     [rbx+3840h], rdi                                               ; +0x122, 0x1403a4ec2\nmov     [rbx+3848h], rdi                                               ; +0x129, 0x1403a4ec9\nmov     [rbx+3850h], edi                                               ; +0x130, 0x1403a4ed0\nmov     [rbx+3854h], di                                                ; +0x136, 0x1403a4ed6\nmov     [rbx+3856h], dil                                               ; +0x13d, 0x1403a4edd\nmov     [rbx+3858h], rdi                                               ; +0x144, 0x1403a4ee4\nmov     [rbx+3860h], edi                                               ; +0x14b, 0x1403a4eeb\nmov     [rbx+3868h], rdi                                               ; +0x151, 0x1403a4ef1\nmov     [rbx+3878h], dil                                               ; +0x158, 0x1403a4ef8\nmov     [rbx+387Ch], edi                                               ; +0x15f, 0x1403a4eff\nmov     [rbx+3880h], rdi                                               ; +0x165, 0x1403a4f05\nmov     [rbx+3888h], rdi                                               ; +0x16c, 0x1403a4f0c\nmov     [rbx+3898h], di                                                ; +0x173, 0x1403a4f13\nlea     rcx, [rbx+389Ch]                                               ; +0x17a, 0x1403a4f1a\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x181, 0x1403a4f21\nmov     [rbx+38B0h], dil                                               ; +0x187, 0x1403a4f27\nmov     [rbx+38B8h], rdi                                               ; +0x18e, 0x1403a4f2e\nmov     [rbx+38C0h], rdi                                               ; +0x195, 0x1403a4f35\nmov     [rbx+38C8h], dil                                               ; +0x19c, 0x1403a4f3c\nmov     [rbx+38CCh], rdi                                               ; +0x1a3, 0x1403a4f43\nmov     [rbx+38D8h], rdi                                               ; +0x1aa, 0x1403a4f4a\nmov     [rbx+38E8h], di                                                ; +0x1b1, 0x1403a4f51\nmov     [rbx+38F0h], rdi                                               ; +0x1b8, 0x1403a4f58\nmov     [rbx+38F8h], rdi                                               ; +0x1bf, 0x1403a4f5f\nmov     [rbx+3900h], rdi                                               ; +0x1c6, 0x1403a4f66\nmov     [rbx+3908h], rdi                                               ; +0x1cd, 0x1403a4f6d\nmov     [rbx+3910h], edi                                               ; +0x1d4, 0x1403a4f74\nmov     [rbx+3918h], rdi                                               ; +0x1da, 0x1403a4f7a\nmov     [rbx+3920h], dil                                               ; +0x1e1, 0x1403a4f81\nmov     [rbx+3924h], edi                                               ; +0x1e8, 0x1403a4f88\nmov     [rbx+3928h], dil                                               ; +0x1ee, 0x1403a4f8e\nlea     rcx, [rbx+3930h]                                               ; +0x1f5, 0x1403a4f95\nmov     [rsp+28h+arg_8], rcx                                           ; +0x1fc, 0x1403a4f9c\nmov     dword ptr [rsp+28h+arg_8], edi                                 ; +0x201, 0x1403a4fa1\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x205, 0x1403a4fa5\ncall    sub_14005E660                                                  ; +0x20a, 0x1403a4faa\nnop                                                                    ; +0x20f, 0x1403a4faf\nmov     [rbx+3970h], edi                                               ; +0x210, 0x1403a4fb0\nmov     [rbx+3974h], dil                                               ; +0x216, 0x1403a4fb6\nmov     [rbx+3978h], edi                                               ; +0x21d, 0x1403a4fbd\nmov     [rbx+397Ch], di                                                ; +0x223, 0x1403a4fc3\nmov     [rbx+397Eh], dil                                               ; +0x22a, 0x1403a4fca\nmov     [rbx+3980h], edi                                               ; +0x231, 0x1403a4fd1\nmov     [rbx+3984h], dil                                               ; +0x237, 0x1403a4fd7\nmov     [rbx+3988h], rdi                                               ; +0x23e, 0x1403a4fde\nmov     [rbx+3990h], di                                                ; +0x245, 0x1403a4fe5\nmov     [rbx+3998h], rdi                                               ; +0x24c, 0x1403a4fec\nmov     [rbx+39A0h], rdi                                               ; +0x253, 0x1403a4ff3\nmov     [rbx+39A8h], rdi                                               ; +0x25a, 0x1403a4ffa\nmov     [rbx+39B0h], dil                                               ; +0x261, 0x1403a5001\nmov     [rbx+39B4h], rdi                                               ; +0x268, 0x1403a5008\nmov     [rbx+39C0h], rdi                                               ; +0x26f, 0x1403a500f\nmov     [rbx+39C8h], rdi                                               ; +0x276, 0x1403a5016\nmov     [rbx+39D8h], rdi                                               ; +0x27d, 0x1403a501d\nmov     [rbx+39E0h], rdi                                               ; +0x284, 0x1403a5024\nmov     [rbx+39E8h], rdi                                               ; +0x28b, 0x1403a502b\nmov     [rbx+39F0h], dil                                               ; +0x292, 0x1403a5032\nmov     [rbx+39F8h], rdi                                               ; +0x299, 0x1403a5039\nlea     rcx, [rbx+3A00h]                                               ; +0x2a0, 0x1403a5040\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2a7, 0x1403a5047\nlea     rcx, [rbx+3A08h]                                               ; +0x2ad, 0x1403a504d\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x2b4, 0x1403a5054\nmov     [rbx+3A18h], rdi                                               ; +0x2ba, 0x1403a505a\nmov     [rbx+3A20h], rdi                                               ; +0x2c1, 0x1403a5061\nmov     [rbx+3A28h], rdi                                               ; +0x2c8, 0x1403a5068\nmov     [rbx+3A30h], rdi                                               ; +0x2cf, 0x1403a506f\nmov     [rbx+3A38h], rdi                                               ; +0x2d6, 0x1403a5076\nmov     [rbx+3A40h], rdi                                               ; +0x2dd, 0x1403a507d\nlea     rcx, [rbx+3A48h]                                               ; +0x2e4, 0x1403a5084\nmov     [rsp+28h+arg_8], rcx                                           ; +0x2eb, 0x1403a508b\nmov     [rcx], rdi                                                     ; +0x2f0, 0x1403a5090\nmov     [rcx+8], rdi                                                   ; +0x2f3, 0x1403a5093\nmov     [rcx+10h], rdi                                                 ; +0x2f7, 0x1403a5097\nxor     edx, edx                                                       ; +0x2fb, 0x1403a509b\ncall    DynamicBitset__resize                                          ; +0x2fd, 0x1403a509d\nnop                                                                    ; +0x302, 0x1403a50a2\nmov     [rbx+3A60h], edi                                               ; +0x303, 0x1403a50a3\nmov     [rbx+3A64h], dil                                               ; +0x309, 0x1403a50a9\nmov     [rbx+3A68h], rdi                                               ; +0x310, 0x1403a50b0\nmov     [rbx+3A70h], dil                                               ; +0x317, 0x1403a50b7\nlea     rcx, [rbx+3A74h]                                               ; +0x31e, 0x1403a50be\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x325, 0x1403a50c5\nmov     [rbx+3A80h], rdi                                               ; +0x32b, 0x1403a50cb\nmov     rax, rbx                                                       ; +0x332, 0x1403a50d2\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x335, 0x1403a50d5\nadd     rsp, 20h                                                       ; +0x33a, 0x1403a50da\npop     rdi                                                            ; +0x33e, 0x1403a50de\nretn                                                                   ; +0x33f, 0x1403a50df", "xrefs": ["PlayLayer::scene @ 0x1403a5a94", "<???> @ 0x1406d6adc"], "is_objc": false, "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"}