# Hex-Rays Decompiler Plugin Produces Incorrect Function Boundaries

**URL:** https://community.hex-rays.com/t/hex-rays-decompiler-plugin-produces-incorrect-function-boundaries/459
**Category:** IDA General
**Created:** [August 28, 2025, 8:15am UTC](https://community.hex-rays.com/t/hex-rays-decompiler-plugin-produces-incorrect-function-boundaries/459 "2025-08-28T08:15:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![demonguy](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@demonguy](https://community.hex-rays.com/u/demonguy)
#### Post date: [August 28, 2025, 8:15am UTC](https://community.hex-rays.com/t/hex-rays-decompiler-plugin-produces-incorrect-function-boundaries/459/1 "2025-08-28T08:15:13Z")

</div>

I’m statically analyzing a function `apple3dgs::savePly` in an iOS system library. The function is very large, but it seems Hex-Rays only recognizes the first few bytes, and the decompiled output is clearly incorrect. How can I fix this issue?

 ![1](https://us1.discourse-cdn.com/flex002/uploads/rays_hex/original/1X/8a8605099a4af39457cb1078e408f86c4dcbf1d6.jpeg)

 ![2](https://us1.discourse-cdn.com/flex002/uploads/rays_hex/original/1X/146dfd1ee3aba076e49d5d73bbe7c5b927ffe502.png)

---

<div class="post-metadata">

### Author: ![igor](https://sea2.discourse-cdn.com/flex002/user_avatar/community.hex-rays.com/igor/32/35_2.png) [@igor](https://community.hex-rays.com/u/igor)
#### Post date: [August 28, 2025, 8:28am UTC](https://community.hex-rays.com/t/hex-rays-decompiler-plugin-produces-incorrect-function-boundaries/459/2 "2025-08-28T08:28:41Z")

</div>

it looks like the `__gs_log` function is incorrectly marked as no-returning. See [Igor’s Tip of the Week #162: Where’s my code? The case of no-return call](https://hex-rays.com/blog/igors-tip-of-the-week-162-wheres-my-code-the-case-of-no-return-call) on how to fix this.

---

<div class="post-metadata">

### Author: ![demonguy](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@demonguy](https://community.hex-rays.com/u/demonguy)
#### Post date: [August 29, 2025, 8:18am UTC](https://community.hex-rays.com/t/hex-rays-decompiler-plugin-produces-incorrect-function-boundaries/459/3 "2025-08-29T08:18:33Z")

</div>

It worked. Thank you very much
