{"type": "func", "start": 4210380, "end": 4210404, "name": "GJItemIcon::scaleForType", "pseudocode": "// \n// GJItemIcon::scaleForType from 0x403ecc to 0x403ee4 (24 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::getItems @ 0x405c58\n// > GJGarageLayer::setupSpecialPage @ 0x405ffc\n// > GJPathPage::init @ 0x58da88\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\nfloat GJItemIcon::scaleForType(UnlockType a1)\n{\n  unsigned __int32 v1; // r0\n\n  v1 = a1 - 1;\n  if ( v1 > 0xE )\n    return 1.0;\n  else\n    return *((float *)&unk_9AB290 + v1 + 4);\n}", "assembly": "; \n; GJItemIcon::scaleForType from 0x403ecc to 0x403ee4 (24 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::getItems @ 0x405c58\n; > GJGarageLayer::setupSpecialPage @ 0x405ffc\n; > GJPathPage::init @ 0x58da88\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, 0x403ecc\nCMP             R0, #0xE                                               ; +0x2, 0x403ece\nBHI             loc_403EDE                                             ; +0x4, 0x403ed0\nLDR             R3, =(unk_9AB290 - 0x403ED8)                           ; +0x6, 0x403ed2\nADD             R3, PC; unk_9AB290                                     ; +0x8, 0x403ed4\nADD.W           R0, R3, R0,LSL#2                                       ; +0xa, 0x403ed6\nLDR             R0, [R0,#0x10]                                         ; +0xe, 0x403eda\nBX              LR                                                     ; +0x10, 0x403edc\nMOV.W           R0, #0x3F800000                                        ; +0x12, 0x403ede\nBX              LR                                                     ; +0x16, 0x403ee2", "xrefs": ["GJGarageLayer::getItems @ 0x405c58", "GJGarageLayer::setupSpecialPage @ 0x405ffc", "GJPathPage::init @ 0x58da88"], "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"}