# SPARC Sun ELF SO

Assembler code

```
.text:00003978
.text:00003978 ! =============== S U B R O U T I N E =======================================
.text:00003978
.text:00003978 ! Attributes: bp-based frame
.text:00003978
.text:00003978 strnicmp:                               ! CODE XREF: DoTheReads+48↓p
.text:00003978                 save    %sp, -0x70, %sp ! Alternative name is 'gcc2_compiled.'
.text:0000397C                 ba      loc_39B0
.text:00003980                 inc     -1, %i2
.text:00003984 ! ---------------------------------------------------------------------------
.text:00003984
.text:00003984 loc_3984:                               ! CODE XREF: strnicmp+3C↓j
.text:00003984                 call    _toupper
.text:00003988                 inc     %i0
.text:0000398C                 mov     %o0, %l0
.text:00003990                 ldsb    [%i1], %o0      ! c
.text:00003994                 call    _toupper
.text:00003998                 inc     %i1
.text:0000399C                 cmp     %l0, %o0
.text:000039A0                 be      loc_39B0
.text:000039A4                 inc     -1, %i2
.text:000039A8                 ba      locret_39C0
.text:000039AC                 mov     1, %i0
.text:000039B0 ! ---------------------------------------------------------------------------
.text:000039B0
.text:000039B0 loc_39B0:                               ! CODE XREF: strnicmp+4↑j
.text:000039B0                                         ! strnicmp+28↑j
.text:000039B0                 cmp     %i2, -1
.text:000039B4                 bne,a   loc_3984
.text:000039B8                 ldsb    [%i0], %o0
.text:000039BC                 mov     0, %i0
.text:000039C0
.text:000039C0 locret_39C0:                            ! CODE XREF: strnicmp+30↑j
.text:000039C0                 ret
.text:000039C4                 restore
.text:000039C4 ! End of function strnicmp
.text:000039C4
```


---

# Agent Instructions: 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:

```
GET https://docs.hex-rays.com/8.4/user-guide/disassembler/disassembly-gallery/sparc-sun-elf-so.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
