> For the complete documentation index, see [llms.txt](https://docs.hex-rays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hex-rays.com/ida-9.3/core/disassembler/disassembly-gallery/arm-processor-ios-iphone-switch-statements.md).

# 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
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hex-rays.com/ida-9.3/core/disassembler/disassembly-gallery/arm-processor-ios-iphone-switch-statements.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
