{"type": "func", "start": 5371291440, "end": 5371291621, "name": "GJGarageLayer::getItems_1", "pseudocode": "// \n// GJGarageLayer::getItems_1 from 0x140276730 to 0x1402767e5 (181 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::setupSpecialPage @ 0x140276b47\n// > GJGarageLayer::setupSpecialPage @ 0x140276c77\n// > <???> @ 0x1406d0f80\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=2\ncocos2d::CCArray *GJGarageLayer::getItems_1(GJGarageLayer *a1, IconType a2)\n{\n  GameManager *v4; // rbx\n  GameManager *v5; // rcx\n  int v6; // eax\n  int v7; // r9d\n  void *v9; // [rsp+50h] [rbp+18h]\n  void *v10; // [rsp+50h] [rbp+18h]\n\n  v4 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v9 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v10 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    }\n  }\n  GameManager::activeIconForType(v4, a2);\n  v6 = GameManager::countForType(v5, a2);\n  return GJGarageLayer::getItems(a1, v6, 0, a2, v7);\n}", "assembly": "; \n; GJGarageLayer::getItems_1 from 0x140276730 to 0x1402767e5 (181 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::setupSpecialPage @ 0x140276b47\n; > GJGarageLayer::setupSpecialPage @ 0x140276c77\n; > <???> @ 0x1406d0f80\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, 0x140276730\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140276735\npush    rdi                                                            ; +0xa, 0x14027673a\nsub     rsp, 30h                                                       ; +0xb, 0x14027673b\nmov     edi, edx                                                       ; +0xf, 0x14027673f\nmov     rsi, rcx                                                       ; +0x11, 0x140276741\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x14, 0x140276744\ntest    rbx, rbx                                                       ; +0x1b, 0x14027674b\njnz     short loc_1402767AC                                            ; +0x1e, 0x14027674e\nmov     ecx, 668h; Size                                                ; +0x20, 0x140276750\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140276755\nmov     [rsp+38h+arg_10], rax                                          ; +0x2a, 0x14027675a\nmov     rcx, rax                                                       ; +0x2f, 0x14027675f\ncall    sub_14017AB00                                                  ; +0x32, 0x140276762\nnop                                                                    ; +0x37, 0x140276767\nmov     cs:qword_1406C2ED8, rax                                        ; +0x38, 0x140276768\nmov     rdx, [rax]                                                     ; +0x3f, 0x14027676f\nmov     rcx, rax                                                       ; +0x42, 0x140276772\ncall    qword ptr [rdx+48h]                                            ; +0x45, 0x140276775\nmov     rbx, cs:qword_1406C2ED8                                        ; +0x48, 0x140276778\ntest    rbx, rbx                                                       ; +0x4f, 0x14027677f\njnz     short loc_1402767AC                                            ; +0x52, 0x140276782\nmov     ecx, 668h; Size                                                ; +0x54, 0x140276784\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x59, 0x140276789\nmov     [rsp+38h+arg_10], rax                                          ; +0x5e, 0x14027678e\nmov     rcx, rax                                                       ; +0x63, 0x140276793\ncall    sub_14017AB00                                                  ; +0x66, 0x140276796\nnop                                                                    ; +0x6b, 0x14027679b\nmov     cs:qword_1406C2ED8, rax                                        ; +0x6c, 0x14027679c\nmov     rdx, [rax]                                                     ; +0x73, 0x1402767a3\nmov     rcx, rax                                                       ; +0x76, 0x1402767a6\ncall    qword ptr [rdx+48h]                                            ; +0x79, 0x1402767a9\nmov     edx, edi                                                       ; +0x7c, 0x1402767ac\nmov     rcx, rbx                                                       ; +0x7e, 0x1402767ae\ncall    GameManager__activeIconForType                                 ; +0x81, 0x1402767b1\nmov     r9d, eax                                                       ; +0x86, 0x1402767b6\nmov     edx, edi                                                       ; +0x89, 0x1402767b9\ncall    GameManager__countForType                                      ; +0x8b, 0x1402767bb\nmov     edx, eax                                                       ; +0x90, 0x1402767c0\nmov     [rsp+38h+var_18], r9d                                          ; +0x92, 0x1402767c2\nmov     r9d, edi                                                       ; +0x97, 0x1402767c7\nxor     r8d, r8d                                                       ; +0x9a, 0x1402767ca\nmov     rcx, rsi                                                       ; +0x9d, 0x1402767cd\ncall    GJGarageLayer__getItems                                        ; +0xa0, 0x1402767d0\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa5, 0x1402767d5\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xaa, 0x1402767da\nadd     rsp, 30h                                                       ; +0xaf, 0x1402767df\npop     rdi                                                            ; +0xb3, 0x1402767e3\nretn                                                                   ; +0xb4, 0x1402767e4", "xrefs": ["GJGarageLayer::setupSpecialPage @ 0x140276b47", "GJGarageLayer::setupSpecialPage @ 0x140276c77", "<???> @ 0x1406d0f80"], "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"}