// // GJBaseGameLayer::getCameraEdgeValue from 0x10014f0c0 to 0x10014f1e7 (295 bytes) // // 5 xrefs: // > GJBaseGameLayer::updateCamera @ 0x100153ac6 // > GJBaseGameLayer::updateCamera @ 0x100153aea // > GJBaseGameLayer::updateCamera @ 0x100153b2f // > GJBaseGameLayer::updateCamera @ 0x100153b6b // > GJBaseGameLayer::updateCamera @ 0x100153b80 // // 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 // float __fastcall GJBaseGameLayer::getCameraEdgeValue(GJBaseGameLayer *a1, int a2) { unsigned int v3; // r13d intptr_t v5; // r15 double v6; // xmm0_8 cocos2d::CCDictionary *m_parentGroupsDict; // rdi intptr_t v8; // rsi cocos2d::CCObject *v9; // rax intptr_t v11; // r12 cocos2d::CCArray *v12; // r15 _BYTE v13[8]; // [rsp+8h] [rbp-38h] BYREF _DWORD v14[12]; // [rsp+10h] [rbp-30h] BYREF v3 = a2 - 1; if ( (unsigned int)(a2 - 1) >= 4 ) { sub_10028CC60(v14); } else { v5 = *(&a1->m_gameState.m_cameraEdgeValue0 + v3); v6 = sub_10028CC60(v14); if ( v5 > 0 ) { m_parentGroupsDict = a1->m_parentGroupsDict; v8 = v5; v9 = cocos2d::CCDictionary::objectForKey(m_parentGroupsDict, v5); if ( v9 ) goto LABEL_4; v11 = 9999; if ( (unsigned int)v5 < 0x270F ) v11 = (unsigned int)v5; v12 = a1->m_groups.__begin_[v11]; if ( v12 || (v12 = (cocos2d::CCArray *)sub_10071F9E0(m_parentGroupsDict, v8), cocos2d::CCDictionary::setObject(a1->m_groupDict, v12, v11), (a1->m_groups.__begin_[v11] = v12) != nullptr) ) { if ( (unsigned int)sub_100720070(v12) == 1 ) { v9 = (cocos2d::CCObject *)sub_1007200C0(v12, 0); if ( v9 ) { LABEL_4: ((void (__fastcall *)(_BYTE *, cocos2d::CCObject *, double))v9->__vftable[16].getTag)(v13, v9, v6); sub_10028CC90(); } } } } } if ( (unsigned int)(a2 - 3) < 2 ) return *(float *)&v14[1]; if ( v3 > 1 ) return 0.0; return *(float *)v14; }