{"type": "func", "start": 4300784304, "end": 4300784375, "name": "GJGameLevel::levelHasDiamonds", "pseudocode": "// \n// GJGameLevel::levelHasDiamonds from 0x10058c2b0 to 0x10058c2f7 (71 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::levelComplete @ 0x100081449\n// > PlayLayer::destroyPlayer @ 0x100087e33\n// > LevelInfoLayer::setupLevelInfo @ 0x1002ad8d2\n// > LevelInfoLayer::updateLabelValues @ 0x1002b007e\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 12:32:24 +0000\n// \n\nchar __fastcall GJGameLevel::levelHasDiamonds(__int64 a1)\n{\n  char result; // al\n  __int64 v2; // rax\n\n  result = 1;\n  if ( !*(_BYTE *)(a1 + 649) )\n  {\n    if ( *(_DWORD *)(a1 + 920) <= *(_DWORD *)(a1 + 924) )\n    {\n      return 0;\n    }\n    else\n    {\n      v2 = GameStatsManager::sharedState();\n      return GameStatsManager::isDailyRecall(v2, *(_DWORD *)(a1 + 920) - *(_DWORD *)(a1 + 924)) ^ 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJGameLevel::levelHasDiamonds from 0x10058c2b0 to 0x10058c2f7 (71 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::levelComplete @ 0x100081449\n; > PlayLayer::destroyPlayer @ 0x100087e33\n; > LevelInfoLayer::setupLevelInfo @ 0x1002ad8d2\n; > LevelInfoLayer::updateLabelValues @ 0x1002b007e\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 12:32:24 +0000\n; \nmov     al, 1                                                          ; +0x0, 0x10058c2b0\ncmp     byte ptr [rdi+289h], 0                                         ; +0x2, 0x10058c2b2\njnz     short locret_10058C2F3                                         ; +0x9, 0x10058c2b9\nmov     eax, [rdi+398h]                                                ; +0xb, 0x10058c2bb\ncmp     eax, [rdi+39Ch]                                                ; +0x11, 0x10058c2c1\njle     short loc_10058C2F4                                            ; +0x17, 0x10058c2c7\npush    rbp                                                            ; +0x19, 0x10058c2c9\nmov     rbp, rsp                                                       ; +0x1a, 0x10058c2ca\npush    rbx                                                            ; +0x1d, 0x10058c2cd\npush    rax                                                            ; +0x1e, 0x10058c2ce\nmov     rbx, rdi                                                       ; +0x1f, 0x10058c2cf\ncall    GameStatsManager__sharedState                                  ; +0x22, 0x10058c2d2\nmov     esi, [rbx+398h]                                                ; +0x27, 0x10058c2d7\nsub     esi, [rbx+39Ch]                                                ; +0x2d, 0x10058c2dd\nmov     rdi, rax                                                       ; +0x33, 0x10058c2e3\ncall    GameStatsManager__isDailyRecall                                ; +0x36, 0x10058c2e6\nxor     al, 1                                                          ; +0x3b, 0x10058c2eb\nadd     rsp, 8                                                         ; +0x3d, 0x10058c2ed\npop     rbx                                                            ; +0x41, 0x10058c2f1\npop     rbp                                                            ; +0x42, 0x10058c2f2\nretn                                                                   ; +0x43, 0x10058c2f3\nxor     eax, eax                                                       ; +0x44, 0x10058c2f4\nretn                                                                   ; +0x46, 0x10058c2f6", "xrefs": ["PlayLayer::levelComplete @ 0x100081449", "PlayLayer::destroyPlayer @ 0x100087e33", "LevelInfoLayer::setupLevelInfo @ 0x1002ad8d2", "LevelInfoLayer::updateLabelValues @ 0x1002b007e"], "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"}