// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_str_delete_runes
NK_API void
nk_str_delete_runes(struct nk_str *s, int pos, int len)
{
    char *temp;
    nk_rune unicode;
    char *begin;
    char *end;
    int unused;

    NK_ASSERT(s);
    NK_ASSERT(s->len >= pos + len);
    if (s->len < pos + len)
        len = NK_CLAMP(0, (s->len - pos), s->len);
    if (!len) return;

    temp = (char *)s->buffer.memory.ptr;
    begin = nk_str_at_rune(s, pos, &unicode, &unused);
    if (!begin) return;
    s->buffer.memory.ptr = begin;
    end = nk_str_at_rune(s, len, &unicode, &unused);
    s->buffer.memory.ptr = temp;
    if (!end) return;
    nk_str_delete_chars(s, (int)(begin - temp), (int)(end - begin));
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movl %edx, 0x38(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x3166c
movq 0x939b0(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x7fd56(%rip), %rsi     # 0xb13a0
leaq 0x7fd6d(%rip), %rdx     # 0xb13be
movl $0x224f, %ecx           # imm = 0x224F
movb $0x0, %al
callq 0x13ec0
movq 0x9398c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x3166e
jmp 0x31670
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
movl 0x3c(%rsp), %ecx
addl 0x38(%rsp), %ecx
cmpl %ecx, %eax
jge 0x316b7
movq 0x93965(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x7fd0b(%rip), %rsi     # 0xb13a0
leaq 0x7fd22(%rip), %rdx     # 0xb13be
movl $0x2250, %ecx           # imm = 0x2250
movb $0x0, %al
callq 0x13ec0
movq 0x93941(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x316b9
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
movl 0x3c(%rsp), %ecx
addl 0x38(%rsp), %ecx
cmpl %ecx, %eax
jge 0x3175a
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
subl 0x3c(%rsp), %eax
movq 0x40(%rsp), %rcx
cmpl 0x78(%rcx), %eax
jge 0x316f9
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
subl 0x3c(%rsp), %eax
movl %eax, 0x10(%rsp)
jmp 0x31705
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
cmpl $0x0, %eax
jge 0x31716
xorl %eax, %eax
movl %eax, 0xc(%rsp)
jmp 0x31752
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
subl 0x3c(%rsp), %eax
movq 0x40(%rsp), %rcx
cmpl 0x78(%rcx), %eax
jge 0x3173e
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
subl 0x3c(%rsp), %eax
movl %eax, 0x8(%rsp)
jmp 0x3174a
movq 0x40(%rsp), %rax
movl 0x78(%rax), %eax
movl %eax, 0x8(%rsp)
movl 0x8(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movl %eax, 0x38(%rsp)
cmpl $0x0, 0x38(%rsp)
jne 0x31766
jmp 0x31806
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %esi
leaq 0x2c(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0x13430
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x3179b
jmp 0x31806
movq 0x20(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x40(%rsp), %rdi
movl 0x38(%rsp), %esi
leaq 0x2c(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0x13430
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x40(%rax)
cmpq $0x0, 0x18(%rsp)
jne 0x317de
jmp 0x31806
movq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
subq %rcx, %rax
movl %eax, %esi
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq %rcx, %rax
movl %eax, %edx
callq 0x139e0
addq $0x48, %rsp
retq
nopl (%rax,%rax)