{"type": "func", "start": 5371244272, "end": 5371244393, "name": "GJGameLevel::levelHasDiamonds", "pseudocode": "// \n// GJGameLevel::levelHasDiamonds from 0x14026aef0 to 0x14026af69 (121 bytes)\n// \n// 5 xrefs:\n// > LevelInfoLayer::setupLevelInfo @ 0x14042062d\n// > LevelInfoLayer::updateLabelValues @ 0x140425c4a\n// > PlayLayer::levelComplete @ 0x140506cc6\n// > PlayLayer::destroyPlayer @ 0x140512d33\n// > <???> @ 0x14091ca18\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:28:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nbool __fastcall GJGameLevel::levelHasDiamonds(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( *(_BYTE *)(a1 + 721) )\n    return 1;\n  v1 = *(_DWORD *)(a1 + 992) - *(_DWORD *)(a1 + 996);\n  if ( v1 <= 0 )\n    return 0;\n  v2 = qword_14090BFE0;\n  if ( !qword_14090BFE0 )\n  {\n    v4 = operator new(0x3E8u);\n    qword_14090BFE0 = sub_1402D6480(v4);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0);\n    v2 = qword_14090BFE0;\n  }\n  return !(unsigned __int8)GameStatsManager::isDailyRecall(v2, (unsigned int)v1);\n}", "assembly": "; \n; GJGameLevel::levelHasDiamonds from 0x14026aef0 to 0x14026af69 (121 bytes)\n; \n; 5 xrefs:\n; > LevelInfoLayer::setupLevelInfo @ 0x14042062d\n; > LevelInfoLayer::updateLabelValues @ 0x140425c4a\n; > PlayLayer::levelComplete @ 0x140506cc6\n; > PlayLayer::destroyPlayer @ 0x140512d33\n; > <???> @ 0x14091ca18\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:28:51 +0000\n; \npush    rbx                                                            ; +0x0, 0x14026aef0\nsub     rsp, 20h                                                       ; +0x2, 0x14026aef2\ncmp     byte ptr [rcx+2D1h], 0                                         ; +0x6, 0x14026aef6\njnz     short loc_14026AF59                                            ; +0xd, 0x14026aefd\nmov     ebx, [rcx+3E0h]                                                ; +0xf, 0x14026aeff\nsub     ebx, [rcx+3E4h]                                                ; +0x15, 0x14026af05\ntest    ebx, ebx                                                       ; +0x1b, 0x14026af0b\njle     short loc_14026AF61                                            ; +0x1d, 0x14026af0d\nmov     rcx, cs:qword_14090BFE0                                        ; +0x1f, 0x14026af0f\ntest    rcx, rcx                                                       ; +0x26, 0x14026af16\njnz     short loc_14026AF4E                                            ; +0x29, 0x14026af19\nmov     ecx, 3E8h; Size                                                ; +0x2b, 0x14026af1b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x30, 0x14026af20\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x14026af25\nmov     rcx, rax                                                       ; +0x3a, 0x14026af2a\ncall    sub_1402D6480                                                  ; +0x3d, 0x14026af2d\nnop                                                                    ; +0x42, 0x14026af32\nmov     cs:qword_14090BFE0, rax                                        ; +0x43, 0x14026af33\nmov     rcx, [rax]                                                     ; +0x4a, 0x14026af3a\nmov     r8, [rcx+48h]                                                  ; +0x4d, 0x14026af3d\nmov     rcx, rax                                                       ; +0x51, 0x14026af41\ncall    r8                                                             ; +0x54, 0x14026af44\nmov     rcx, cs:qword_14090BFE0                                        ; +0x57, 0x14026af47\nmov     edx, ebx                                                       ; +0x5e, 0x14026af4e\ncall    GameStatsManager__isDailyRecall                                ; +0x60, 0x14026af50\ntest    al, al                                                         ; +0x65, 0x14026af55\njnz     short loc_14026AF61                                            ; +0x67, 0x14026af57\nmov     al, 1                                                          ; +0x69, 0x14026af59\nadd     rsp, 20h                                                       ; +0x6b, 0x14026af5b\npop     rbx                                                            ; +0x6f, 0x14026af5f\nretn                                                                   ; +0x70, 0x14026af60\nxor     al, al                                                         ; +0x71, 0x14026af61\nadd     rsp, 20h                                                       ; +0x73, 0x14026af63\npop     rbx                                                            ; +0x77, 0x14026af67\nretn                                                                   ; +0x78, 0x14026af68", "xrefs": ["LevelInfoLayer::setupLevelInfo @ 0x14042062d", "LevelInfoLayer::updateLabelValues @ 0x140425c4a", "PlayLayer::levelComplete @ 0x140506cc6", "PlayLayer::destroyPlayer @ 0x140512d33", "<???> @ 0x14091ca18"], "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"}