{"type": "func", "start": 5370172816, "end": 5370173083, "name": "CustomSongLayer::show", "pseudocode": "// \n// CustomSongLayer::show from 0x140165590 to 0x14016569b (267 bytes)\n// \n// 4 xrefs:\n// > SongSelectNode::showCustomSongSelect @ 0x140168d42\n// > SongSelectNode::showCustomSongSelect @ 0x140168d33\n// > <???> @ 0x1407444e8\n// > <???> @ 0x140917ef4\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 11:27:26 +0000\n// \n\n__int64 __fastcall CustomSongLayer::show(__int64 a1)\n{\n  unsigned __int8 v2; // al\n  float v3; // xmm6_4\n  struct cocos2d::CCActionInterval *v4; // rax\n  struct cocos2d::CCAction *v5; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rcx\n  struct cocos2d::CCAction *v8; // rax\n  __int64 v9; // rdx\n\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);\n  v3 = (float)v2;\n  (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 160LL))(*(_QWORD *)(a1 + 584));\n  v4 = cocos2d::CCScaleTo::create(0.30000001, 1.0);\n  v5 = cocos2d::CCEaseElasticOut::create(v4, 1.6);\n  cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(a1 + 584), v5);\n  v7 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v6) + 272);\n  if ( *(_QWORD *)(a1 + 568) )\n    v7 = *(_QWORD *)(a1 + 568);\n  if ( !*(_DWORD *)(a1 + 592) )\n    *(_DWORD *)(a1 + 592) = 105;\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 456LL))(v7, a1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);\n  v8 = cocos2d::CCFadeTo::create(0.14, (int)v3);\n  cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v8);\n  LOBYTE(v9) = 1;\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 336LL))(a1, v9);\n}", "assembly": "; \n; CustomSongLayer::show from 0x140165590 to 0x14016569b (267 bytes)\n; \n; 4 xrefs:\n; > SongSelectNode::showCustomSongSelect @ 0x140168d42\n; > SongSelectNode::showCustomSongSelect @ 0x140168d33\n; > <???> @ 0x1407444e8\n; > <???> @ 0x140917ef4\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 11:27:26 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140165590\npush    rdi                                                            ; +0x5, 0x140165595\nsub     rsp, 30h                                                       ; +0x6, 0x140165596\nmov     rax, [rcx+198h]                                                ; +0xa, 0x14016559a\nmov     rbx, rcx                                                       ; +0x11, 0x1401655a1\nadd     rcx, 198h                                                      ; +0x14, 0x1401655a4\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x1b, 0x1401655ab\ncall    qword ptr [rax+20h]                                            ; +0x20, 0x1401655b0\nmov     rcx, [rbx+248h]                                                ; +0x23, 0x1401655b3\nmovss   xmm1, cs:dword_140834E00                                       ; +0x2a, 0x1401655ba\nmovzx   eax, al                                                        ; +0x32, 0x1401655c2\nmovd    xmm6, eax                                                      ; +0x35, 0x1401655c5\nmov     rax, [rcx]                                                     ; +0x39, 0x1401655c9\ncvtdq2ps xmm6, xmm6                                                    ; +0x3c, 0x1401655cc\ncall    qword ptr [rax+0A0h]                                           ; +0x3f, 0x1401655cf\nmovss   xmm1, cs:flt_140835080                                         ; +0x45, 0x1401655d5\nmovss   xmm0, cs:dword_140834EA0                                       ; +0x4d, 0x1401655dd\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x55, 0x1401655e5\nmovss   xmm1, cs:dword_140835188                                       ; +0x5b, 0x1401655eb\nmov     rcx, rax                                                       ; +0x63, 0x1401655f3\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x66, 0x1401655f6\nmov     rcx, [rbx+248h]                                                ; +0x6c, 0x1401655fc\nmov     rdx, rax                                                       ; +0x73, 0x140165603\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x76, 0x140165606\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x14016560c\nmov     r8d, [rbx+250h]                                                ; +0x82, 0x140165612\nmov     rcx, [rax+110h]                                                ; +0x89, 0x140165619\nmov     rax, [rbx+238h]                                                ; +0x90, 0x140165620\ntest    rax, rax                                                       ; +0x97, 0x140165627\ncmovnz  rcx, rax                                                       ; +0x9a, 0x14016562a\ntest    r8d, r8d                                                       ; +0x9e, 0x14016562e\njnz     short loc_140165640                                            ; +0xa1, 0x140165631\nmov     r8d, 69h ; 'i'                                                 ; +0xa3, 0x140165633\nmov     [rbx+250h], r8d                                                ; +0xa9, 0x140165639\nmov     rax, [rcx]                                                     ; +0xb0, 0x140165640\nmov     rdx, rbx                                                       ; +0xb3, 0x140165643\ncall    qword ptr [rax+1C8h]                                           ; +0xb6, 0x140165646\nmov     rax, [rbx+198h]                                                ; +0xbc, 0x14016564c\nlea     rcx, [rbx+198h]                                                ; +0xc3, 0x140165653\nxor     edx, edx                                                       ; +0xca, 0x14016565a\ncall    qword ptr [rax+28h]                                            ; +0xcc, 0x14016565c\nmovss   xmm0, cs:dword_140834E28                                       ; +0xcf, 0x14016565f\ncvttss2si edx, xmm6                                                    ; +0xd7, 0x140165667\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0xdb, 0x14016566b\nmov     rdx, rax                                                       ; +0xe1, 0x140165671\nmov     rcx, rbx                                                       ; +0xe4, 0x140165674\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xe7, 0x140165677\nmov     rax, [rbx]                                                     ; +0xed, 0x14016567d\nmov     dl, 1                                                          ; +0xf0, 0x140165680\nmov     rcx, rbx                                                       ; +0xf2, 0x140165682\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xf5, 0x140165685\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xfa, 0x14016568a\nadd     rsp, 30h                                                       ; +0xff, 0x14016568f\npop     rdi                                                            ; +0x103, 0x140165693\njmp     qword ptr [rax+150h]                                           ; +0x104, 0x140165694", "xrefs": ["SongSelectNode::showCustomSongSelect @ 0x140168d42", "SongSelectNode::showCustomSongSelect @ 0x140168d33", "<???> @ 0x1407444e8", "<???> @ 0x140917ef4"], "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"}