{"type": "func", "start": 4295838076, "end": 4295838168, "name": "GJGameLevel::levelHasDiamonds", "pseudocode": "// \n// GJGameLevel::levelHasDiamonds from 0x1000d497c to 0x1000d49d8 (92 bytes)\n// \n// 4 xrefs:\n// > sub_10002A788 @ 0x10002af40\n// > LevelInfoLayer::updateLabelValues @ 0x10002d30c\n// > PlayLayer::levelComplete @ 0x100142ee4\n// > PlayLayer::destroyPlayer @ 0x100147f10\n// \n// This function is hookable on this platform (idp: arm, 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 10:58:55 +0000\n// \n\n__int64 __fastcall GJGameLevel::levelHasDiamonds(__int64 a1)\n{\n  __int64 v3; // x0\n\n  if ( (*(_BYTE *)(a1 + 649) & 1) != 0 )\n    return 1;\n  if ( *(_DWORD *)(a1 + 920) <= *(_DWORD *)(a1 + 924) )\n    return 0;\n  v3 = GameStatsManager::sharedState(a1);\n  return (unsigned int)GameStatsManager::isDailyRecall(\n                         v3,\n                         (unsigned int)(*(_DWORD *)(a1 + 920) - *(_DWORD *)(a1 + 924)))\n       ^ 1;\n}", "assembly": "; \n; GJGameLevel::levelHasDiamonds from 0x1000d497c to 0x1000d49d8 (92 bytes)\n; \n; 4 xrefs:\n; > sub_10002A788 @ 0x10002af40\n; > LevelInfoLayer::updateLabelValues @ 0x10002d30c\n; > PlayLayer::levelComplete @ 0x100142ee4\n; > PlayLayer::destroyPlayer @ 0x100147f10\n; \n; This function is hookable on this platform (idp: arm, 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 10:58:55 +0000\n; \nLDRB            W8, [X0,#0x289]                                        ; +0x0, 0x1000d497c\nTBZ             W8, #0, loc_1000D498C                                  ; +0x4, 0x1000d4980\nMOV             W0, #1                                                 ; +0x8, 0x1000d4984\nRET                                                                    ; +0xc, 0x1000d4988\nSTP             X20, X19, [SP,#var_20]!                                ; +0x10, 0x1000d498c\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x14, 0x1000d4990\nADD             X29, SP, #0x20+var_10                                  ; +0x18, 0x1000d4994\nMOV             X19, X0                                                ; +0x1c, 0x1000d4998\nLDR             W8, [X0,#0x398]                                        ; +0x20, 0x1000d499c\nLDR             W9, [X0,#0x39C]                                        ; +0x24, 0x1000d49a0\nCMP             W8, W9                                                 ; +0x28, 0x1000d49a4\nB.LE            loc_1000D49C8                                          ; +0x2c, 0x1000d49a8\nBL              GameStatsManager__sharedState                          ; +0x30, 0x1000d49ac\nLDR             W8, [X19,#0x398]                                       ; +0x34, 0x1000d49b0\nLDR             W9, [X19,#0x39C]                                       ; +0x38, 0x1000d49b4\nSUB             W1, W8, W9                                             ; +0x3c, 0x1000d49b8\nBL              GameStatsManager__isDailyRecall                        ; +0x40, 0x1000d49bc\nEOR             W0, W0, #1                                             ; +0x44, 0x1000d49c0\nB               loc_1000D49CC                                          ; +0x48, 0x1000d49c4\nMOV             W0, #0                                                 ; +0x4c, 0x1000d49c8\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x50, 0x1000d49cc\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x54, 0x1000d49d0\nRET                                                                    ; +0x58, 0x1000d49d4", "xrefs": ["sub_10002A788 @ 0x10002af40", "LevelInfoLayer::updateLabelValues @ 0x10002d30c", "PlayLayer::levelComplete @ 0x100142ee4", "PlayLayer::destroyPlayer @ 0x100147f10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}