## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# ARM Processor iOS (iPhone): Switch statements

Assembler code

    __text:00003B48                 STR     R3, [R4,#0xE8]
    __text:00003B4C                 LDR     R3, [R4,#0x38]
    __text:00003B50                 CMP     R3, #0x27       ; switch 40 cases
    __text:00003B54                 LDRLS   PC, [PC,R3,LSL#2] ; switch jump
    __text:00003B58                 B       def_3B54        ; jumptable 00003B54 default case, cases 2-6,8,11,12,15,16,20-22,27,32-38
    __text:00003B58 ; ---------------------------------------------------------------------------
    __text:00003B5C jpt_3B54        DCD loc_3C0C            ; jump table for switch statement
    __text:00003B5C                 DCD loc_3C0C
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C1C
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C1C
    __text:00003B5C                 DCD loc_3BFC
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C24
    __text:00003B5C                 DCD loc_3C2C
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C14
    __text:00003B5C                 DCD loc_3C2C
    __text:00003B5C                 DCD loc_3C34
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C14
    __text:00003B5C                 DCD loc_3C2C
    __text:00003B5C                 DCD loc_3C2C
    __text:00003B5C                 DCD loc_3C2C
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3C3C
    __text:00003B5C                 DCD loc_3C34
    __text:00003B5C                 DCD loc_3C34
    __text:00003B5C                 DCD loc_3C34
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD def_3B54
    __text:00003B5C                 DCD loc_3BFC