// // PlayLayer::updateTestModeLabel from 0x140505ed0 to 0x140506139 (617 bytes) // // 12 xrefs: // > PauseLayer::onSideButtonPressed @ 0x1404d9a07 // > PauseLayer::onResume @ 0x1404dae09 // > PlayLayer::init @ 0x1405042c4 // > PlayLayer::setupHasCompleted @ 0x140505b05 // > PlayLayer::resetLevel @ 0x140518cfb // > PlayLayer::resetLevel @ 0x140518d26 // > PlayLayer::resume @ 0x14051ad2e // > UILayer::handleAction @ 0x140671d11 // > UILayer::handleAction @ 0x140672869 // > UILayer::handleAction @ 0x140672adc // > UILayer::handleAction @ 0x140672d9f // > @ 0x14092a89c // // This function is hookable on this platform (idp: pc, 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:33:26 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall PlayLayer::updateTestModeLabel(__int64 a1, __int64 a2) { __int64 v3; // rcx _BYTE *v4; // rdi __int64 v5; // rcx char *v6; // rax size_t v7; // r8 char *v8; // rdx cocos2d::CCString *v9; // rax const char *CString; // rax void **v11; // rdx void *v12; // rcx void *Block[2]; // [rsp+30h] [rbp-30h] BYREF __int64 v14; // [rsp+40h] [rbp-20h] unsigned __int64 v15; // [rsp+48h] [rbp-18h] v3 = *(_QWORD *)(a1 + 14856); if ( !v3 ) return; if ( *(_BYTE *)(a1 + 14841) || (v4 = (_BYTE *)(a1 + 14842), *(_BYTE *)(a1 + 14842)) || *(_BYTE *)(a1 + 13096) || *(float *)(a1 + 13664) != 1.0 ) { LOBYTE(a2) = 1; v4 = (_BYTE *)(a1 + 14842); } else { a2 = 0; } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 336LL))(v3, a2); *(_OWORD *)Block = 0; v5 = 0; v14 = 0; v15 = 15; LOBYTE(Block[0]) = 0; if ( *(_BYTE *)(a1 + 2210) ) { v5 = 13; qmemcpy(Block, "Ignore Damag", 12); WORD2(Block[1]) = (unsigned __int8)aIgnoreDamage[12]; LABEL_14: v14 = v5; goto LABEL_15; } if ( *(_BYTE *)(a1 + 14841) ) { v6 = (char *)sub_14003D460(0x20u); v14 = 18; v15 = 31; strcpy(v6, "Used Ignore Damage"); Block[0] = v6; v5 = 18; goto LABEL_15; } if ( *(_BYTE *)(a1 + 13096) ) { v5 = 8; strcpy((char *)Block, "Testmode"); v4 = (_BYTE *)(a1 + 14842); goto LABEL_14; } LABEL_15: if ( *(float *)(a1 + 13664) != 1.0 || *v4 ) { if ( v5 ) sub_140044D80(Block, (void *)Delimiter, 1u); if ( *v4 && *(float *)(a1 + 13664) == 1.0 ) { v7 = 17; v8 = "Used Speed Change"; } else { v9 = cocos2d::CCString::createWithFormat("Speed: %.01fx", *(float *)(a1 + 13664)); CString = cocos2d::CCString::getCString(v9); v7 = -1; do ++v7; while ( CString[v7] ); v8 = (char *)CString; } sub_140044D80(Block, v8, v7); } v11 = Block; if ( v15 > 0xF ) v11 = (void **)Block[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 14856) + 360LL))(*(_QWORD *)(a1 + 14856) + 360LL, v11); if ( v15 > 0xF ) { v12 = Block[0]; if ( v15 + 1 >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source