{"type": "func", "start": 4298835116, "end": 4298835308, "name": "LeaderboardsLayer::create", "pseudocode": "// \n// LeaderboardsLayer::create from 0x1003b04ac to 0x1003b056c (192 bytes)\n// \n// 1 xrefs:\n// > LeaderboardsLayer::scene @ 0x1003b0480\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\nLeaderboardsLayer *__fastcall LeaderboardsLayer::create(LeaderboardType a1, LeaderboardStat a2)\n{\n  char *v4; // x19\n\n  v4 = (char *)operator new(0x200u);\n  cocos2d::CCLayer::CCLayer((__int64)v4);\n  *(_QWORD *)v4 = off_10080E0D0;\n  *((_QWORD *)v4 + 40) = off_10080E578;\n  *((_QWORD *)v4 + 41) = &off_10080E5E8;\n  *((_QWORD *)v4 + 42) = off_10080E600;\n  *((_QWORD *)v4 + 43) = &off_10080E620;\n  *((_QWORD *)v4 + 44) = off_10080E640;\n  *((_QWORD *)v4 + 51) = off_10080E668;\n  *((_QWORD *)v4 + 52) = &off_10080E698;\n  *((_QWORD *)v4 + 63) = 0;\n  *((_QWORD *)v4 + 61) = 0;\n  *(_OWORD *)(v4 + 424) = 0u;\n  *(_OWORD *)(v4 + 440) = 0u;\n  *(_OWORD *)(v4 + 456) = 0u;\n  *(_OWORD *)(v4 + 472) = 0u;\n  if ( LeaderboardsLayer::init((LeaderboardsLayer *)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n  return (LeaderboardsLayer *)v4;\n}", "assembly": "; \n; LeaderboardsLayer::create from 0x1003b04ac to 0x1003b056c (192 bytes)\n; \n; 1 xrefs:\n; > LeaderboardsLayer::scene @ 0x1003b0480\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003b04ac\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003b04b0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003b04b4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003b04b8\nMOV             X20, X1                                                ; +0x10, 0x1003b04bc\nMOV             X21, X0                                                ; +0x14, 0x1003b04c0\nMOV             W0, #0x200; __sz                                       ; +0x18, 0x1003b04c4\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x1003b04c8\nMOV             X19, X0                                                ; +0x20, 0x1003b04cc\nBL              cocos2d__CCLayer__CCLayer                              ; +0x24, 0x1003b04d0\nADRL            X8, off_10080E0D0                                      ; +0x28, 0x1003b04d4\nSTR             X8, [X19]                                              ; +0x30, 0x1003b04dc\nADD             X9, X8, #(off_10080E578 - 0x10080E0D0)                 ; +0x34, 0x1003b04e0\nADD             X10, X8, #(off_10080E5E8 - 0x10080E0D0)                ; +0x38, 0x1003b04e4\nSTP             X9, X10, [X19,#0x140]                                  ; +0x3c, 0x1003b04e8\nADD             X9, X8, #(off_10080E600 - 0x10080E0D0)                 ; +0x40, 0x1003b04ec\nADD             X10, X8, #(off_10080E620 - 0x10080E0D0)                ; +0x44, 0x1003b04f0\nSTP             X9, X10, [X19,#0x150]                                  ; +0x48, 0x1003b04f4\nADD             X9, X8, #(off_10080E640 - 0x10080E0D0)                 ; +0x4c, 0x1003b04f8\nSTR             X9, [X19,#0x160]                                       ; +0x50, 0x1003b04fc\nADD             X9, X8, #(off_10080E668 - 0x10080E0D0)                 ; +0x54, 0x1003b0500\nADD             X8, X8, #(off_10080E698 - 0x10080E0D0)                 ; +0x58, 0x1003b0504\nSTP             X9, X8, [X19,#0x198]                                   ; +0x5c, 0x1003b0508\nADD             X8, X19, #0x1A8                                        ; +0x60, 0x1003b050c\nSTR             XZR, [X19,#0x1F8]                                      ; +0x64, 0x1003b0510\nSTR             XZR, [X19,#0x1E8]                                      ; +0x68, 0x1003b0514\nMOVI            V0.16B, #0                                             ; +0x6c, 0x1003b0518\nSTP             Q0, Q0, [X8]                                           ; +0x70, 0x1003b051c\nSTP             Q0, Q0, [X8,#0x20]                                     ; +0x74, 0x1003b0520\nMOV             X0, X19                                                ; +0x78, 0x1003b0524\nMOV             X1, X21                                                ; +0x7c, 0x1003b0528\nMOV             X2, X20                                                ; +0x80, 0x1003b052c\nBL              LeaderboardsLayer__init                                ; +0x84, 0x1003b0530\nCBZ             W0, loc_1003B0544                                      ; +0x88, 0x1003b0534\nMOV             X0, X19                                                ; +0x8c, 0x1003b0538\nBL              cocos2d__CCObject__autorelease                         ; +0x90, 0x1003b053c\nB               loc_1003B0558                                          ; +0x94, 0x1003b0540\nLDR             X8, [X19]                                              ; +0x98, 0x1003b0544\nLDR             X8, [X8,#0x10]                                         ; +0x9c, 0x1003b0548\nMOV             X0, X19                                                ; +0xa0, 0x1003b054c\nBLR             X8                                                     ; +0xa4, 0x1003b0550\nMOV             X19, #0                                                ; +0xa8, 0x1003b0554\nMOV             X0, X19                                                ; +0xac, 0x1003b0558\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb0, 0x1003b055c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb4, 0x1003b0560\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb8, 0x1003b0564\nRET                                                                    ; +0xbc, 0x1003b0568", "xrefs": ["LeaderboardsLayer::scene @ 0x1003b0480"], "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"}