//
// sub_784874 from 0x784874 to 0x7848be (74 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::init @ 0x787c7c
// > EditorSoundConfigInfoLayer::init @ 0x787d86
// > EditorSoundConfigInfoLayer::init @ 0x787fac
//
// 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:59:31 +0000
//
int __fastcall sub_784874(cocos2d::CCSpriteFrameCache *a1, int a2)
{
int (__fastcall *v3)(int, _DWORD); // r5
float v4; // s16
cocos2d::CCSpriteFrameCache *v5; // r0
float v6; // s16
float *v7; // r0
v3 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)a2 + 80);
v4 = **(float **)a1;
v5 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(a1);
v6 = v4 * *(float *)(cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, "GJ_updateBtn_001.png") + 60);
v7 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 164))(a2);
return v3(a2, v6 / *v7);
}