{"type": "func", "start": 9494164, "end": 9494196, "name": "CurrencySprite::rewardToSpriteType", "pseudocode": "// \n// CurrencySprite::rewardToSpriteType from 0x90de94 to 0x90deb4 (32 bytes)\n// \n// 3 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x938e48\n// > RewardUnlockLayer::playRewardEffect @ 0x938e54\n// > <???> @ 0x81150\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\nCurrencySpriteType CurrencySprite::rewardToSpriteType(int a1)\n{\n  unsigned int v1; // w1\n  CurrencySpriteType result; // w0\n\n  v1 = a1 - 1;\n  result = Icon;\n  if ( v1 <= 0xE )\n    return dword_EF3180[v1];\n  return result;\n}", "assembly": "; \n; CurrencySprite::rewardToSpriteType from 0x90de94 to 0x90deb4 (32 bytes)\n; \n; 3 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x938e48\n; > RewardUnlockLayer::playRewardEffect @ 0x938e54\n; > <???> @ 0x81150\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\nSUB             W1, W0, #1                                             ; +0x0, 0x90de94\nMOV             W0, #0                                                 ; +0x4, 0x90de98\nCMP             W1, #0xE                                               ; +0x8, 0x90de9c\nB.HI            locret_90DEB0                                          ; +0xc, 0x90dea0\nADRL            X0, dword_EF3180                                       ; +0x10, 0x90dea4\nLDR             W0, [X0,W1,UXTW#2]                                     ; +0x18, 0x90deac\nRET                                                                    ; +0x1c, 0x90deb0", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x938e48", "RewardUnlockLayer::playRewardEffect @ 0x938e54", "<???> @ 0x81150"], "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"}