// // SetupCameraOffsetTrigger::textChanged from 0x1404173c0 to 0x14041776f (943 bytes) // // 4 xrefs: // > @ 0x1405df7f0 // > @ 0x14069fc4c // > @ 0x14069fc5c // > @ 0x1406d8fd8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupCameraOffsetTrigger::textChanged(SetupCameraOffsetTrigger *a1, CCTextInputNode *a2) { int v4; // eax int v5; // eax const char *v6; // rax size_t v7; // r8 const char *v8; // rcx float v9; // xmm6_4 char *v10; // rcx cocos2d::CCString *v11; // rax float v12; // xmm1_4 float v13; // xmm2_4 cocos2d::CCScriptHandlerEntry *m_pScriptAccelerateHandlerEntry; // rcx const char *v15; // rax size_t v16; // r8 const char *v17; // rcx int v18; // edi char *v19; // rcx float v20; // xmm2_4 const char *v21; // rax size_t v22; // r8 const char *v23; // rcx int v24; // edi char *v25; // rcx float v26; // xmm2_4 char *String[2]; // [rsp+28h] [rbp-38h] BYREF __int128 v28; // [rsp+38h] [rbp-28h] if ( !LOBYTE(a1->m_fSkewX) ) { v4 = a2->getTag(a2); if ( v4 ) { v5 = v4 - 1; if ( v5 ) { if ( v5 != 2 ) return; v6 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v7 = -1; v28 = 0; do ++v7; while ( v6[v7] ); sub_14003A930(String, v6, v7); v8 = (const char *)String; if ( *((_QWORD *)&v28 + 1) > 0xFu ) v8 = String[0]; v9 = atof(v8); if ( *((_QWORD *)&v28 + 1) > 0xFu ) { v10 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v28 + 1) + 1LL) >= 0x1000 ) { v10 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v10 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v10); } v11 = cocos2d::CCString::createWithFormat("%.02f", v9); *(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = cocos2d::CCString::floatValue(v11); GJFollowCommandLayer::updateDuration((__int64)&a1[-1]._cascadeOpacityEnabled); v12 = 0.0; v13 = fminf( 1.0, *(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable / 10.0); if ( v13 >= 0.0 ) v12 = v13; m_pScriptAccelerateHandlerEntry = *(cocos2d::CCScriptHandlerEntry **)&a1->m_bUseChildIndex; goto LABEL_47; } v15 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v16 = -1; v28 = 0; do ++v16; while ( v15[v16] ); sub_14003A930(String, v15, v16); v17 = (const char *)String; if ( *((_QWORD *)&v28 + 1) > 0xFu ) v17 = String[0]; v18 = atoi(v17); if ( *((_QWORD *)&v28 + 1) > 0xFu ) { v19 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v28 + 1) + 1LL) >= 0x1000 ) { v19 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v19 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v19); } a1->m_eTouchMode = (int)(float)((float)v18 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosY((SetupCameraOffsetTrigger *)((char *)a1 - 632)); v12 = 1.0; v20 = fminf(1.0, (float)(floorf((float)a1->m_eTouchMode / 3.0) / 200.0) + 0.5); if ( v20 < 0.0 ) goto LABEL_29; if ( v20 <= 1.0 ) { if ( v20 < 0.0 ) { LABEL_29: m_pScriptAccelerateHandlerEntry = a1->m_pScriptAccelerateHandlerEntry; v12 = 0.0; LABEL_47: Slider::setValue((Slider *)m_pScriptAccelerateHandlerEntry, v12); return; } v12 = v20; } m_pScriptAccelerateHandlerEntry = a1->m_pScriptAccelerateHandlerEntry; goto LABEL_47; } v21 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)String = 0; v22 = -1; v28 = 0; do ++v22; while ( v21[v22] ); sub_14003A930(String, v21, v22); v23 = (const char *)String; if ( *((_QWORD *)&v28 + 1) > 0xFu ) v23 = String[0]; v24 = atoi(v23); if ( *((_QWORD *)&v28 + 1) > 0xFu ) { v25 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v28 + 1) + 1LL) >= 0x1000 ) { v25 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v25 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v25); } a1->m_nTouchPriority = (int)(float)((float)v24 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosX((SetupCameraOffsetTrigger *)((char *)a1 - 632)); v12 = 1.0; v26 = fminf(1.0, (float)(floorf((float)a1->m_nTouchPriority / 3.0) / 200.0) + 0.5); if ( v26 >= 0.0 ) { if ( v26 > 1.0 ) { LABEL_46: m_pScriptAccelerateHandlerEntry = a1->m_pScriptKeypadHandlerEntry; goto LABEL_47; } if ( v26 >= 0.0 ) { v12 = v26; goto LABEL_46; } } v12 = 0.0; goto LABEL_46; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source