{"type": "func", "start": 4299287048, "end": 4299287124, "name": "ColorSelectPopup::onPaste", "pseudocode": "// \n// ColorSelectPopup::onPaste from 0x10041ea08 to 0x10041ea54 (76 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x10041ccb0\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 __fastcall ColorSelectPopup::onPaste(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  __int16 v4; // w8\n  __int16 v5; // [xsp+Ch] [xbp-14h] BYREF\n  GLubyte b; // [xsp+Eh] [xbp-12h]\n\n  v3 = GameManager::sharedState();\n  v4 = *(_WORD *)&v3->m_copiedColor.r;\n  b = v3->m_copiedColor.b;\n  v5 = v4;\n  ((void (__fastcall *)(cocos2d::extension::CCControlColourPicker *, __int16 *))a1->m_colorPicker->setColorValue)(\n    a1->m_colorPicker,\n    &v5);\n}", "assembly": "; \n; ColorSelectPopup::onPaste from 0x10041ea08 to 0x10041ea54 (76 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x10041ccb0\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10041ea08\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10041ea0c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10041ea10\nADD             X29, SP, #0x20                                         ; +0xc, 0x10041ea14\nMOV             X19, X0                                                ; +0x10, 0x10041ea18\nBL              GameManager__sharedState                               ; +0x14, 0x10041ea1c\nLDRH            W8, [X0,#0x390]                                        ; +0x18, 0x10041ea20\nLDRB            W9, [X0,#0x392]                                        ; +0x1c, 0x10041ea24\nSTRB            W9, [SP,#0x20+var_12]                                  ; +0x20, 0x10041ea28\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x24, 0x10041ea2c\nLDR             X0, [X19,#0x3C0]                                       ; +0x28, 0x10041ea30\nLDR             X8, [X0]                                               ; +0x2c, 0x10041ea34\nLDR             X8, [X8,#0x540]                                        ; +0x30, 0x10041ea38\nADD             X1, SP, #0x20+var_14                                   ; +0x34, 0x10041ea3c\nBLR             X8                                                     ; +0x38, 0x10041ea40\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x3c, 0x10041ea44\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x40, 0x10041ea48\nADD             SP, SP, #0x30 ; '0'                                    ; +0x44, 0x10041ea4c\nRET                                                                    ; +0x48, 0x10041ea50", "xrefs": ["ColorSelectPopup::init @ 0x10041ccb0"], "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"}