{"type": "func", "start": 8982136, "end": 8982240, "name": "GJBaseGameLayer::collectedObject", "pseudocode": "// \n// GJBaseGameLayer::collectedObject from 0x890e78 to 0x890ee0 (104 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x76f7a8\n// > <???> @ 0x93ab0\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  int m_itemID; // w20\n  int v5; // w0\n\n  if ( a2->m_subtractCount )\n    GJEffectManager::addCountToItem(a1->m_effectManager, a2->m_itemID, -1);\n  else\n    GJEffectManager::addCountToItem(a1->m_effectManager, a2->m_itemID, 1);\n  m_itemID = a2->m_itemID;\n  v5 = GJEffectManager::countForItem(a1->m_effectManager, m_itemID);\n  GJBaseGameLayer::updateCounters(a1, m_itemID, v5);\n}", "assembly": "; \n; GJBaseGameLayer::collectedObject from 0x890e78 to 0x890ee0 (104 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x76f7a8\n; > <???> @ 0x93ab0\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x890e78\nMOV             X29, SP                                                ; +0x4, 0x890e7c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x890e80\nMOV             X19, X0                                                ; +0xc, 0x890e84\nLDRB            W0, [X1,#0x687]                                        ; +0x10, 0x890e88\nMOV             X20, X1                                                ; +0x14, 0x890e8c\nCBNZ            W0, loc_890ECC                                         ; +0x18, 0x890e90\nLDR             X0, [X19,#0x9A8]; this                                 ; +0x1c, 0x890e94\nMOV             W2, #1; int                                            ; +0x20, 0x890e98\nLDR             W1, [X1,#0x680]; int                                   ; +0x24, 0x890e9c\nBL              _ZN15GJEffectManager14addCountToItemEii; GJEffectManager::addCountToItem(int,int) ; +0x28, 0x890ea0\nLDR             W20, [X20,#0x680]                                      ; +0x2c, 0x890ea4\nLDR             X0, [X19,#0x9A8]; this                                 ; +0x30, 0x890ea8\nMOV             W1, W20; int                                           ; +0x34, 0x890eac\nBL              _ZN15GJEffectManager12countForItemEi; GJEffectManager::countForItem(int) ; +0x38, 0x890eb0\nMOV             W2, W0; int                                            ; +0x3c, 0x890eb4\nMOV             W1, W20; int                                           ; +0x40, 0x890eb8\nMOV             X0, X19; this                                          ; +0x44, 0x890ebc\nLDP             X19, X20, [SP,#var_s10]                                ; +0x48, 0x890ec0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x4c, 0x890ec4\nB               _ZN15GJBaseGameLayer14updateCountersEii; GJBaseGameLayer::updateCounters(int,int) ; +0x50, 0x890ec8\nLDR             X0, [X19,#0x9A8]; this                                 ; +0x54, 0x890ecc\nMOV             W2, #0xFFFFFFFF; int                                   ; +0x58, 0x890ed0\nLDR             W1, [X1,#0x680]; int                                   ; +0x5c, 0x890ed4\nBL              _ZN15GJEffectManager14addCountToItemEii; GJEffectManager::addCountToItem(int,int) ; +0x60, 0x890ed8\nB               loc_890EA4                                             ; +0x64, 0x890edc", "xrefs": ["EffectGameObject::triggerObject @ 0x76f7a8", "<???> @ 0x93ab0"], "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"}