{"type": "func", "start": 4777356, "end": 4777416, "name": "GJBaseGameLayer::collectedObject", "pseudocode": "// \n// GJBaseGameLayer::collectedObject from 0x48e58c to 0x48e5c8 (60 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3eda14\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJBaseGameLayer::collectedObject(GJBaseGameLayer *a1, EffectGameObject *a2)\n{\n  _BOOL4 m_subtractCount; // r3\n  GJEffectManager *m_effectManager; // r0\n  int m_itemID; // r1\n  int v7; // r2\n  int v8; // r5\n  int v9; // r0\n\n  m_subtractCount = a2->m_subtractCount;\n  m_effectManager = a1->m_effectManager;\n  m_itemID = a2->m_itemID;\n  if ( m_subtractCount )\n    v7 = -1;\n  else\n    v7 = 1;\n  GJEffectManager::addCountToItem(m_effectManager, m_itemID, v7);\n  v8 = a2->m_itemID;\n  v9 = GJEffectManager::countForItem(a1->m_effectManager, v8);\n  GJBaseGameLayer::updateCounters(a1, v8, v9);\n}", "assembly": "; \n; GJBaseGameLayer::collectedObject from 0x48e58c to 0x48e5c8 (60 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3eda14\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x48e58c\nMOV             R4, R0                                                 ; +0x2, 0x48e58e\nLDRB.W          R3, [R1,#0x5DB]                                        ; +0x4, 0x48e590\nMOV             R5, R1                                                 ; +0x8, 0x48e594\nLDR.W           R0, [R0,#0x690]; this                                  ; +0xa, 0x48e596\nLDR.W           R1, [R1,#0x5D4]; int                                   ; +0xe, 0x48e59a\nCBZ             R3, loc_48E5A6                                         ; +0x12, 0x48e59e\nMOV.W           R2, #0xFFFFFFFF                                        ; +0x14, 0x48e5a0\nB               loc_48E5A8                                             ; +0x18, 0x48e5a4\nMOVS            R2, #1; int                                            ; +0x1a, 0x48e5a6\nBL              _ZN15GJEffectManager14addCountToItemEii; GJEffectManager::addCountToItem(int,int) ; +0x1c, 0x48e5a8\nLDR.W           R5, [R5,#0x5D4]                                        ; +0x20, 0x48e5ac\nLDR.W           R0, [R4,#0x690]; this                                  ; +0x24, 0x48e5b0\nMOV             R1, R5; int                                            ; +0x28, 0x48e5b4\nBL              _ZN15GJEffectManager12countForItemEi; GJEffectManager::countForItem(int) ; +0x2a, 0x48e5b6\nMOV             R1, R5; int                                            ; +0x2e, 0x48e5ba\nMOV             R2, R0; int                                            ; +0x30, 0x48e5bc\nMOV             R0, R4; this                                           ; +0x32, 0x48e5be\nPOP.W           {R3-R5,LR}                                             ; +0x34, 0x48e5c0\nB.W             _ZN15GJBaseGameLayer14updateCountersEii; GJBaseGameLayer::updateCounters(int,int) ; +0x38, 0x48e5c4", "xrefs": ["EffectGameObject::triggerObject @ 0x3eda14"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}