{"type": "func", "start": 4296910720, "end": 4296910875, "name": "CustomizeObjectLayer::onPaste", "pseudocode": "// \n// CustomizeObjectLayer::onPaste from 0x1001da780 to 0x1001da81b (155 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001d93f6\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:26:25 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onPaste(__int64 a1, __int64 a2, __int64 a3)\n{\n  char v3; // al\n  __m128 v4; // xmm0\n  __int64 v5; // rax\n  int ActiveMode; // eax\n  __int64 CString; // rax\n  __int64 v8; // rax\n  const std::string::value_type *v9; // rsi\n  char v11; // [rsp-8h] [rbp-10h]\n\n  v11 = v3;\n  v4 = GameManager::sharedState(a1, a2, a3);\n  LevelEditorLayer::pasteColorState(*(_QWORD *)(v5 + 552), *(_QWORD *)(a1 + 688), *(_QWORD *)(a1 + 696));\n  CustomizeObjectLayer::updateCurrentSelection(a1, *(double *)v4.i64);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  if ( ActiveMode < 1000 )\n  {\n    if ( ActiveMode <= 0 )\n    {\n      v9 = \" \";\n      goto LABEL_6;\n    }\n    v8 = sub_10088E820(\"%i\", v11);\n    CString = cocos2d::CCString::getCString(v8);\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx((unsigned int)ActiveMode);\n  }\n  v9 = (const std::string::value_type *)CString;\nLABEL_6:\n  *(double *)v4.i64 = (*(double (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 808) + 928LL))(\n                        *(_QWORD *)(a1 + 808),\n                        v9);\n  return CustomizeObjectLayer::updateHSVButtons(a1, v4);\n}", "assembly": "; \n; CustomizeObjectLayer::onPaste from 0x1001da780 to 0x1001da81b (155 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001d93f6\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:26:25 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001da780\nmov     rbp, rsp                                                       ; +0x1, 0x1001da781\npush    rbx                                                            ; +0x4, 0x1001da784\npush    rax; char                                                      ; +0x5, 0x1001da785\nmov     rbx, rdi                                                       ; +0x6, 0x1001da786\ncall    GameManager__sharedState                                       ; +0x9, 0x1001da789\nmov     rdi, [rax+228h]                                                ; +0xe, 0x1001da78e\nmov     rsi, [rbx+2B0h]                                                ; +0x15, 0x1001da795\nmov     rdx, [rbx+2B8h]                                                ; +0x1c, 0x1001da79c\ncall    LevelEditorLayer__pasteColorState                              ; +0x23, 0x1001da7a3\nmov     rdi, rbx                                                       ; +0x28, 0x1001da7a8\ncall    CustomizeObjectLayer__updateCurrentSelection                   ; +0x2b, 0x1001da7ab\nmov     rdi, rbx                                                       ; +0x30, 0x1001da7b0\ncall    CustomizeObjectLayer__updateColorSprite                        ; +0x33, 0x1001da7b3\nmov     rdi, rbx                                                       ; +0x38, 0x1001da7b8\nmov     esi, 1                                                         ; +0x3b, 0x1001da7bb\ncall    CustomizeObjectLayer__getActiveMode                            ; +0x40, 0x1001da7c0\ncmp     eax, 3E8h                                                      ; +0x45, 0x1001da7c5\njl      short loc_1001DA7D5                                            ; +0x4a, 0x1001da7ca\nmov     edi, eax                                                       ; +0x4c, 0x1001da7cc\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0x4e, 0x1001da7ce\njmp     short loc_1001DA7F1                                            ; +0x53, 0x1001da7d3\ntest    eax, eax                                                       ; +0x55, 0x1001da7d5\njle     short loc_1001DA812                                            ; +0x57, 0x1001da7d7\nlea     rdi, aI_14; \"%i\"                                               ; +0x59, 0x1001da7d9\nmov     esi, eax                                                       ; +0x60, 0x1001da7e0\nxor     eax, eax                                                       ; +0x62, 0x1001da7e2\ncall    sub_10088E820                                                  ; +0x64, 0x1001da7e4\nmov     rdi, rax                                                       ; +0x69, 0x1001da7e9\ncall    cocos2d__CCString__getCString                                  ; +0x6c, 0x1001da7ec\nmov     rsi, rax                                                       ; +0x71, 0x1001da7f1\nmov     rdi, [rbx+328h]                                                ; +0x74, 0x1001da7f4\nmov     rax, [rdi]                                                     ; +0x7b, 0x1001da7fb\ncall    qword ptr [rax+3A0h]                                           ; +0x7e, 0x1001da7fe\nmov     rdi, rbx                                                       ; +0x84, 0x1001da804\nadd     rsp, 8                                                         ; +0x87, 0x1001da807\npop     rbx                                                            ; +0x8b, 0x1001da80b\npop     rbp                                                            ; +0x8c, 0x1001da80c\njmp     CustomizeObjectLayer__updateHSVButtons                         ; +0x8d, 0x1001da80d\nlea     rsi, asc_100A41844; \" \"                                        ; +0x92, 0x1001da812\njmp     short loc_1001DA7F4                                            ; +0x99, 0x1001da819", "xrefs": ["CustomizeObjectLayer::init @ 0x1001d93f6"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}