{"type": "func", "start": 5760918, "end": 5760972, "name": "CustomizeObjectLayer::getButtonByTag", "pseudocode": "// \n// CustomizeObjectLayer::getButtonByTag from 0x57e796 to 0x57e7cc (54 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x57eae6\n// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb54\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x57eba6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::getButtonByTag(cocos2d::CCArray **this, int a2)\n{\n  unsigned int i; // r5\n  int v5; // r4\n\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= cocos2d::CCArray::count(*(this + 135)) )\n      return 0;\n    v5 = cocos2d::CCArray::objectAtIndex(*(this + 135), i);\n    if ( (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5) == a2 )\n      break;\n  }\n  return v5;\n}", "assembly": "; \n; CustomizeObjectLayer::getButtonByTag from 0x57e796 to 0x57e7cc (54 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x57eae6\n; > CustomizeObjectLayer::onNextColorChannel @ 0x57eb54\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x57eba6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:52:51 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x57e796\nMOV             R6, R0                                                 ; +0x2, 0x57e798\nMOV             R7, R1                                                 ; +0x4, 0x57e79a\nMOVS            R5, #0                                                 ; +0x6, 0x57e79c\nLDR.W           R0, [R6,#0x21C]; this                                  ; +0x8, 0x57e79e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x57e7a2\nCMP             R5, R0                                                 ; +0x10, 0x57e7a6\nBCS             loc_57E7C4                                             ; +0x12, 0x57e7a8\nMOV             R1, R5; unsigned int                                   ; +0x14, 0x57e7aa\nLDR.W           R0, [R6,#0x21C]; this                                  ; +0x16, 0x57e7ac\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x57e7b0\nLDR             R3, [R0]                                               ; +0x1e, 0x57e7b4\nMOV             R4, R0                                                 ; +0x20, 0x57e7b6\nLDR             R3, [R3,#0x20]                                         ; +0x22, 0x57e7b8\nBLX             R3                                                     ; +0x24, 0x57e7ba\nCMP             R0, R7                                                 ; +0x26, 0x57e7bc\nBEQ             loc_57E7C8                                             ; +0x28, 0x57e7be\nADDS            R5, #1                                                 ; +0x2a, 0x57e7c0\nB               loc_57E79E                                             ; +0x2c, 0x57e7c2\nMOVS            R0, #0                                                 ; +0x2e, 0x57e7c4\nPOP             {R3-R7,PC}                                             ; +0x30, 0x57e7c6\nMOV             R0, R4                                                 ; +0x32, 0x57e7c8\nPOP             {R3-R7,PC}                                             ; +0x34, 0x57e7ca", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x57eae6", "CustomizeObjectLayer::onNextColorChannel @ 0x57eb54", "CustomizeObjectLayer::updateCurrentSelection @ 0x57eba6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}