{"type": "func", "start": 5372395840, "end": 5372395932, "name": "GJItemIcon::scaleForType", "pseudocode": "// \n// GJItemIcon::scaleForType from 0x140384140 to 0x14038419c (92 bytes)\n// \n// 1 xrefs:\n// > GJGarageLayer::getItems @ 0x14037f2b2\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:06 +0000\n// \n\nfloat __fastcall GJItemIcon::scaleForType(int 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 0x140384140 to 0x14038419c (92 bytes)\n; \n; 1 xrefs:\n; > GJGarageLayer::getItems @ 0x14037f2b2\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:06 +0000\n; \ndec     ecx; switch 15 cases                                           ; +0x0, 0x140384140\ncmp     ecx, 0Eh                                                       ; +0x2, 0x140384142\nja      short def_14038415B; jumptable 000000014038415B default case, cases 2,3 ; +0x5, 0x140384145\nmovsxd  rax, ecx                                                       ; +0x7, 0x140384147\nlea     rdx, cs:140000000h                                             ; +0xa, 0x14038414a\nmov     ecx, ds:(jpt_14038415B - 140000000h)[rdx+rax*4]                ; +0x11, 0x140384151\nadd     rcx, rdx                                                       ; +0x18, 0x140384158\njmp     rcx; switch jump                                               ; +0x1b, 0x14038415b\nmovss   xmm0, cs:dword_140834FE8; jumptable 000000014038415B cases 1,7,10-12,15 ; +0x1d, 0x14038415d\nretn                                                                   ; +0x25, 0x140384165\nmovss   xmm0, cs:dword_140834F64; jumptable 000000014038415B cases 4,14 ; +0x26, 0x140384166\nretn                                                                   ; +0x2e, 0x14038416e\nmovss   xmm0, cs:dword_140834FCC; jumptable 000000014038415B case 5    ; +0x2f, 0x14038416f\nretn                                                                   ; +0x37, 0x140384177\nmovss   xmm0, cs:dword_140834FA8; jumptable 000000014038415B case 6    ; +0x38, 0x140384178\nretn                                                                   ; +0x40, 0x140384180\nmovss   xmm0, cs:dword_140834F94; jumptable 000000014038415B cases 8,9 ; +0x41, 0x140384181\nretn                                                                   ; +0x49, 0x140384189\nmovss   xmm0, cs:dword_140834FAC; jumptable 000000014038415B case 13   ; +0x4a, 0x14038418a\nretn                                                                   ; +0x52, 0x140384192\nmovss   xmm0, cs:flt_140835080; jumptable 000000014038415B default case, cases 2,3 ; +0x53, 0x140384193\nretn                                                                   ; +0x5b, 0x14038419b", "xrefs": ["GJGarageLayer::getItems @ 0x14037f2b2"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}