// File: /workspace/github_c_makefile_star2_O3/neovim[P]libvterm/src/state.c
// Function: on_osc
static int on_osc(int command, VTermStringFragment frag, void *user)
{
  VTermState *state = user;

  switch(command) {
    case 0:
      settermprop_string(state, VTERM_PROP_ICONNAME, frag);
      settermprop_string(state, VTERM_PROP_TITLE, frag);
      return 1;

    case 1:
      settermprop_string(state, VTERM_PROP_ICONNAME, frag);
      return 1;

    case 2:
      settermprop_string(state, VTERM_PROP_TITLE, frag);
      return 1;

    case 52:
      if(state->selection.callbacks)
        osc_selection(state, frag);

      return 1;

    default:
      if(state->fallbacks && state->fallbacks->osc)
        if((*state->fallbacks->osc)(command, frag, state->fbdata))
          return 1;
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
cmpl $0x1, %edi
jg 0x963c
testl %edi, %edi
je 0x96a7
cmpl $0x1, %edi
jne 0x9675
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x98a9
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x98a9
movq 0x10(%rbx), %rdx
leaq 0x8(%rsp), %rsi
movl $0x5, %edi
jmp 0x98a7
cmpl $0x2, %edi
je 0x96ed
cmpl $0x34, %edi
jne 0x9675
movq 0x1b8(%rbx), %rax
movl $0x1, %ebp
testq %rax, %rax
je 0x98ae
btl $0x1e, %r14d
jb 0x9709
movb 0x1aa(%rbx), %cl
jmp 0x971b
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x96a0
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x96a0
movq 0x28(%rbx), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq *%rax
movl $0x1, %ebp
testl %eax, %eax
jne 0x98ae
xorl %ebp, %ebp
jmp 0x98ae
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x98a9
movq 0x38(%rax), %rcx
testq %rcx, %rcx
je 0x9886
movq 0x10(%rbx), %rdx
leaq 0x8(%rsp), %r12
movl $0x5, %edi
movq %r12, %rsi
callq *%rcx
movq 0x8(%rbx), %rax
movq %r15, (%r12)
movq %r14, 0x8(%r12)
jmp 0x96fb
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x8(%rbx), %rax
testq %rax, %rax
jne 0x9890
jmp 0x98a9
movw $0x0, 0x1a8(%rbx)
movb $0x0, 0x1aa(%rbx)
xorl %ecx, %ecx
testb %cl, %cl
setne %dl
testl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
sete %sil
orb %dl, %sil
jne 0x9801
incq %r15
movzbl -0x1(%r15), %ecx
cmpl $0x62, %ecx
jg 0x9781
leal -0x30(%rcx), %edx
cmpl $0x8, %edx
jae 0x97c6
addb $-0x30, %cl
movl $0x10, %edx
shll %cl, %edx
orw 0x1a8(%rbx), %dx
movw %dx, 0x1a8(%rbx)
leal -0x1(%r14), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r14d      # imm = 0xC0000000
orl %ecx, %r14d
incq %r15
testl %ecx, %ecx
jne 0x9737
jmp 0x9850
cmpl $0x70, %ecx
jg 0x979b
cmpl $0x63, %ecx
je 0x97b0
cmpl $0x70, %ecx
jne 0x9761
movl 0x1a8(%rbx), %edx
orl $0x2, %edx
jmp 0x975a
cmpl $0x71, %ecx
je 0x97bb
cmpl $0x73, %ecx
jne 0x9761
movl 0x1a8(%rbx), %edx
orl $0x8, %edx
jmp 0x975a
movl 0x1a8(%rbx), %edx
orl $0x1, %edx
jmp 0x975a
movl 0x1a8(%rbx), %edx
orl $0x4, %edx
jmp 0x975a
cmpl $0x3b, %ecx
jne 0x9761
movb $0x1, 0x1aa(%rbx)
cmpw $0x0, 0x1a8(%rbx)
jne 0x97e5
movw $0x18, 0x1a8(%rbx)
leal -0x1(%r14), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r14d      # imm = 0xC0000000
orl %ecx, %r14d
testl %ecx, %ecx
jne 0x9824
movb $0x1, %cl
jmp 0x9852
testl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
je 0x9852
cmpb $0x5, %cl
je 0x98ae
movzbl %cl, %ecx
cmpl $0x2, %ecx
je 0x9835
cmpl $0x1, %ecx
jne 0x98d0
cmpb $0x3f, (%r15)
jne 0x98bf
movb $0x2, 0x1aa(%rbx)
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x98ae
movzwl 0x1a8(%rbx), %edi
movq 0x1c0(%rbx), %rsi
callq *%rax
jmp 0x98ae
xorl %ecx, %ecx
testl %r14d, %r14d
jns 0x98ae
movq (%rax), %rax
testq %rax, %rax
je 0x98ae
movzwl 0x1a8(%rbx), %edi
movl $0x80000000, %esi       # imm = 0x80000000
leaq 0x40000000(%rsi), %rdx
cmpb $0x4, %cl
movq 0x1c0(%rbx), %rcx
cmoveq %rsi, %rdx
xorl %esi, %esi
callq *%rax
jmp 0x98ae
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x98a9
movq 0x10(%rbx), %rdx
leaq 0x8(%rsp), %rsi
movl $0x4, %edi
callq *%rax
movl $0x1, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x3, 0x1aa(%rbx)
movl $0x0, 0x1ac(%rbx)
cmpq $0x0, (%rax)
je 0x98ae
movl 0x1ac(%rbx), %r12d
testl %r12d, %r12d
je 0x98fc
movl %r12d, %r13d
shrl $0x18, %r13d
andl $0x3ffff, %r12d         # imm = 0x3FFFF
movl $0x0, 0x1ac(%rbx)
jmp 0x9902
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq $0x3, 0x1d0(%rbx)
jb 0x9af6
movl %r14d, %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
je 0x9af6
movq 0x1c8(%rbx), %rsi
xorl %r9d, %r9d
movzbl (%r15), %ecx
cmpl $0x3d, %ecx
jne 0x994d
cmpl $0x3, %r13d
je 0x9962
cmpl $0x2, %r13d
jne 0x997b
movl %r12d, %ecx
shrl $0x4, %ecx
movb %cl, (%rsi)
incq %rsi
incq %r9
jmp 0x997b
leal -0x41(%rcx), %edx
cmpb $0x1a, %dl
jb 0x99bb
leal -0x61(%rcx), %edx
cmpb $0x19, %dl
ja 0x99aa
addb $-0x47, %cl
jmp 0x99b9
movl %r12d, %ecx
shrl $0xa, %ecx
movb %cl, (%rsi)
movl %r12d, %ecx
shrl $0x2, %ecx
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
addq $0x2, %r9
xorl %r13d, %r13d
testl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
je 0x9a06
cmpb $0x3d, (%r15)
jne 0x9a06
incq %r15
leal -0x1(%r14), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r14d      # imm = 0xC0000000
orl %ecx, %r14d
testl %ecx, %ecx
jne 0x9987
jmp 0x9a06
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x9aab
addb $0x4, %cl
movl %ecx, %edx
movzbl %dl, %ecx
movl %r12d, %eax
shll $0x6, %eax
orl %eax, %ecx
incl %r13d
incq %r15
leal -0x1(%r14), %edx
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r14d      # imm = 0xC0000000
orl %edx, %r14d
cmpl $0x4, %r13d
je 0x99eb
movl %ecx, %r12d
jmp 0x9a06
movl %eax, %edx
shrl $0x10, %edx
movb %dl, (%rsi)
movb %ah, 0x1(%rsi)
movb %cl, 0x2(%rsi)
addq $0x3, %rsi
addq $0x3, %r9
xorl %r12d, %r12d
xorl %r13d, %r13d
testl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
je 0x9a22
movq 0x1d0(%rbx), %rcx
movq %rcx, %rdx
subq %r9, %rdx
cmpq $0x2, %rdx
ja 0x9a93
movq 0x1c8(%rbx), %rsi
testq %r9, %r9
je 0x9a89
movq 0x1b8(%rbx), %r8
andl $0x3fffffff, %r9d       # imm = 0x3FFFFFFF
xorl %ecx, %ecx
cmpb $0x3, 0x1aa(%rbx)
sete %cl
shll $0x1e, %ecx
movl %r14d, %edx
andl $0xbfffffff, %edx       # imm = 0xBFFFFFFF
negl %edx
movl $0x0, %edx
movl $0x80000000, %eax       # imm = 0x80000000
cmovoq %rax, %rdx
movzwl 0x1a8(%rbx), %edi
orq %r9, %rdx
orq %rcx, %rdx
movq 0x1c0(%rbx), %rcx
callq *(%r8)
movb $0x4, 0x1aa(%rbx)
movq 0x1c8(%rbx), %rsi
movq 0x1d0(%rbx), %rcx
xorl %r9d, %r9d
testl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
je 0x9af6
subq %r9, %rcx
cmpq $0x2, %rcx
ja 0x9928
jmp 0x9af6
movb $0x3e, %dl
cmpl $0x2b, %ecx
je 0x99bb
cmpl $0x2f, %ecx
jne 0x9ac2
movb $0x3f, %dl
jmp 0x99bb
movb $0x5, 0x1aa(%rbx)
movq 0x1b8(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x9af6
movzwl 0x1a8(%rbx), %edi
movq 0x1c0(%rbx), %rcx
movl $0x80000000, %edx       # imm = 0x80000000
addq $0x40000000, %rdx       # imm = 0x40000000
xorl %esi, %esi
callq *%rax
testl %r13d, %r13d
je 0x98ae
shll $0x18, %r13d
orl %r12d, %r13d
movl %r13d, 0x1ac(%rbx)
jmp 0x98ae