{"type": "func", "start": 4297952160, "end": 4297952295, "name": "ColorChannelSprite::create", "pseudocode": "// \n// ColorChannelSprite::create from 0x1002d8ba0 to 0x1002d8c27 (135 bytes)\n// \n// 9 xrefs:\n// > CustomizeObjectLayer::init @ 0x1001f636a\n// > GJColorSetupLayer::init @ 0x10020b873\n// > LevelSettingsLayer::init @ 0x10026bc53\n// > LevelSettingsLayer::init @ 0x10026bcce\n// > LevelSettingsLayer::init @ 0x10026bd42\n// > LevelSettingsLayer::init @ 0x10026bdb6\n// > LevelSettingsLayer::init @ 0x10026be2a\n// > LevelSettingsLayer::init @ 0x10026be9e\n// > CharacterColorPage::createColorMenu @ 0x10065dd16\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\nColorChannelSprite *__fastcall ColorChannelSprite::create()\n{\n  __int64 v0; // rsi\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x270u);\n  cocos2d::CCSprite::CCSprite((__int64)v1, v0);\n  *(_QWORD *)v1 = off_100909678;\n  *((_QWORD *)v1 + 40) = off_100909B50;\n  *((_QWORD *)v1 + 43) = off_100909BD0;\n  *(_OWORD *)(v1 + 600) = 0;\n  *((_QWORD *)v1 + 77) = 0;\n  if ( cocos2d::CCSprite::initWithSpriteFrameName((cocos2d::CCSprite *)v1, \"GJ_colorBtn_001.png\") )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (ColorChannelSprite *)v1;\n}", "assembly": "; \n; ColorChannelSprite::create from 0x1002d8ba0 to 0x1002d8c27 (135 bytes)\n; \n; 9 xrefs:\n; > CustomizeObjectLayer::init @ 0x1001f636a\n; > GJColorSetupLayer::init @ 0x10020b873\n; > LevelSettingsLayer::init @ 0x10026bc53\n; > LevelSettingsLayer::init @ 0x10026bcce\n; > LevelSettingsLayer::init @ 0x10026bd42\n; > LevelSettingsLayer::init @ 0x10026bdb6\n; > LevelSettingsLayer::init @ 0x10026be2a\n; > LevelSettingsLayer::init @ 0x10026be9e\n; > CharacterColorPage::createColorMenu @ 0x10065dd16\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    rbp                                                            ; +0x0, 0x1002d8ba0\nmov     rbp, rsp                                                       ; +0x1, 0x1002d8ba1\npush    r14                                                            ; +0x4, 0x1002d8ba4\npush    rbx                                                            ; +0x6, 0x1002d8ba6\nmov     edi, 270h; __sz                                                ; +0x7, 0x1002d8ba7\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x1002d8bac\nmov     rbx, rax                                                       ; +0x11, 0x1002d8bb1\nmov     rdi, rax                                                       ; +0x14, 0x1002d8bb4\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x17, 0x1002d8bb7\nlea     rax, off_100909678                                             ; +0x1c, 0x1002d8bbc\nmov     [rbx], rax                                                     ; +0x23, 0x1002d8bc3\nlea     rax, off_100909B50                                             ; +0x26, 0x1002d8bc6\nmov     [rbx+140h], rax                                                ; +0x2d, 0x1002d8bcd\nlea     rax, off_100909BD0                                             ; +0x34, 0x1002d8bd4\nmov     [rbx+158h], rax                                                ; +0x3b, 0x1002d8bdb\nxorps   xmm0, xmm0                                                     ; +0x42, 0x1002d8be2\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x45, 0x1002d8be5\nmov     qword ptr [rbx+268h], 0                                        ; +0x4c, 0x1002d8bec\nlea     rsi, aGjColorbtn001P; \"GJ_colorBtn_001.png\"                    ; +0x57, 0x1002d8bf7\nmov     rdi, rbx                                                       ; +0x5e, 0x1002d8bfe\ncall    cocos2d__CCSprite__initWithSpriteFrameName                     ; +0x61, 0x1002d8c01\ntest    al, al                                                         ; +0x66, 0x1002d8c06\njz      short loc_1002D8C14                                            ; +0x68, 0x1002d8c08\nmov     rdi, rbx                                                       ; +0x6a, 0x1002d8c0a\ncall    cocos2d__CCObject__autorelease                                 ; +0x6d, 0x1002d8c0d\njmp     short loc_1002D8C1F                                            ; +0x72, 0x1002d8c12\nmov     rax, [rbx]                                                     ; +0x74, 0x1002d8c14\nmov     rdi, rbx                                                       ; +0x77, 0x1002d8c17\ncall    qword ptr [rax+10h]                                            ; +0x7a, 0x1002d8c1a\nxor     ebx, ebx                                                       ; +0x7d, 0x1002d8c1d\nmov     rax, rbx                                                       ; +0x7f, 0x1002d8c1f\npop     rbx                                                            ; +0x82, 0x1002d8c22\npop     r14                                                            ; +0x83, 0x1002d8c23\npop     rbp                                                            ; +0x85, 0x1002d8c25\nretn                                                                   ; +0x86, 0x1002d8c26", "xrefs": ["CustomizeObjectLayer::init @ 0x1001f636a", "GJColorSetupLayer::init @ 0x10020b873", "LevelSettingsLayer::init @ 0x10026bc53", "LevelSettingsLayer::init @ 0x10026bcce", "LevelSettingsLayer::init @ 0x10026bd42", "LevelSettingsLayer::init @ 0x10026bdb6", "LevelSettingsLayer::init @ 0x10026be2a", "LevelSettingsLayer::init @ 0x10026be9e", "CharacterColorPage::createColorMenu @ 0x10065dd16"], "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"}