{"type": "func", "start": 5369513104, "end": 5369513371, "name": "CustomSongLayer::show", "pseudocode": "// \n// CustomSongLayer::show from 0x1400c4490 to 0x1400c459b (267 bytes)\n// \n// 4 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x1400c7ce2\n// > SongSelectNode::showCustomSongSelect @ 0x1400c7cd3\n// > <???> @ 0x14054e8a8\n// > <???> @ 0x1406c80e8\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 CustomSongLayer::show(CustomSongLayer *a1)\n{\n  float v1; // xmm3_4\n  unsigned __int8 v3; // al\n  float v4; // xmm6_4\n  struct cocos2d::CCScaleTo *v5; // rax\n  struct cocos2d::CCEaseElasticOut *v6; // rax\n  cocos2d::ccColor3B *v7; // r8\n  __int64 v8; // rcx\n  cocos2d::CCNode *m_scene; // rcx\n  struct cocos2d::CCFadeTo *v10; // rax\n  cocos2d::ccColor3B *v11; // r8\n  _BOOL8 v12; // rdx\n  float v13; // [rsp+20h] [rbp-18h]\n  float v14; // [rsp+20h] [rbp-18h]\n\n  a1->getOpacity(&a1->cocos2d::CCRGBAProtocol);\n  v4 = (float)v3;\n  ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->setScale_0)(a1->m_mainLayer);\n  v5 = cocos2d::CCScaleTo::create(0.30000001, 1.0);\n  v6 = cocos2d::CCEaseElasticOut::create(v5, 1.6);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v6, v7, v1, v13);\n  m_scene = *(cocos2d::CCNode **)(cocos2d::CCDirector::sharedDirector(v8) + 264);\n  if ( a1->m_scene )\n    m_scene = a1->m_scene;\n  if ( !a1->m_ZOrder )\n    a1->m_ZOrder = 105;\n  ((void (__fastcall *)(cocos2d::CCNode *, CustomSongLayer *))m_scene->addChild_0)(m_scene, a1);\n  a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);\n  v10 = cocos2d::CCFadeTo::create(0.14, (int)v4);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v10, v11, v1, v14);\n  LOBYTE(v12) = 1;\n  a1->setVisible(a1, v12);\n}", "assembly": "; \n; CustomSongLayer::show from 0x1400c4490 to 0x1400c459b (267 bytes)\n; \n; 4 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x1400c7ce2\n; > SongSelectNode::showCustomSongSelect @ 0x1400c7cd3\n; > <???> @ 0x14054e8a8\n; > <???> @ 0x1406c80e8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400c4490\npush    rdi                                                            ; +0x5, 0x1400c4495\nsub     rsp, 30h                                                       ; +0x6, 0x1400c4496\nmov     rax, [rcx+198h]                                                ; +0xa, 0x1400c449a\nmov     rbx, rcx                                                       ; +0x11, 0x1400c44a1\nadd     rcx, 198h                                                      ; +0x14, 0x1400c44a4\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0x1b, 0x1400c44ab\ncall    qword ptr [rax+20h]                                            ; +0x20, 0x1400c44b0\nmov     rcx, [rbx+240h]                                                ; +0x23, 0x1400c44b3\nmovss   xmm1, cs:dword_140622A10                                       ; +0x2a, 0x1400c44ba\nmovzx   eax, al                                                        ; +0x32, 0x1400c44c2\nmovd    xmm6, eax                                                      ; +0x35, 0x1400c44c5\nmov     rax, [rcx]                                                     ; +0x39, 0x1400c44c9\ncvtdq2ps xmm6, xmm6                                                    ; +0x3c, 0x1400c44cc\ncall    qword ptr [rax+0A0h]                                           ; +0x3f, 0x1400c44cf\nmovss   xmm1, cs:flt_140622C24                                         ; +0x45, 0x1400c44d5\nmovss   xmm0, cs:dword_140622AA0                                       ; +0x4d, 0x1400c44dd\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x55, 0x1400c44e5\nmovss   xmm1, cs:dword_140622D24                                       ; +0x5b, 0x1400c44eb\nmov     rcx, rax                                                       ; +0x63, 0x1400c44f3\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x66, 0x1400c44f6\nmov     rcx, [rbx+240h]                                                ; +0x6c, 0x1400c44fc\nmov     rdx, rax                                                       ; +0x73, 0x1400c4503\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x76, 0x1400c4506\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x1400c450c\nmov     r8d, [rbx+248h]                                                ; +0x82, 0x1400c4512\nmov     rcx, [rax+108h]                                                ; +0x89, 0x1400c4519\nmov     rax, [rbx+230h]                                                ; +0x90, 0x1400c4520\ntest    rax, rax                                                       ; +0x97, 0x1400c4527\ncmovnz  rcx, rax                                                       ; +0x9a, 0x1400c452a\ntest    r8d, r8d                                                       ; +0x9e, 0x1400c452e\njnz     short loc_1400C4540                                            ; +0xa1, 0x1400c4531\nmov     r8d, 69h ; 'i'                                                 ; +0xa3, 0x1400c4533\nmov     [rbx+248h], r8d                                                ; +0xa9, 0x1400c4539\nmov     rax, [rcx]                                                     ; +0xb0, 0x1400c4540\nmov     rdx, rbx                                                       ; +0xb3, 0x1400c4543\ncall    qword ptr [rax+1B8h]                                           ; +0xb6, 0x1400c4546\nmov     rax, [rbx+198h]                                                ; +0xbc, 0x1400c454c\nlea     rcx, [rbx+198h]                                                ; +0xc3, 0x1400c4553\nxor     edx, edx                                                       ; +0xca, 0x1400c455a\ncall    qword ptr [rax+28h]                                            ; +0xcc, 0x1400c455c\nmovss   xmm0, cs:dword_140622A38                                       ; +0xcf, 0x1400c455f\ncvttss2si edx, xmm6                                                    ; +0xd7, 0x1400c4567\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0xdb, 0x1400c456b\nmov     rdx, rax                                                       ; +0xe1, 0x1400c4571\nmov     rcx, rbx                                                       ; +0xe4, 0x1400c4574\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xe7, 0x1400c4577\nmov     rax, [rbx]                                                     ; +0xed, 0x1400c457d\nmov     dl, 1                                                          ; +0xf0, 0x1400c4580\nmov     rcx, rbx                                                       ; +0xf2, 0x1400c4582\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf5, 0x1400c4585\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0xfa, 0x1400c458a\nadd     rsp, 30h                                                       ; +0xff, 0x1400c458f\npop     rdi                                                            ; +0x103, 0x1400c4593\njmp     qword ptr [rax+140h]                                           ; +0x104, 0x1400c4594", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x1400c7ce2", "SongSelectNode::showCustomSongSelect @ 0x1400c7cd3", "<???> @ 0x14054e8a8", "<???> @ 0x1406c80e8"], "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"}