{"type": "func", "start": 4300673632, "end": 4300673886, "name": "GauntletSelectLayer::create", "pseudocode": "// \n// GauntletSelectLayer::create from 0x100571260 to 0x10057135e (254 bytes)\n// \n// 1 xrefs:\n// > GauntletSelectLayer::scene @ 0x10057123c\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\nGauntletSelectLayer *__fastcall GauntletSelectLayer::create(int a1)\n{\n  int v1; // esi\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x208u);\n  cocos2d::CCLayer::CCLayer((__int64)v2);\n  *(_QWORD *)v2 = off_1009649F0;\n  *((_QWORD *)v2 + 40) = off_100964E98;\n  *((_QWORD *)v2 + 41) = &off_100964F08;\n  *((_QWORD *)v2 + 42) = off_100964F20;\n  *((_QWORD *)v2 + 43) = off_100964F40;\n  *((_QWORD *)v2 + 44) = off_100964F60;\n  *((_QWORD *)v2 + 51) = off_100964F88;\n  *((_QWORD *)v2 + 52) = off_100964FB8;\n  *((_QWORD *)v2 + 53) = off_100964FF0;\n  *((_QWORD *)v2 + 58) = 0;\n  *((_WORD *)v2 + 236) = 0;\n  *((_DWORD *)v2 + 127) = 0;\n  *((_WORD *)v2 + 256) = 0;\n  *((_OWORD *)v2 + 27) = 0;\n  *((_OWORD *)v2 + 30) = 0;\n  *(_OWORD *)(v2 + 489) = 0;\n  if ( GauntletSelectLayer::init((GauntletSelectLayer *)v2, v1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (GauntletSelectLayer *)v2;\n}", "assembly": "; \n; GauntletSelectLayer::create from 0x100571260 to 0x10057135e (254 bytes)\n; \n; 1 xrefs:\n; > GauntletSelectLayer::scene @ 0x10057123c\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, 0x100571260\nmov     rbp, rsp                                                       ; +0x1, 0x100571261\npush    r14                                                            ; +0x4, 0x100571264\npush    rbx                                                            ; +0x6, 0x100571266\nmov     edi, 208h; __sz                                                ; +0x7, 0x100571267\ncall    __Znwm; operator new(ulong)                                    ; +0xc, 0x10057126c\nmov     rbx, rax                                                       ; +0x11, 0x100571271\nmov     rdi, rax                                                       ; +0x14, 0x100571274\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x17, 0x100571277\nlea     rax, off_1009649F0                                             ; +0x1c, 0x10057127c\nmov     [rbx], rax                                                     ; +0x23, 0x100571283\nlea     rax, off_100964E98                                             ; +0x26, 0x100571286\nmov     [rbx+140h], rax                                                ; +0x2d, 0x10057128d\nlea     rax, off_100964F08                                             ; +0x34, 0x100571294\nmov     [rbx+148h], rax                                                ; +0x3b, 0x10057129b\nlea     rax, off_100964F20                                             ; +0x42, 0x1005712a2\nmov     [rbx+150h], rax                                                ; +0x49, 0x1005712a9\nlea     rax, off_100964F40                                             ; +0x50, 0x1005712b0\nmov     [rbx+158h], rax                                                ; +0x57, 0x1005712b7\nlea     rax, off_100964F60                                             ; +0x5e, 0x1005712be\nmov     [rbx+160h], rax                                                ; +0x65, 0x1005712c5\nlea     rax, off_100964F88                                             ; +0x6c, 0x1005712cc\nmov     [rbx+198h], rax                                                ; +0x73, 0x1005712d3\nlea     rax, off_100964FB8                                             ; +0x7a, 0x1005712da\nmov     [rbx+1A0h], rax                                                ; +0x81, 0x1005712e1\nlea     rax, off_100964FF0                                             ; +0x88, 0x1005712e8\nmov     [rbx+1A8h], rax                                                ; +0x8f, 0x1005712ef\nmov     qword ptr [rbx+1D0h], 0                                        ; +0x96, 0x1005712f6\nmov     word ptr [rbx+1D8h], 0                                         ; +0xa1, 0x100571301\nmov     dword ptr [rbx+1FCh], 0                                        ; +0xaa, 0x10057130a\nmov     word ptr [rbx+200h], 0                                         ; +0xb4, 0x100571314\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x10057131d\nmovups  xmmword ptr [rbx+1B0h], xmm0                                   ; +0xc0, 0x100571320\nmovups  xmmword ptr [rbx+1E0h], xmm0                                   ; +0xc7, 0x100571327\nmovups  xmmword ptr [rbx+1E9h], xmm0                                   ; +0xce, 0x10057132e\nmov     rdi, rbx                                                       ; +0xd5, 0x100571335\ncall    GauntletSelectLayer__init                                      ; +0xd8, 0x100571338\ntest    al, al                                                         ; +0xdd, 0x10057133d\njz      short loc_10057134B                                            ; +0xdf, 0x10057133f\nmov     rdi, rbx                                                       ; +0xe1, 0x100571341\ncall    cocos2d__CCObject__autorelease                                 ; +0xe4, 0x100571344\njmp     short loc_100571356                                            ; +0xe9, 0x100571349\nmov     rax, [rbx]                                                     ; +0xeb, 0x10057134b\nmov     rdi, rbx                                                       ; +0xee, 0x10057134e\ncall    qword ptr [rax+10h]                                            ; +0xf1, 0x100571351\nxor     ebx, ebx                                                       ; +0xf4, 0x100571354\nmov     rax, rbx                                                       ; +0xf6, 0x100571356\npop     rbx                                                            ; +0xf9, 0x100571359\npop     r14                                                            ; +0xfa, 0x10057135a\npop     rbp                                                            ; +0xfc, 0x10057135c\nretn                                                                   ; +0xfd, 0x10057135d", "xrefs": ["GauntletSelectLayer::scene @ 0x10057123c"], "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"}