{"type": "func", "start": 5371322784, "end": 5371322911, "name": "GJGroundLayer::create", "pseudocode": "// \n// GJGroundLayer::create from 0x14027e1a0 to 0x14027e21f (127 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::createGroundLayer @ 0x14020bcc5\n// > GJBaseGameLayer::createGroundLayer @ 0x14020bcfe\n// > LevelSelectLayer::init @ 0x1403186f8\n// > MenuGameLayer::init @ 0x1403316ae\n// > <???> @ 0x1406d11b4\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// Hidden C++ exception states: #wind=1\nGJGroundLayer *GJGroundLayer::create(int a1, int a2)\n{\n  GJGroundLayer *v4; // rax\n  GJGroundLayer *v5; // rbx\n  void *v7; // [rsp+40h] [rbp+18h]\n\n  v7 = operator new(0x1D8u);\n  v4 = (GJGroundLayer *)sub_14027E010((__int64)v7);\n  v5 = v4;\n  if ( v4 )\n  {\n    if ( GJGroundLayer::init(v4, a1, a2) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    ((void (__fastcall *)(GJGroundLayer *, __int64))v5->~GJGroundLayer)(v5, 1);\n    return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; GJGroundLayer::create from 0x14027e1a0 to 0x14027e21f (127 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::createGroundLayer @ 0x14020bcc5\n; > GJBaseGameLayer::createGroundLayer @ 0x14020bcfe\n; > LevelSelectLayer::init @ 0x1403186f8\n; > MenuGameLayer::init @ 0x1403316ae\n; > <???> @ 0x1406d11b4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14027e1a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14027e1a5\npush    rdi                                                            ; +0xa, 0x14027e1aa\nsub     rsp, 20h                                                       ; +0xb, 0x14027e1ab\nmov     edi, edx                                                       ; +0xf, 0x14027e1af\nmov     esi, ecx                                                       ; +0x11, 0x14027e1b1\nmov     ecx, 1D8h; Size                                                ; +0x13, 0x14027e1b3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18, 0x14027e1b8\nmov     [rsp+28h+arg_10], rax                                          ; +0x1d, 0x14027e1bd\nmov     rcx, rax                                                       ; +0x22, 0x14027e1c2\ncall    sub_14027E010                                                  ; +0x25, 0x14027e1c5\nmov     rbx, rax                                                       ; +0x2a, 0x14027e1ca\ntest    rax, rax                                                       ; +0x2d, 0x14027e1cd\njz      short loc_14027E20C                                            ; +0x30, 0x14027e1d0\nmov     r8d, edi                                                       ; +0x32, 0x14027e1d2\nmov     edx, esi                                                       ; +0x35, 0x14027e1d5\nmov     rcx, rax                                                       ; +0x37, 0x14027e1d7\ncall    GJGroundLayer__init                                            ; +0x3a, 0x14027e1da\nmov     rcx, rbx                                                       ; +0x3f, 0x14027e1df\ntest    al, al                                                         ; +0x42, 0x14027e1e2\njz      short loc_14027E1FF                                            ; +0x44, 0x14027e1e4\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x46, 0x14027e1e6\nmov     rax, rbx                                                       ; +0x4c, 0x14027e1ec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x14027e1ef\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x54, 0x14027e1f4\nadd     rsp, 20h                                                       ; +0x59, 0x14027e1f9\npop     rdi                                                            ; +0x5d, 0x14027e1fd\nretn                                                                   ; +0x5e, 0x14027e1fe\nmov     rax, [rbx]                                                     ; +0x5f, 0x14027e1ff\nmov     edx, 1                                                         ; +0x62, 0x14027e202\ncall    qword ptr [rax+8]                                              ; +0x67, 0x14027e207\nxor     ebx, ebx                                                       ; +0x6a, 0x14027e20a\nmov     rax, rbx                                                       ; +0x6c, 0x14027e20c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6f, 0x14027e20f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x14027e214\nadd     rsp, 20h                                                       ; +0x79, 0x14027e219\npop     rdi                                                            ; +0x7d, 0x14027e21d\nretn                                                                   ; +0x7e, 0x14027e21e", "xrefs": ["GJBaseGameLayer::createGroundLayer @ 0x14020bcc5", "GJBaseGameLayer::createGroundLayer @ 0x14020bcfe", "LevelSelectLayer::init @ 0x1403186f8", "MenuGameLayer::init @ 0x1403316ae", "<???> @ 0x1406d11b4"], "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"}