{"type": "func", "start": 4298208032, "end": 4298208156, "name": "GameManager::subYouTube", "pseudocode": "// \n// GameManager::subYouTube from 0x100317320 to 0x10031739c (124 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::FLAlert_Clicked @ 0x100306c9c\n// > FollowRewardPage::FLAlert_Clicked @ 0x10042602c\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 __fastcall GameManager::subYouTube(GameManager *a1)\n{\n  cocos2d::CCApplication *v2; // x0\n  timeb v3; // [xsp+0h] [xbp-20h] BYREF\n\n  if ( GameToolbox::doWeHaveInternet() )\n  {\n    v2 = cocos2d::CCApplication::sharedApplication();\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v2->openURL)(\n      v2,\n      \"https://www.youtube.com/user/RobTopGames\");\n    a1->m_clickedYouTube = 1;\n    ftime(&v3);\n    a1->m_socialsDuration = (double)(v3.millitm + 1000 * (unsigned __int64)(v3.time & 0xFFFFF)) / 1000.0;\n  }\n}", "assembly": "; \n; GameManager::subYouTube from 0x100317320 to 0x10031739c (124 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::FLAlert_Clicked @ 0x100306c9c\n; > FollowRewardPage::FLAlert_Clicked @ 0x10042602c\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100317320\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100317324\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100317328\nADD             X29, SP, #0x20                                         ; +0xc, 0x10031732c\nMOV             X19, X0                                                ; +0x10, 0x100317330\nBL              GameToolbox__doWeHaveInternet                          ; +0x14, 0x100317334\nCBZ             W0, loc_10031738C                                      ; +0x18, 0x100317338\nBL              cocos2d__CCApplication__sharedApplication              ; +0x1c, 0x10031733c\nLDR             X8, [X0]                                               ; +0x20, 0x100317340\nLDR             X8, [X8,#0x60]                                         ; +0x24, 0x100317344\nADRL            X1, aHttpsWwwYoutub_49; \"https://www.youtube.com/user/RobTopGame\"... ; +0x28, 0x100317348\nBLR             X8                                                     ; +0x30, 0x100317350\nMOV             W8, #1                                                 ; +0x34, 0x100317354\nSTRB            W8, [X19,#0x287]                                       ; +0x38, 0x100317358\nMOV             X0, SP; timeb *                                        ; +0x3c, 0x10031735c\nBL              _ftime                                                 ; +0x40, 0x100317360\nLDRH            W8, [SP,#0x20+var_18]                                  ; +0x44, 0x100317364\nLDR             X9, [SP,#0x20+var_20]                                  ; +0x48, 0x100317368\nAND             X9, X9, #0xFFFFF                                       ; +0x4c, 0x10031736c\nMOV             W10, #0x3E8                                            ; +0x50, 0x100317370\nUMADDL          X8, W9, W10, X8                                        ; +0x54, 0x100317374\nUCVTF           D0, X8                                                 ; +0x58, 0x100317378\nADRP            X8, #qword_1006356B0@PAGE                              ; +0x5c, 0x10031737c\nLDR             D1, [X8,#qword_1006356B0@PAGEOFF]                      ; +0x60, 0x100317380\nFDIV            D0, D0, D1                                             ; +0x64, 0x100317384\nSTR             D0, [X19,#0x290]                                       ; +0x68, 0x100317388\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x6c, 0x10031738c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x70, 0x100317390\nADD             SP, SP, #0x30 ; '0'                                    ; +0x74, 0x100317394\nRET                                                                    ; +0x78, 0x100317398", "xrefs": ["GJGarageLayer::FLAlert_Clicked @ 0x100306c9c", "FollowRewardPage::FLAlert_Clicked @ 0x10042602c"], "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"}