{"type": "func", "start": 4298834824, "end": 4298834964, "name": "LeaderboardsLayer::dLeaderboardsLayer", "pseudocode": "// \n// LeaderboardsLayer::dLeaderboardsLayer from 0x1003b0388 to 0x1003b0414 (140 bytes)\n// \n// 4 xrefs:\n// > j_LeaderboardsLayer::dLeaderboardsLayer @ 0x1003b0418\n// > sub_1003B041C @ 0x1003b0420\n// > sub_1003B0424 @ 0x1003b042c\n// > sub_1003B0438 @ 0x1003b0444\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\n__int64 __fastcall LeaderboardsLayer::dLeaderboardsLayer(LeaderboardManagerDelegate *a1)\n{\n  cocos2d::CCObject *v2; // x0\n  cocos2d::CCObject *v3; // x0\n\n  a1->__vftable = (LeaderboardManagerDelegate_vtbl *)off_10080E0D0;\n  a1[40].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10080E578;\n  a1[41].__vftable = (LeaderboardManagerDelegate_vtbl *)&off_10080E5E8;\n  a1[42].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10080E600;\n  a1[43].__vftable = (LeaderboardManagerDelegate_vtbl *)&off_10080E620;\n  a1[44].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10080E640;\n  a1[51].__vftable = (LeaderboardManagerDelegate_vtbl *)off_10080E668;\n  a1[52].__vftable = (LeaderboardManagerDelegate_vtbl *)&off_10080E698;\n  if ( GameLevelManager::sharedState()->m_leaderboardManagerDelegate == &a1[51] )\n    GameLevelManager::sharedState()->m_leaderboardManagerDelegate = nullptr;\n  v2 = (cocos2d::CCObject *)a1[62].__vftable;\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  v3 = (cocos2d::CCObject *)a1[63].__vftable;\n  if ( v3 )\n    cocos2d::CCObject::release(v3);\n  return cocos2d::CCLayer::dCCLayer(a1);\n}", "assembly": "; \n; LeaderboardsLayer::dLeaderboardsLayer from 0x1003b0388 to 0x1003b0414 (140 bytes)\n; \n; 4 xrefs:\n; > j_LeaderboardsLayer::dLeaderboardsLayer @ 0x1003b0418\n; > sub_1003B041C @ 0x1003b0420\n; > sub_1003B0424 @ 0x1003b042c\n; > sub_1003B0438 @ 0x1003b0444\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003b0388\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003b038c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003b0390\nMOV             X19, X0                                                ; +0xc, 0x1003b0394\nADRL            X8, off_10080E0D0                                      ; +0x10, 0x1003b0398\nSTR             X8, [X0]                                               ; +0x18, 0x1003b03a0\nADD             X9, X8, #(off_10080E578 - 0x10080E0D0)                 ; +0x1c, 0x1003b03a4\nADD             X10, X8, #(off_10080E5E8 - 0x10080E0D0)                ; +0x20, 0x1003b03a8\nSTP             X9, X10, [X0,#0x140]                                   ; +0x24, 0x1003b03ac\nADD             X9, X8, #(off_10080E600 - 0x10080E0D0)                 ; +0x28, 0x1003b03b0\nADD             X10, X8, #(off_10080E620 - 0x10080E0D0)                ; +0x2c, 0x1003b03b4\nSTP             X9, X10, [X0,#0x150]                                   ; +0x30, 0x1003b03b8\nADD             X9, X8, #(off_10080E640 - 0x10080E0D0)                 ; +0x34, 0x1003b03bc\nSTR             X9, [X0,#0x160]                                        ; +0x38, 0x1003b03c0\nADD             X9, X8, #(off_10080E668 - 0x10080E0D0)                 ; +0x3c, 0x1003b03c4\nADD             X8, X8, #(off_10080E698 - 0x10080E0D0)                 ; +0x40, 0x1003b03c8\nSTP             X9, X8, [X0,#0x198]                                    ; +0x44, 0x1003b03cc\nBL              GameLevelManager__sharedState                          ; +0x48, 0x1003b03d0\nADD             X8, X19, #0x198                                        ; +0x4c, 0x1003b03d4\nLDR             X9, [X0,#0x308]                                        ; +0x50, 0x1003b03d8\nCMP             X9, X8                                                 ; +0x54, 0x1003b03dc\nB.NE            loc_1003B03EC                                          ; +0x58, 0x1003b03e0\nBL              GameLevelManager__sharedState                          ; +0x5c, 0x1003b03e4\nSTR             XZR, [X0,#0x308]                                       ; +0x60, 0x1003b03e8\nLDR             X0, [X19,#0x1F0]                                       ; +0x64, 0x1003b03ec\nCBZ             X0, loc_1003B03F8                                      ; +0x68, 0x1003b03f0\nBL              cocos2d__CCObject__release                             ; +0x6c, 0x1003b03f4\nLDR             X0, [X19,#0x1F8]                                       ; +0x70, 0x1003b03f8\nCBZ             X0, loc_1003B0404                                      ; +0x74, 0x1003b03fc\nBL              cocos2d__CCObject__release                             ; +0x78, 0x1003b0400\nMOV             X0, X19                                                ; +0x7c, 0x1003b0404\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x1003b0408\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x1003b040c\nB               cocos2d__CCLayer__dCCLayer                             ; +0x88, 0x1003b0410", "xrefs": ["j_LeaderboardsLayer::dLeaderboardsLayer @ 0x1003b0418", "sub_1003B041C @ 0x1003b0420", "sub_1003B0424 @ 0x1003b042c", "sub_1003B0438 @ 0x1003b0444"], "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"}