{"type": "func", "start": 5037824, "end": 5037906, "name": "CollisionBlockPopup::updateItemID", "pseudocode": "// \n// CollisionBlockPopup::updateItemID from 0x4cdf00 to 0x4cdf52 (82 bytes)\n// \n// 3 xrefs:\n// > CollisionBlockPopup::textChanged @ 0x4cdf82\n// > CollisionBlockPopup::onItemIDArrow @ 0x4cdfc8\n// > CollisionBlockPopup::onNextItemID @ 0x4ce050\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 CollisionBlockPopup::updateItemID(CollisionBlockPopup *a1)\n{\n  EffectGameObject *m_gameObject; // r4\n  int v3; // r3\n  int v4; // r0\n\n  m_gameObject = a1->m_gameObject;\n  v3 = a1->m_blockID & ~(a1->m_blockID >> 31);\n  if ( v3 >= 9999 )\n    v3 = 9999;\n  a1->m_blockID = v3;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = v3;\n  }\n  else if ( a1->m_gameObjects )\n  {\n    while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);\n      m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);\n      *(_DWORD *)(v4 + 1492) = a1->m_blockID;\n    }\n  }\n}", "assembly": "; \n; CollisionBlockPopup::updateItemID from 0x4cdf00 to 0x4cdf52 (82 bytes)\n; \n; 3 xrefs:\n; > CollisionBlockPopup::textChanged @ 0x4cdf82\n; > CollisionBlockPopup::onItemIDArrow @ 0x4cdfc8\n; > CollisionBlockPopup::onNextItemID @ 0x4ce050\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, 0x4cdf00\nMOVW            R2, #0x270F                                            ; +0x2, 0x4cdf02\nLDR.W           R3, [R0,#0x200]                                        ; +0x6, 0x4cdf06\nMOV             R5, R0                                                 ; +0xa, 0x4cdf0a\nLDR.W           R4, [R0,#0x1F4]                                        ; +0xc, 0x4cdf0c\nBIC.W           R3, R3, R3,ASR#31                                      ; +0x10, 0x4cdf10\nCMP             R3, R2                                                 ; +0x14, 0x4cdf14\nIT GE                                                                  ; +0x16, 0x4cdf16\nMOVGE           R3, R2                                                 ; +0x18, 0x4cdf18\nSTR.W           R3, [R0,#0x200]                                        ; +0x1a, 0x4cdf1a\nCBZ             R4, loc_4CDF26                                         ; +0x1e, 0x4cdf1e\nSTR.W           R3, [R4,#0x5D4]                                        ; +0x20, 0x4cdf20\nPOP             {R3-R5,PC}                                             ; +0x24, 0x4cdf24\nLDR.W           R3, [R0,#0x1F8]                                        ; +0x26, 0x4cdf26\nCBNZ            R3, loc_4CDF2E                                         ; +0x2a, 0x4cdf2a\nPOP             {R3-R5,PC}                                             ; +0x2c, 0x4cdf2c\nLDR.W           R0, [R5,#0x1F8]; this                                  ; +0x2e, 0x4cdf2e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x32, 0x4cdf32\nCMP             R4, R0                                                 ; +0x36, 0x4cdf36\nBCS             locret_4CDF50                                          ; +0x38, 0x4cdf38\nMOV             R1, R4; unsigned int                                   ; +0x3a, 0x4cdf3a\nLDR.W           R0, [R5,#0x1F8]; this                                  ; +0x3c, 0x4cdf3c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x40, 0x4cdf40\nLDR.W           R3, [R5,#0x200]                                        ; +0x44, 0x4cdf44\nADDS            R4, #1                                                 ; +0x48, 0x4cdf48\nSTR.W           R3, [R0,#0x5D4]                                        ; +0x4a, 0x4cdf4a\nB               loc_4CDF2E                                             ; +0x4e, 0x4cdf4e\nPOP             {R3-R5,PC}                                             ; +0x50, 0x4cdf50", "xrefs": ["CollisionBlockPopup::textChanged @ 0x4cdf82", "CollisionBlockPopup::onItemIDArrow @ 0x4cdfc8", "CollisionBlockPopup::onNextItemID @ 0x4ce050"], "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"}