{"type": "func", "start": 5371311888, "end": 5371311980, "name": "GJItemIcon::scaleForType", "pseudocode": "// \n// GJItemIcon::scaleForType from 0x14027b710 to 0x14027b76c (92 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::getItems @ 0x14027694e\n// > GJGarageLayer::setupSpecialPage @ 0x140276f9c\n// > GJPathPage::init @ 0x14028658f\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  float result; // xmm0_4\n\n  switch ( a1 )\n  {\n    case 1:\n    case 7:\n    case 10:\n    case 11:\n    case 12:\n    case 15:\n      result = 0.80000001;\n      break;\n    case 4:\n    case 14:\n      result = 0.60000002;\n      break;\n    case 5:\n      result = 0.75;\n      break;\n    case 6:\n      result = 0.68000001;\n      break;\n    case 8:\n    case 9:\n      result = 0.64999998;\n      break;\n    case 13:\n      result = 0.69999999;\n      break;\n    default:\n      result = 1.0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; GJItemIcon::scaleForType from 0x14027b710 to 0x14027b76c (92 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::getItems @ 0x14027694e\n; > GJGarageLayer::setupSpecialPage @ 0x140276f9c\n; > GJPathPage::init @ 0x14028658f\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\ndec     ecx; switch 15 cases                                           ; +0x0, 0x14027b710\ncmp     ecx, 0Eh                                                       ; +0x2, 0x14027b712\nja      short def_14027B72B; jumptable 000000014027B72B default case, cases 2,3 ; +0x5, 0x14027b715\nmovsxd  rax, ecx                                                       ; +0x7, 0x14027b717\nlea     rdx, cs:140000000h                                             ; +0xa, 0x14027b71a\nmov     ecx, ds:(jpt_14027B72B - 140000000h)[rdx+rax*4]                ; +0x11, 0x14027b721\nadd     rcx, rdx                                                       ; +0x18, 0x14027b728\njmp     rcx; switch jump                                               ; +0x1b, 0x14027b72b\nmovss   xmm0, cs:dword_140622BA4; jumptable 000000014027B72B cases 1,7,10-12,15 ; +0x1d, 0x14027b72d\nretn                                                                   ; +0x25, 0x14027b735\nmovss   xmm0, cs:dword_140622B38; jumptable 000000014027B72B cases 4,14 ; +0x26, 0x14027b736\nretn                                                                   ; +0x2e, 0x14027b73e\nmovss   xmm0, cs:dword_140622B8C; jumptable 000000014027B72B case 5    ; +0x2f, 0x14027b73f\nretn                                                                   ; +0x37, 0x14027b747\nmovss   xmm0, cs:dword_140622B70; jumptable 000000014027B72B case 6    ; +0x38, 0x14027b748\nretn                                                                   ; +0x40, 0x14027b750\nmovss   xmm0, cs:dword_140622B5C; jumptable 000000014027B72B cases 8,9 ; +0x41, 0x14027b751\nretn                                                                   ; +0x49, 0x14027b759\nmovss   xmm0, cs:dword_140622B74; jumptable 000000014027B72B case 13   ; +0x4a, 0x14027b75a\nretn                                                                   ; +0x52, 0x14027b762\nmovss   xmm0, cs:flt_140622C24; jumptable 000000014027B72B default case, cases 2,3 ; +0x53, 0x14027b763\nretn                                                                   ; +0x5b, 0x14027b76b", "xrefs": ["GJGarageLayer::getItems @ 0x14027694e", "GJGarageLayer::setupSpecialPage @ 0x140276f9c", "GJPathPage::init @ 0x14028658f"], "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"}