{"type": "func", "start": 4297864752, "end": 4297864887, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x1002c3630 to 0x1002c36b7 (135 bytes)\n// \n// 9 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001d871a\n// > GJColorSetupLayer::init @ 0x1001eebc3\n// > LevelSettingsLayer::init @ 0x100255bd3\n// > LevelSettingsLayer::init @ 0x100255c4e\n// > LevelSettingsLayer::init @ 0x100255cc2\n// > LevelSettingsLayer::init @ 0x100255d36\n// > LevelSettingsLayer::init @ 0x100255daa\n// > LevelSettingsLayer::init @ 0x100255e1e\n// > CharacterColorPage::createColorMenu @ 0x10073d366\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:28:06 +0000\n// \n\nchar *ColorChannelSprite::create()\n{\n  char *v0; // rbx\n\n  v0 = (char *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite((__int64)v0);\n  *(_QWORD *)v0 = off_100B10E60;\n  *((_QWORD *)v0 + 40) = off_100B11348;\n  *((_QWORD *)v0 + 43) = off_100B113C8;\n  *(_OWORD *)(v0 + 600) = 0;\n  *((_QWORD *)v0 + 77) = 0;\n  if ( (unsigned __int8)cocos2d::CCSprite::initWithSpriteFrameName((__int64)v0, (__int64)\"GJ_colorBtn_001.png\", 0.0) )\n  {\n    cocos2d::CCObject::autorelease(v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);\n    return nullptr;\n  }\n  return v0;\n}", "assembly": "; \n; ColorChannelSprite::create from 0x1002c3630 to 0x1002c36b7 (135 bytes)\n; \n; 9 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001d871a\n; > GJColorSetupLayer::init @ 0x1001eebc3\n; > LevelSettingsLayer::init @ 0x100255bd3\n; > LevelSettingsLayer::init @ 0x100255c4e\n; > LevelSettingsLayer::init @ 0x100255cc2\n; > LevelSettingsLayer::init @ 0x100255d36\n; > LevelSettingsLayer::init @ 0x100255daa\n; > LevelSettingsLayer::init @ 0x100255e1e\n; > CharacterColorPage::createColorMenu @ 0x10073d366\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:28:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c3630\nmov     rbp, rsp                                                       ; +0x1, 0x1002c3631\npush    r14                                                            ; +0x4, 0x1002c3634\npush    rbx                                                            ; +0x6, 0x1002c3636\nmov     edi, 270h; __sz                                                ; +0x7, 0x1002c3637\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x1002c363c\nmov     rbx, rax                                                       ; +0x11, 0x1002c3641\nmov     rdi, rax                                                       ; +0x14, 0x1002c3644\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x17, 0x1002c3647\nlea     rax, off_100B10E60                                             ; +0x1c, 0x1002c364c\nmov     [rbx], rax                                                     ; +0x23, 0x1002c3653\nlea     rax, off_100B11348                                             ; +0x26, 0x1002c3656\nmov     [rbx+140h], rax                                                ; +0x2d, 0x1002c365d\nlea     rax, off_100B113C8                                             ; +0x34, 0x1002c3664\nmov     [rbx+158h], rax                                                ; +0x3b, 0x1002c366b\nxorps   xmm0, xmm0                                                     ; +0x42, 0x1002c3672\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x45, 0x1002c3675\nmov     qword ptr [rbx+268h], 0                                        ; +0x4c, 0x1002c367c\nlea     rsi, aGjColorbtn001P; \"GJ_colorBtn_001.png\"                    ; +0x57, 0x1002c3687\nmov     rdi, rbx                                                       ; +0x5e, 0x1002c368e\ncall    cocos2d__CCSprite__initWithSpriteFrameName                     ; +0x61, 0x1002c3691\ntest    al, al                                                         ; +0x66, 0x1002c3696\njz      short loc_1002C36A4                                            ; +0x68, 0x1002c3698\nmov     rdi, rbx                                                       ; +0x6a, 0x1002c369a\ncall    cocos2d__CCObject__autorelease                                 ; +0x6d, 0x1002c369d\njmp     short loc_1002C36AF                                            ; +0x72, 0x1002c36a2\nmov     rax, [rbx]                                                     ; +0x74, 0x1002c36a4\nmov     rdi, rbx                                                       ; +0x77, 0x1002c36a7\ncall    qword ptr [rax+10h]                                            ; +0x7a, 0x1002c36aa\nxor     ebx, ebx                                                       ; +0x7d, 0x1002c36ad\nmov     rax, rbx                                                       ; +0x7f, 0x1002c36af\npop     rbx                                                            ; +0x82, 0x1002c36b2\npop     r14                                                            ; +0x83, 0x1002c36b3\npop     rbp                                                            ; +0x85, 0x1002c36b5\nretn                                                                   ; +0x86, 0x1002c36b6", "xrefs": ["CustomizeObjectLayer::init @ 0x1001d871a", "GJColorSetupLayer::init @ 0x1001eebc3", "LevelSettingsLayer::init @ 0x100255bd3", "LevelSettingsLayer::init @ 0x100255c4e", "LevelSettingsLayer::init @ 0x100255cc2", "LevelSettingsLayer::init @ 0x100255d36", "LevelSettingsLayer::init @ 0x100255daa", "LevelSettingsLayer::init @ 0x100255e1e", "CharacterColorPage::createColorMenu @ 0x10073d366"], "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"}