*************************************************************
                             * Bu kodun bir decompile edilmiş halidir ve C/C++ dilinde  ..
                             *                                                            
                             * Kodda, bir fonksiyon `process_switch_default` tanımlanm  ..
                             *                                                            
                             * Fonksiyonun içinden, çeşitli switch-case blokları bulun  ..
                             *                                                            
                             * Kodun analizini yapmak için, şu adımları izleyebiliriz:     *
                             *                                                            
                             * 1. Fonksiyon `process_switch_default`'un parametreleri   ..
                             * 2. Switch-case bloklarının analiz edilmelidir. Her bloğ  ..
                             * 3. Fonksiyonun davranışını kontrol eden parametrelerin   ..
                             *                                                            
                             * Bu adımlar, fonksiyonun davranışını kontrol eden parame  ..
                             *************************************************************
                             undefined8  __stdcall  process_switch_default (undefined4 
                               assume linkreg = 0x0
             undefined8        r3:8           <RETURN>
             undefined4        r3:4           param_1
             int               r4:4           param_2
             undefined4 *      r5:4           param_3
             undefined8        r30:8          uVar10                                  XREF[1]:     00c7aa04 (W)   
             undefined4        Stack[0x4]:4   local_res4                              XREF[2]:     00c7a9f4 (W) , 
                                                                                                   00c7ac04 (R)   
             undefined4        Stack[-0x8]:4  local_8                                 XREF[2]:     00c7a9f0 (W) , 
                                                                                                   00c7ac08 (R)   
             undefined4        Stack[-0x20]:4 local_20                                XREF[1]:     00c7a9e4 (W)   
             undefined4        HASH:3f2fa5e   uVar2
             undefined4        HASH:3f449a4   uVar6
             undefined4        HASH:3f6bca7   uVar5
             undefined4        HASH:3f71059   uVar4
             undefined4        HASH:3f76b83   uVar1
             undefined4        HASH:3fc541f   uVar3
             undefined4        HASH:3fd748f   uVar9
             undefined4        HASH:3fd9f1d   uVar7
             undefined4        HASH:3ff6a1e   uVar8
                             process_switch_default                          XREF[2]:     FUN_00c7ae5c:00c7ae78 (c) , 
                                                                                          FUN_00c7b4c4:00c7b538 (c)   
        00c7a9e4 94  21  ff  e0    stwu       r1,local_20 (r1)
        00c7a9e8 7c  08  02  a6    mfspr      r0,LR
        00c7a9ec 2c  04  00  01    cmpwi      param_2 ,0x1
        00c7a9f0 bf  c1  00  18    stmw       r30 ,local_8 (r1)
        00c7a9f4 90  01  00  24    stw        r0,local_res4 (r1)
        00c7a9f8 7c  bf  2b  78    or         r31 ,param_3 ,param_3
        00c7a9fc 40  82  01  e8    bne        LAB_00c7abe4
        00c7aa00 54  6b  10  3a    rlwinm     r11 ,param_1 ,0x2 ,0x0 ,0x1d
        00c7aa04 3b  c0  00  01    li         uVar10 ,0x1
        00c7aa08 28  03  00  0d    cmplwi     param_1 ,0xd
        00c7aa0c 3d  8b  00  c8    addis      r12 ,r11 ,0xc8
        00c7aa10 41  81  01  cc    bgt        switchD_00c7aa1c::caseD_0
        00c7aa14 81  6c  aa  20    lwz        r11 ,-0x55e0 (r12 )=>switchD_00c7aa1c::switchdata  = 00c7abdc
        00c7aa18 7d  69  03  a6    mtspr      CTR ,r11
                             switchD_00c7aa1c::switchD
        00c7aa1c 4e  80  04  20    bctr
                             switchD_00c7aa1c::switchdataD_00c7aa20          XREF[1]:     process_switch_default:00c7aa14
        00c7aa20 00  c7  ab  dc    addr       switchD_00c7aa1c::caseD_0
        00c7aa24 00  c7  aa  58    addr       switchD_00c7aa1c::caseD_1
        00c7aa28 00  c7  ab  38    addr       switchD_00c7aa1c::caseD_2
        00c7aa2c 00  c7  ab  00    addr       switchD_00c7aa1c::caseD_3
        00c7aa30 00  c7  ab  1c    addr       switchD_00c7aa1c::caseD_4
        00c7aa34 00  c7  aa  ac    addr       switchD_00c7aa1c::caseD_5
        00c7aa38 00  c7  aa  e4    addr       switchD_00c7aa1c::caseD_6
        00c7aa3c 00  c7  aa  c8    addr       switchD_00c7aa1c::caseD_7
        00c7aa40 00  c7  ab  54    addr       switchD_00c7aa1c::caseD_8
        00c7aa44 00  c7  ab  bc    addr       switchD_00c7aa1c::caseD_9
        00c7aa48 00  c7  aa  74    addr       switchD_00c7aa1c::caseD_a
        00c7aa4c 00  c7  aa  90    addr       switchD_00c7aa1c::caseD_b
        00c7aa50 00  c7  ab  9c    addr       switchD_00c7aa1c::caseD_c
        00c7aa54 00  c7  ab  dc    addr       switchD_00c7aa1c::caseD_0
                             switchD_00c7aa1c::caseD_1                       XREF[2]:     00c7aa1c (j) , 00c7aa24 (*)   
        00c7aa58 3d  80  00  c8    lis        r12 ,0xc8
        00c7aa5c 39  8c  a6  a4    subi       r12 ,r12 ,0x595c
        00c7aa60 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_DAT_00c7a6a4                   = 00800000
        00c7aa64 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6a8                      = 00040000h
        00c7aa68 91  25  00  00    stw        r9=>DAT_00800000 ,0x0 (param_3 )                   = 16h
        00c7aa6c 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aa70 48  00  01  90    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_a                       XREF[2]:     00c7aa1c (j) , 00c7aa48 (*)   
        00c7aa74 3d  80  00  c8    lis        r12 ,0xc8
        00c7aa78 39  8c  a6  ac    subi       r12 ,r12 ,0x5954
        00c7aa7c 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_DAT_00c7a6ac                   = 008c0000
        00c7aa80 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6b0                      = 00040000h
        00c7aa84 91  25  00  00    stw        r9=>DAT_008c0000 ,0x0 (param_3 )                   = 0003h
        00c7aa88 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aa8c 48  00  01  74    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_b                       XREF[2]:     00c7aa1c (j) , 00c7aa4c (*)   
        00c7aa90 3d  80  00  c8    lis        r12 ,0xc8
        00c7aa94 39  8c  a6  b4    subi       r12 ,r12 ,0x594c
        00c7aa98 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_DAT_00c7a6b4                   = 00900000
        00c7aa9c 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6b8                      = 00040000h
        00c7aaa0 91  25  00  00    stw        r9=>DAT_00900000 ,0x0 (param_3 )
        00c7aaa4 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aaa8 48  00  01  58    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_5                       XREF[2]:     00c7aa1c (j) , 00c7aa34 (*)   
        00c7aaac 3d  80  00  c8    lis        r12 ,0xc8
        00c7aab0 39  8c  a6  bc    subi       r12 ,r12 ,0x5944
        00c7aab4 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_DAT_00c7a6bc                   = 00840000
        00c7aab8 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6c0                      = 00040000h
        00c7aabc 91  25  00  00    stw        r9=>DAT_00840000 ,0x0 (param_3 )                   = 30303200h
        00c7aac0 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aac4 48  00  01  3c    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_7                       XREF[2]:     00c7aa1c (j) , 00c7aa3c (*)   
        00c7aac8 3d  80  00  c8    lis        r12 ,0xc8
        00c7aacc 39  8c  a6  c4    subi       r12 ,r12 ,0x593c
        00c7aad0 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_DAT_00c7a6c4                   = 00880000
        00c7aad4 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6c8                      = 00040000h
        00c7aad8 91  25  00  00    stw        r9=>DAT_00880000 ,0x0 (param_3 )                   = FFh
        00c7aadc 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aae0 48  00  01  20    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_6                       XREF[2]:     00c7aa1c (j) , 00c7aa38 (*)   
        00c7aae4 3d  80  00  c8    lis        r12 ,0xc8
        00c7aae8 39  8c  a6  cc    subi       r12 ,r12 ,0x5934
        00c7aaec 81  2c  00  00    lwz        r9,0x0 (r12 )=>DAT_00c7a6cc
        00c7aaf0 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6d0                      = 00040000h
        00c7aaf4 91  25  00  00    stw        r9,0x0 (param_3 )
        00c7aaf8 91  45  00  04    stw        r10 =>DAT_00040000 ,0x4 (param_3 )
        00c7aafc 48  00  01  04    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_3                       XREF[2]:     00c7aa1c (j) , 00c7aa2c (*)   
        00c7ab00 3d  80  00  c8    lis        r12 ,0xc8
        00c7ab04 39  8c  a6  d4    subi       r12 ,r12 ,0x592c
        00c7ab08 81  2c  00  00    lwz        r9,0x0 (r12 )=>->00980000                         = 00980000
        00c7ab0c 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6d8                      = 00020000h
        00c7ab10 91  25  00  00    stw        r9=>00980000 ,0x0 (param_3 )                       = "220901 10:09:39 Type:ct  500k
        00c7ab14 91  45  00  04    stw        r10 ,0x4 (param_3 )
        00c7ab18 48  00  00  e8    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_4                       XREF[2]:     00c7aa1c (j) , 00c7aa30 (*)   
        00c7ab1c 3d  80  00  c8    lis        r12 ,0xc8
        00c7ab20 39  8c  a6  dc    subi       r12 ,r12 ,0x5924
        00c7ab24 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_LAB_00c7a6dc                   = 009c0000
        00c7ab28 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6e0                      = 00020000h
        00c7ab2c 91  25  00  00    stw        r9=>LAB_009c0000 ,0x0 (param_3 )
        00c7ab30 91  45  00  04    stw        r10 ,0x4 (param_3 )
        00c7ab34 48  00  00  cc    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_2                       XREF[2]:     00c7aa1c (j) , 00c7aa28 (*)   
        00c7ab38 3d  80  00  c8    lis        r12 ,0xc8
        00c7ab3c 39  8c  a6  e4    subi       r12 ,r12 ,0x591c
        00c7ab40 81  2c  00  00    lwz        r9,0x0 (r12 )=>PTR_LAB_00c7a6e4                   = 00a00000
        00c7ab44 81  4c  00  04    lwz        r10 ,0x4 (r12 )=>DAT_00c7a6e8                      = 00600000h
        00c7ab48 91  25  00  00    stw        r9=>LAB_00a00000 ,0x0 (param_3 )
        00c7ab4c 91  45  00  04    stw        r10 ,0x4 (param_3 )
        00c7ab50 48  00  00  b0    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_8                       XREF[2]:     00c7aa1c (j) , 00c7aa40 (*)   
        00c7ab54 48  00  13  d5    bl         FUN_00c7bf28                                     undefined FUN_00c7bf28()
        00c7ab58 3c  80  20  00    lis        param_2 ,0x2000
        00c7ab5c 7c  60  07  74    extsb      r0,param_1
        00c7ab60 38  84  00  00    addi       param_2 ,param_2 ,0x0
        00c7ab64 2f  00  00  01    cmpwi      cr6 ,r0,0x1
        00c7ab68 90  9f  00  00    stw        param_2 ,0x0 (r31 )
        00c7ab6c 3c  80  00  00    lis        param_2 ,0x0
        00c7ab70 38  84  00  00    addi       param_2 ,param_2 ,0x0
        00c7ab74 90  9f  00  04    stw        param_2 ,0x4 (r31 )
        00c7ab78 28  04  01  00    cmplwi     param_2 ,0x100
        00c7ab7c 40  81  00  18    ble        LAB_00c7ab94
        00c7ab80 2c  00  00  02    cmpwi      r0,0x2
        00c7ab84 4c  5a  13  82    cror       eq,4*cr6 +eq,eq
        00c7ab88 38  00  00  00    li         r0,0x0
        00c7ab8c 7f  de  00  9e    iseleq     uVar10 ,uVar10 ,r0,cr0
        00c7ab90 48  00  00  70    b          LAB_00c7ac00
                             LAB_00c7ab94                                    XREF[1]:     00c7ab7c (j)   
        00c7ab94 3b  c0  00  00    li         uVar10 ,0x0
        00c7ab98 48  00  00  68    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_c                       XREF[2]:     00c7aa1c (j) , 00c7aa50 (*)   
        00c7ab9c 3c  60  40  08    lis        param_1 ,0x4008
        00c7aba0 3c  80  40  08    lis        param_2 ,0x4008
        00c7aba4 38  63  8f  f8    subi       param_1 ,param_1 ,0x7008
        00c7aba8 38  84  9f  f8    subi       param_2 ,param_2 ,0x6008
        00c7abac 7c  03  20  50    subf       r0,param_1 ,param_2
        00c7abb0 90  65  00  00    stw        param_1 ,0x0 (param_3 )
        00c7abb4 90  05  00  04    stw        r0=>DAT_00001000 ,0x4 (param_3 )
        00c7abb8 48  00  00  48    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_9                       XREF[2]:     00c7aa1c (j) , 00c7aa44 (*)   
        00c7abbc 3c  80  40  08    lis        param_2 ,0x4008
        00c7abc0 3c  60  40  08    lis        param_1 ,0x4008
        00c7abc4 38  84  9f  f8    subi       param_2 ,param_2 ,0x6008
        00c7abc8 38  63  ff  f8    subi       param_1 ,param_1 ,0x8
        00c7abcc 7c  04  18  50    subf       r0,param_2 ,param_1
        00c7abd0 90  85  00  00    stw        param_2 ,0x0 (param_3 )
        00c7abd4 90  05  00  04    stw        r0=>DAT_00006000 ,0x4 (param_3 )
        00c7abd8 48  00  00  28    b          LAB_00c7ac00
                             switchD_00c7aa1c::caseD_d                       XREF[4]:     00c7aa10 (j) , 00c7aa1c (j) , 
                             switchD_00c7aa1c::caseD_0                                    00c7aa20 (*) , 00c7aa54 (*)   
        00c7abdc 38  80  02  42    li         param_2 ,0x242
        00c7abe0 48  00  00  08    b          LAB_00c7abe8
                             LAB_00c7abe4                                    XREF[1]:     00c7a9fc (j)   
        00c7abe4 38  80  02  48    li         param_2 ,0x248
                             LAB_00c7abe8                                    XREF[1]:     00c7abe0 (j)   
        00c7abe8 7c  65  07  74    extsb      param_3 ,param_1
        00c7abec 38  c0  00  00    li         r6,0x0
        00c7abf0 3c  60  00  c8    lis        param_1 ,0xc8
        00c7abf4 3b  c0  00  00    li         uVar10 ,0x0
        00c7abf8 38  63  a7  7c    subi       param_1 =>s_emal_mmap_00c7a77c ,param_1 ,0x5884    = "emal_mmap"
        00c7abfc 48  02  ae  f1    bl         FUN_00ca5aec                                     undefined FUN_00ca5aec()
                             -- Flow Override: CALL_RETURN (CALL_TERMINATOR)
                             LAB_00c7ac00                                    XREF[13]:    00c7aa70 (j) , 00c7aa8c (j) , 
                                                                                          00c7aaa8 (j) , 00c7aac4 (j) , 
                                                                                          00c7aae0 (j) , 00c7aafc (j) , 
                                                                                          00c7ab18 (j) , 00c7ab34 (j) , 
                                                                                          00c7ab50 (j) , 00c7ab90 (j) , 
                                                                                          00c7ab98 (j) , 00c7abb8 (j) , 
                                                                                          00c7abd8 (j)   
        00c7ac00 7f  c3  f3  78    or         param_1 ,uVar10 ,uVar10
        00c7ac04 80  01  00  24    lwz        r0,local_res4 (r1)
        00c7ac08 bb  c1  00  18    lmw        uVar10 ,local_8 (r1)
        00c7ac0c 7c  08  03  a6    mtspr      LR,r0
        00c7ac10 38  21  00  20    addi       r1,r1,0x20
        00c7ac14 4e  80  00  20    blr
convert to c code , variable and case onlyn hex code and write hex