{"type": "func", "start": 4298787712, "end": 4298787831, "name": "BoomScrollLayer::create", "pseudocode": "// \n// BoomScrollLayer::create from 0x1003a4b80 to 0x1003a4bf7 (119 bytes)\n// \n// 5 xrefs:\n// > WorldSelectLayer::setupWorlds @ 0x1003c2a0c\n// > LevelSelectLayer::init @ 0x10043238f\n// > GauntletSelectLayer::setupGauntlets @ 0x10057243e\n// > SecretRewardsLayer::init @ 0x100631ce4\n// > SecretRewardsLayer::createSecondaryLayer @ 0x1006339ba\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\nBoomScrollLayer *__fastcall BoomScrollLayer::create(\n        cocos2d::CCArray *a1,\n        int a2,\n        bool a3,\n        cocos2d::CCArray *a4,\n        DynamicScrollDelegate *a5)\n{\n  BoomScrollLayer *v7; // rbx\n\n  v7 = (BoomScrollLayer *)operator new(0x270u);\n  BoomScrollLayer::BoomScrollLayer(v7);\n  if ( BoomScrollLayer::init(v7, a1, a2, a3, a4, a5) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n  }\n  else\n  {\n    ((void (__fastcall *)(BoomScrollLayer *))v7->~BoomScrollLayer_0)(v7);\n    return nullptr;\n  }\n  return v7;\n}", "assembly": "; \n; BoomScrollLayer::create from 0x1003a4b80 to 0x1003a4bf7 (119 bytes)\n; \n; 5 xrefs:\n; > WorldSelectLayer::setupWorlds @ 0x1003c2a0c\n; > LevelSelectLayer::init @ 0x10043238f\n; > GauntletSelectLayer::setupGauntlets @ 0x10057243e\n; > SecretRewardsLayer::init @ 0x100631ce4\n; > SecretRewardsLayer::createSecondaryLayer @ 0x1006339ba\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\npush    rbp                                                            ; +0x0, 0x1003a4b80\nmov     rbp, rsp                                                       ; +0x1, 0x1003a4b81\npush    r15                                                            ; +0x4, 0x1003a4b84\npush    r14                                                            ; +0x6, 0x1003a4b86\npush    r13                                                            ; +0x8, 0x1003a4b88\npush    r12                                                            ; +0xa, 0x1003a4b8a\npush    rbx                                                            ; +0xc, 0x1003a4b8c\npush    rax                                                            ; +0xd, 0x1003a4b8d\nmov     [rbp+var_30], r8                                               ; +0xe, 0x1003a4b8e\nmov     r15, rcx                                                       ; +0x12, 0x1003a4b92\nmov     r14d, edx                                                      ; +0x15, 0x1003a4b95\nmov     r12d, esi                                                      ; +0x18, 0x1003a4b98\nmov     r13, rdi                                                       ; +0x1b, 0x1003a4b9b\nmov     edi, 270h; __sz                                                ; +0x1e, 0x1003a4b9e\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x1003a4ba3\nmov     rbx, rax                                                       ; +0x28, 0x1003a4ba8\nmov     rdi, rax                                                       ; +0x2b, 0x1003a4bab\ncall    BoomScrollLayer__BoomScrollLayer                               ; +0x2e, 0x1003a4bae\nmovzx   ecx, r14b                                                      ; +0x33, 0x1003a4bb3\nmov     rdi, rbx                                                       ; +0x37, 0x1003a4bb7\nmov     rsi, r13                                                       ; +0x3a, 0x1003a4bba\nmov     edx, r12d                                                      ; +0x3d, 0x1003a4bbd\nmov     r8, r15                                                        ; +0x40, 0x1003a4bc0\nmov     r9, [rbp+var_30]                                               ; +0x43, 0x1003a4bc3\ncall    BoomScrollLayer__init                                          ; +0x47, 0x1003a4bc7\ntest    al, al                                                         ; +0x4c, 0x1003a4bcc\njz      short loc_1003A4BDA                                            ; +0x4e, 0x1003a4bce\nmov     rdi, rbx                                                       ; +0x50, 0x1003a4bd0\ncall    cocos2d__CCObject__autorelease                                 ; +0x53, 0x1003a4bd3\njmp     short loc_1003A4BE5                                            ; +0x58, 0x1003a4bd8\nmov     rax, [rbx]                                                     ; +0x5a, 0x1003a4bda\nmov     rdi, rbx                                                       ; +0x5d, 0x1003a4bdd\ncall    qword ptr [rax+10h]                                            ; +0x60, 0x1003a4be0\nxor     ebx, ebx                                                       ; +0x63, 0x1003a4be3\nmov     rax, rbx                                                       ; +0x65, 0x1003a4be5\nadd     rsp, 8                                                         ; +0x68, 0x1003a4be8\npop     rbx                                                            ; +0x6c, 0x1003a4bec\npop     r12                                                            ; +0x6d, 0x1003a4bed\npop     r13                                                            ; +0x6f, 0x1003a4bef\npop     r14                                                            ; +0x71, 0x1003a4bf1\npop     r15                                                            ; +0x73, 0x1003a4bf3\npop     rbp                                                            ; +0x75, 0x1003a4bf5\nretn                                                                   ; +0x76, 0x1003a4bf6", "xrefs": ["WorldSelectLayer::setupWorlds @ 0x1003c2a0c", "LevelSelectLayer::init @ 0x10043238f", "GauntletSelectLayer::setupGauntlets @ 0x10057243e", "SecretRewardsLayer::init @ 0x100631ce4", "SecretRewardsLayer::createSecondaryLayer @ 0x1006339ba"], "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"}