// // GJScaleControl::ccTouchBegan from 0x6ebc9c to 0x6ebe4a (430 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJScaleControl::ccTouchBegan @ 0x6ebe54 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:57:32 +0000 // int __fastcall GJScaleControl::ccTouchBegan(int a1, int a2, int a3) { int v6; // r5 int v7; // r10 int v8; // r0 int v9; // r10 int v10; // r10 Slider *v11; // r0 const char *Value; // r0 int v13; // r0 __int16 v14; // r3 Slider *v15; // r0 const char *v16; // r0 int v17; // r0 int v18; // r0 _BYTE v20[8]; // [sp+4h] [bp-2Ch] BYREF _BYTE v21[8]; // [sp+Ch] [bp-24h] BYREF _BYTE v22[8]; // [sp+14h] [bp-1Ch] BYREF _BYTE v23[8]; // [sp+1Ch] [bp-14h] BYREF _BYTE v24[8]; // [sp+24h] [bp-Ch] BYREF if ( *(_DWORD *)(a1 + 328) != -1 ) return 0; if ( ControlMenuTouch::began((_DWORD *)(a1 + 396), a2, a3) ) return 1; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v20); if ( !(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 368) + 176))(*(_DWORD *)(a1 + 368)) || (v7 = *(_DWORD *)(a1 + 368), cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, (const cocos2d::CCPoint *)v20), (v8 = CCTextInputNode::containsTouchPoint(v7)) == 0) ) { if ( !(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 372) + 176))(*(_DWORD *)(a1 + 372)) || (v9 = *(_DWORD *)(a1 + 372), cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, (const cocos2d::CCPoint *)v20), (v8 = CCTextInputNode::containsTouchPoint(v9)) == 0) ) { if ( !(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 376) + 176))(*(_DWORD *)(a1 + 376)) ) goto LABEL_12; v10 = *(_DWORD *)(a1 + 376); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, (const cocos2d::CCPoint *)v20); v8 = CCTextInputNode::containsTouchPoint(v10); } } if ( v8 ) return 1; LABEL_12: GJScaleControl::releaseInputFocus((GJScaleControl *)a1); cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v23); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v24, (const cocos2d::CCPoint *)a1); cocos2d::CCPoint::operator=(v23, v24); v6 = (*(int (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 316) + 448))(*(_DWORD *)(a1 + 316), a2, a3); if ( v6 ) { v11 = *(Slider **)(a1 + 316); *(_DWORD *)(a1 + 328) = *(_DWORD *)(a2 + 52); Value = (const char *)Slider::getValue(v11); *(_DWORD *)(a1 + 332) = GJScaleControl::scaleFromValue((GJScaleControl *)a1, Value); v13 = *(_DWORD *)(a1 + 412); if ( v13 ) (*(void (__fastcall **)(int))(*(_DWORD *)v13 + 12))(v13); v14 = 0; LABEL_24: *(_WORD *)(a1 + 354) = v14; return v6; } v6 = (*(int (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 320) + 448))(*(_DWORD *)(a1 + 320), a2, a3); if ( v6 ) { v15 = *(Slider **)(a1 + 320); *(_DWORD *)(a1 + 328) = *(_DWORD *)(a2 + 52); v16 = (const char *)Slider::getValue(v15); *(_DWORD *)(a1 + 336) = GJScaleControl::scaleFromValue((GJScaleControl *)a1, v16); v17 = *(_DWORD *)(a1 + 412); if ( v17 ) (*(void (__fastcall **)(int))(*(_DWORD *)v17 + 12))(v17); v14 = 1; goto LABEL_24; } v6 = (*(int (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 324) + 448))(*(_DWORD *)(a1 + 324), a2, a3); if ( v6 ) { v18 = *(_DWORD *)(a1 + 412); *(_DWORD *)(a1 + 328) = *(_DWORD *)(a2 + 52); if ( v18 ) (*(void (__fastcall **)(int))(*(_DWORD *)v18 + 12))(v18); v14 = 2; goto LABEL_24; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source