{"type": "func", "start": 4303005776, "end": 4303005803, "name": "CurrencySprite::rewardToSpriteType", "pseudocode": "// \n// CurrencySprite::rewardToSpriteType from 0x1007aa850 to 0x1007aa86b (27 bytes)\n// \n// 2 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d205\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d213\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 __fastcall CurrencySprite::rewardToSpriteType(int a1)\n{\n  unsigned int v1; // edi\n  CurrencySpriteType result; // eax\n\n  v1 = a1 - 1;\n  result = Icon;\n  if ( v1 <= 0xE )\n    return dword_100823778[v1];\n  return result;\n}", "assembly": "; \n; CurrencySprite::rewardToSpriteType from 0x1007aa850 to 0x1007aa86b (27 bytes)\n; \n; 2 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d205\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d213\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\npush    rbp                                                            ; +0x0, 0x1007aa850\nmov     rbp, rsp                                                       ; +0x1, 0x1007aa851\ndec     edi                                                            ; +0x4, 0x1007aa854\nxor     eax, eax                                                       ; +0x6, 0x1007aa856\ncmp     edi, 0Eh                                                       ; +0x8, 0x1007aa858\nja      short loc_1007AA869                                            ; +0xb, 0x1007aa85b\nmov     eax, edi                                                       ; +0xd, 0x1007aa85d\nlea     rcx, dword_100823778                                           ; +0xf, 0x1007aa85f\nmov     eax, [rcx+rax*4]                                               ; +0x16, 0x1007aa866\npop     rbp                                                            ; +0x19, 0x1007aa869\nretn                                                                   ; +0x1a, 0x1007aa86a", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x10021d205", "RewardUnlockLayer::playRewardEffect @ 0x10021d213"], "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"}