{"type": "func", "start": 471120, "end": 471278, "name": "sub_73050", "pseudocode": "// \n// sub_73050 from 0x73050 to 0x730ee (158 bytes)\n// \n// 3 xrefs:\n// > sub_737F0 @ 0x73998\n// > sub_73AD8 @ 0x74780\n// > sub_73AD8 @ 0x749fe\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\nint __fastcall sub_73050(__int64 *a1)\n{\n  int v1; // r2\n  int v3; // r1\n  __int64 v4; // kr08_8\n  unsigned int v5; // r0\n  char v6; // r1\n  unsigned int v7; // r0\n  __int16 v8; // r2\n  bool v9; // nf\n  char v10; // r2\n  unsigned int v11; // r0\n  int v12; // r0\n\n  v1 = *((unsigned __int8 *)a1 + 263);\n  v3 = *((unsigned __int8 *)a1 + 230);\n  v4 = *a1;\n  v5 = 255;\n  switch ( v1 )\n  {\n    case 0:\n      v5 = byte_E8004[v3 & 0x1F];\n      break;\n    case 1:\n      v5 = (8 * v3) ^ ((unsigned int)(char)v3 >> 7);\n      goto LABEL_6;\n    case 2:\n      break;\n    case 3:\n      LOBYTE(v5) = sub_4F410((int *)(v4 + 2460));\n      LOBYTE(v3) = *((_BYTE *)a1 + 230);\nLABEL_6:\n      v5 = (unsigned __int8)v5;\n      break;\n    default:\n      v5 = 0;\n      break;\n  }\n  v6 = v3 + *((_BYTE *)a1 + 231);\n  v7 = v5 * *((unsigned __int8 *)a1 + 232);\n  if ( v6 > 31 )\n    v6 -= 64;\n  v8 = *(_WORD *)(v4 + 2418);\n  *((_BYTE *)a1 + 230) = v6;\n  v9 = (v8 & 0x10) != 0;\n  v10 = 2;\n  v11 = v7 >> 7;\n  if ( !v9 )\n    v10 = 1;\n  v12 = v11 << v10;\n  if ( v6 > -1 )\n    v12 = -v12;\n  *(_DWORD *)(HIDWORD(v4) + 56) += v12;\n  *(_BYTE *)(HIDWORD(v4) + 36) |= 1u;\n  return 0;\n}", "assembly": "; \n; sub_73050 from 0x73050 to 0x730ee (158 bytes)\n; \n; 3 xrefs:\n; > sub_737F0 @ 0x73998\n; > sub_73AD8 @ 0x74780\n; > sub_73AD8 @ 0x749fe\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            {R4-R7,LR}                                             ; +0x0, 0x73050\nADD             R7, SP, #0xC                                           ; +0x2, 0x73052\nPUSH.W          {R11}                                                  ; +0x4, 0x73054\nLDRB.W          R2, [R0,#0x107]                                        ; +0x8, 0x73058\nMOV             R4, R0                                                 ; +0xc, 0x7305c\nLDRB.W          R1, [R0,#0xE6]                                         ; +0xe, 0x7305e\nLDRD.W          R6, R5, [R0]                                           ; +0x12, 0x73062\nCMP             R2, #3; switch 4 cases                                 ; +0x16, 0x73066\nBHI             def_7306C; jumptable 0007306C default case             ; +0x18, 0x73068\nMOVS            R0, #0xFF                                              ; +0x1a, 0x7306a\nTBB.W           [PC,R2]; switch jump                                   ; +0x1c, 0x7306c\nDCB 2; jump table for switch statement                                 ; +0x20, 0x73070\nDCB 0xB                                                                ; +0x21, 0x73071\nDCB 0x17                                                               ; +0x22, 0x73072\nDCB 0x10                                                               ; +0x23, 0x73073\nLDR             R2, =(off_E6220 - 0x7307E); jumptable 0007306C case 0  ; +0x24, 0x73074\nAND.W           R0, R1, #0x1F                                          ; +0x26, 0x73076\nADD             R2, PC; off_E6220                                      ; +0x2a, 0x7307a\nLDR             R2, [R2]; byte_E8004                                   ; +0x2c, 0x7307c\nLDRB            R0, [R2,R0]                                            ; +0x2e, 0x7307e\nB               loc_7309E; jumptable 0007306C case 2                   ; +0x30, 0x73080\nMOVS            R0, #0; jumptable 0007306C default case                ; +0x32, 0x73082\nB               loc_7309E; jumptable 0007306C case 2                   ; +0x34, 0x73084\nSXTB            R0, R1; jumptable 0007306C case 1                      ; +0x36, 0x73086\nLSLS            R2, R1, #3                                             ; +0x38, 0x73088\nEOR.W           R0, R2, R0,LSR#7                                       ; +0x3a, 0x7308a\nB               loc_7309C                                              ; +0x3e, 0x7308e\nADDW            R0, R6, #0x99C; jumptable 0007306C case 3              ; +0x40, 0x73090\nBL              sub_4F410                                              ; +0x44, 0x73094\nLDRB.W          R1, [R4,#0xE6]                                         ; +0x48, 0x73098\nUXTB            R0, R0                                                 ; +0x4c, 0x7309c\nLDRB.W          R2, [R4,#0xE7]; jumptable 0007306C case 2              ; +0x4e, 0x7309e\nLDRB.W          R3, [R4,#0xE8]                                         ; +0x52, 0x730a2\nADD             R1, R2                                                 ; +0x56, 0x730a6\nMULS            R0, R3                                                 ; +0x58, 0x730a8\nSXTB            R2, R1                                                 ; +0x5a, 0x730aa\nCMP             R2, #0x1F                                              ; +0x5c, 0x730ac\nIT GT                                                                  ; +0x5e, 0x730ae\nSUBGT           R1, #0x40 ; '@'                                        ; +0x60, 0x730b0\nLDRH.W          R2, [R6,#0x972]                                        ; +0x62, 0x730b2\nSTRB.W          R1, [R4,#0xE6]                                         ; +0x66, 0x730b6\nSXTB            R1, R1                                                 ; +0x6a, 0x730ba\nLSLS            R2, R2, #0x1B                                          ; +0x6c, 0x730bc\nMOV.W           R2, #2                                                 ; +0x6e, 0x730be\nMOV.W           R0, R0,LSR#7                                           ; +0x72, 0x730c2\nIT PL                                                                  ; +0x76, 0x730c6\nMOVPL           R2, #1                                                 ; +0x78, 0x730c8\nLSLS            R0, R2                                                 ; +0x7a, 0x730ca\nCMP.W           R1, #0xFFFFFFFF                                        ; +0x7c, 0x730cc\nIT GT                                                                  ; +0x80, 0x730d0\nNEGGT           R0, R0                                                 ; +0x82, 0x730d2\nLDR             R1, [R5,#0x38]                                         ; +0x84, 0x730d4\nADD             R0, R1                                                 ; +0x86, 0x730d6\nSTR             R0, [R5,#0x38]                                         ; +0x88, 0x730d8\nLDRB.W          R0, [R5,#0x24]                                         ; +0x8a, 0x730da\nORR.W           R0, R0, #1                                             ; +0x8e, 0x730de\nSTRB.W          R0, [R5,#0x24]                                         ; +0x92, 0x730e2\nMOVS            R0, #0                                                 ; +0x96, 0x730e6\nPOP.W           {R11}                                                  ; +0x98, 0x730e8\nPOP             {R4-R7,PC}                                             ; +0x9c, 0x730ec", "xrefs": ["sub_737F0 @ 0x73998", "sub_73AD8 @ 0x74780", "sub_73AD8 @ 0x749fe"], "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"}