{"type": "func", "start": 5372375184, "end": 5372375365, "name": "GJGarageLayer::getItems_1", "pseudocode": "// \n// GJGarageLayer::getItems_1 from 0x14037f090 to 0x14037f145 (181 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::setupSpecialPage @ 0x14037f4a1\n// > GJGarageLayer::setupSpecialPage @ 0x14037f61a\n// > <???> @ 0x140922898\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:04 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GJGarageLayer::getItems_1(int a1, int a2)\n{\n  _DWORD *v4; // rbx\n  __int64 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 = (_DWORD *)qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v9 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = (_DWORD *)qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v10 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\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 0x14037f090 to 0x14037f145 (181 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::setupSpecialPage @ 0x14037f4a1\n; > GJGarageLayer::setupSpecialPage @ 0x14037f61a\n; > <???> @ 0x140922898\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:04 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14037f090\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14037f095\npush    rdi                                                            ; +0xa, 0x14037f09a\nsub     rsp, 30h                                                       ; +0xb, 0x14037f09b\nmov     edi, edx                                                       ; +0xf, 0x14037f09f\nmov     rsi, rcx                                                       ; +0x11, 0x14037f0a1\nmov     rbx, cs:qword_14090BFD0                                        ; +0x14, 0x14037f0a4\ntest    rbx, rbx                                                       ; +0x1b, 0x14037f0ab\njnz     short loc_14037F10C                                            ; +0x1e, 0x14037f0ae\nmov     ecx, 6E8h; Size                                                ; +0x20, 0x14037f0b0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x14037f0b5\nmov     [rsp+38h+arg_10], rax                                          ; +0x2a, 0x14037f0ba\nmov     rcx, rax                                                       ; +0x2f, 0x14037f0bf\ncall    GameManager__GameManager                                       ; +0x32, 0x14037f0c2\nnop                                                                    ; +0x37, 0x14037f0c7\nmov     cs:qword_14090BFD0, rax                                        ; +0x38, 0x14037f0c8\nmov     rdx, [rax]                                                     ; +0x3f, 0x14037f0cf\nmov     rcx, rax                                                       ; +0x42, 0x14037f0d2\ncall    qword ptr [rdx+48h]                                            ; +0x45, 0x14037f0d5\nmov     rbx, cs:qword_14090BFD0                                        ; +0x48, 0x14037f0d8\ntest    rbx, rbx                                                       ; +0x4f, 0x14037f0df\njnz     short loc_14037F10C                                            ; +0x52, 0x14037f0e2\nmov     ecx, 6E8h; Size                                                ; +0x54, 0x14037f0e4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x59, 0x14037f0e9\nmov     [rsp+38h+arg_10], rax                                          ; +0x5e, 0x14037f0ee\nmov     rcx, rax                                                       ; +0x63, 0x14037f0f3\ncall    GameManager__GameManager                                       ; +0x66, 0x14037f0f6\nnop                                                                    ; +0x6b, 0x14037f0fb\nmov     cs:qword_14090BFD0, rax                                        ; +0x6c, 0x14037f0fc\nmov     rdx, [rax]                                                     ; +0x73, 0x14037f103\nmov     rcx, rax                                                       ; +0x76, 0x14037f106\ncall    qword ptr [rdx+48h]                                            ; +0x79, 0x14037f109\nmov     edx, edi                                                       ; +0x7c, 0x14037f10c\nmov     rcx, rbx                                                       ; +0x7e, 0x14037f10e\ncall    GameManager__activeIconForType                                 ; +0x81, 0x14037f111\nmov     r9d, eax                                                       ; +0x86, 0x14037f116\nmov     edx, edi                                                       ; +0x89, 0x14037f119\ncall    GameManager__countForType                                      ; +0x8b, 0x14037f11b\nmov     edx, eax                                                       ; +0x90, 0x14037f120\nmov     [rsp+38h+var_18], r9d                                          ; +0x92, 0x14037f122\nmov     r9d, edi                                                       ; +0x97, 0x14037f127\nxor     r8d, r8d                                                       ; +0x9a, 0x14037f12a\nmov     rcx, rsi                                                       ; +0x9d, 0x14037f12d\ncall    GJGarageLayer__getItems                                        ; +0xa0, 0x14037f130\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa5, 0x14037f135\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xaa, 0x14037f13a\nadd     rsp, 30h                                                       ; +0xaf, 0x14037f13f\npop     rdi                                                            ; +0xb3, 0x14037f143\nretn                                                                   ; +0xb4, 0x14037f144", "xrefs": ["GJGarageLayer::setupSpecialPage @ 0x14037f4a1", "GJGarageLayer::setupSpecialPage @ 0x14037f61a", "<???> @ 0x140922898"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}