{"type": "func", "start": 5047804, "end": 5047822, "name": "CurrencySprite::rewardToSpriteType", "pseudocode": "// \n// CurrencySprite::rewardToSpriteType from 0x4d05fc to 0x4d060e (18 bytes)\n// \n// 2 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x4e9288\n// > RewardUnlockLayer::playRewardEffect @ 0x4e9290\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; // r0\n\n  v1 = a1 - 1;\n  if ( v1 > 0xE )\n    return Icon;\n  else\n    return byte_9AC660[v1];\n}", "assembly": "; \n; CurrencySprite::rewardToSpriteType from 0x4d05fc to 0x4d060e (18 bytes)\n; \n; 2 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x4e9288\n; > RewardUnlockLayer::playRewardEffect @ 0x4e9290\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\nSUBS            R0, #1                                                 ; +0x0, 0x4d05fc\nCMP             R0, #0xE                                               ; +0x2, 0x4d05fe\nBHI             loc_4D060A                                             ; +0x4, 0x4d0600\nLDR             R3, =(byte_9AC660 - 0x4D0608)                          ; +0x6, 0x4d0602\nADD             R3, PC; byte_9AC660                                    ; +0x8, 0x4d0604\nLDRB            R0, [R3,R0]                                            ; +0xa, 0x4d0606\nBX              LR                                                     ; +0xc, 0x4d0608\nMOVS            R0, #0                                                 ; +0xe, 0x4d060a\nBX              LR                                                     ; +0x10, 0x4d060c", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x4e9288", "RewardUnlockLayer::playRewardEffect @ 0x4e9290"], "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"}