// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
pushq $0x1
popq %rbp
cmpl $0x34, %edi
je 0x8219
cmpl $0x1, %edi
je 0x8206
cmpl $0x2, %edi
je 0x8202
testl %edi, %edi
jne 0x8235
pushq $0x5
popq %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x9358
pushq $0x4
jmp 0x8208
pushq $0x5
popq %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x9358
jmp 0x8259
movq 0x1b8(%r14), %rax
testq %rax, %rax
je 0x8259
btl $0x1e, %r15d
jb 0x826a
movb 0x1aa(%r14), %dl
jmp 0x827d
movq 0x20(%r14), %rax
testq %rax, %rax
je 0x8257
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x8257
movq 0x28(%r14), %rcx
movq %r12, %rsi
movq %r15, %rdx
callq *%rax
testl %eax, %eax
jne 0x8259
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andw $0x0, 0x1a8(%r14)
movb $0x0, 0x1aa(%r14)
xorl %edx, %edx
pushq $0x10
popq %rsi
movl %edx, %ecx
testb %cl, %cl
jne 0x8349
movl %r15d, %edi
andl $0x3fffffff, %edi       # imm = 0x3FFFFFFF
je 0x8349
movzbl (%r12), %ecx
leal -0x30(%rcx), %edi
cmpl $0x8, %edi
jae 0x82d8
addb $-0x30, %cl
movl %esi, %edi
shll %cl, %edi
orw 0x1a8(%r14), %di
xorl %ecx, %ecx
movw %di, 0x1a8(%r14)
incq %r12
leal -0x1(%r15), %edi
andl $0x3fffffff, %edi       # imm = 0x3FFFFFFF
andl $0xc0000000, %r15d      # imm = 0xC0000000
orl %edi, %r15d
jmp 0x8282
cmpl $0x3b, %ecx
je 0x8325
cmpl $0x73, %ecx
je 0x82fd
cmpl $0x70, %ecx
je 0x8315
cmpl $0x71, %ecx
je 0x8309
cmpl $0x63, %ecx
jne 0x8321
movl 0x1a8(%r14), %edi
orl $0x1, %edi
jmp 0x82b5
movl 0x1a8(%r14), %edi
orl $0x8, %edi
jmp 0x82b5
movl 0x1a8(%r14), %edi
orl $0x4, %edi
jmp 0x82b5
movl 0x1a8(%r14), %edi
orl $0x2, %edi
jmp 0x82b5
xorl %ecx, %ecx
jmp 0x82bf
movb $0x1, 0x1aa(%r14)
movb $0x1, %dl
cmpw $0x0, 0x1a8(%r14)
je 0x833e
movb $0x1, %cl
jmp 0x82bf
movw $0x18, %di
movb $0x1, %cl
jmp 0x82b7
testl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
je 0x8368
cmpb $0x1, %cl
jne 0x83a8
cmpb $0x3f, (%r12)
jne 0x83dc
movb $0x2, 0x1aa(%r14)
jmp 0x83b9
testl %r15d, %r15d
jns 0x8259
movq (%rax), %rax
testq %rax, %rax
je 0x8259
movzwl 0x1a8(%r14), %edi
movl $0x80000000, %esi       # imm = 0x80000000
leaq 0x40000000(%rsi), %rdx
cmpb $0x4, %cl
movq 0x1c0(%r14), %rcx
cmoveq %rsi, %rdx
xorl %esi, %esi
callq *%rax
jmp 0x8259
cmpb $0x5, %dl
je 0x8259
movzbl %dl, %ecx
cmpl $0x2, %ecx
jne 0x83ec
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x8259
movzwl 0x1a8(%r14), %edi
movq 0x1c0(%r14), %rsi
callq *%rax
jmp 0x8259
movb $0x3, 0x1aa(%r14)
andl $0x0, 0x1ac(%r14)
cmpq $0x0, (%rax)
je 0x8259
movl 0x1ac(%r14), %r13d
testl %r13d, %r13d
je 0x8419
movl %r13d, %ebx
shrl $0x18, %ebx
andl $0x3ffff, %r13d         # imm = 0x3FFFF
andl $0x0, 0x1ac(%r14)
jmp 0x841e
xorl %r13d, %r13d
xorl %ebx, %ebx
movq 0x1c8(%r14), %rsi
xorl %edi, %edi
movq 0x1d0(%r14), %rcx
subq %rdi, %rcx
cmpq $0x3, %rcx
jb 0x8606
movl %r15d, %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
je 0x8606
movzbl (%r12), %ecx
cmpl $0x3d, %ecx
jne 0x846e
cmpl $0x3, %ebx
je 0x8483
cmpl $0x2, %ebx
jne 0x84b5
movl %r13d, %ecx
shrl $0x4, %ecx
movb %cl, (%rsi)
incq %rsi
incq %rdi
jmp 0x84b5
leal -0x41(%rcx), %edx
cmpb $0x1a, %dl
jb 0x84da
leal -0x61(%rcx), %edx
cmpb $0x19, %dl
ja 0x84c9
addb $-0x47, %cl
jmp 0x84d8
movl %r13d, %ecx
shrl $0xa, %ecx
movb %cl, (%rsi)
movl %r13d, %ecx
shrl $0x2, %ecx
movb %cl, 0x1(%rsi)
addq $0x2, %rsi
addq $0x2, %rdi
jmp 0x84b5
incq %r12
leal -0x1(%r15), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r15d      # imm = 0xC0000000
orl %ecx, %r15d
xorl %ebx, %ebx
testl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
je 0x8522
cmpb $0x3d, (%r12)
je 0x849e
jmp 0x8522
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x855c
addb $0x4, %cl
movl %ecx, %edx
movzbl %dl, %ecx
movl %r13d, %eax
shll $0x6, %eax
orl %eax, %ecx
incl %ebx
incq %r12
leal -0x1(%r15), %edx
andl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
andl $0xc0000000, %r15d      # imm = 0xC0000000
orl %edx, %r15d
cmpl $0x4, %ebx
je 0x8508
movl %ecx, %r13d
jmp 0x8522
movl %eax, %edx
shrl $0x10, %edx
movb %dl, (%rsi)
movb %ah, 0x1(%rsi)
movb %cl, 0x2(%rsi)
addq $0x3, %rsi
addq $0x3, %rdi
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %rdi, %rcx
testl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
je 0x8545
movq 0x1d0(%r14), %rdx
subq %rcx, %rdx
movq %rcx, %rdi
cmpq $0x2, %rdx
ja 0x8427
movq 0x1c8(%r14), %rsi
movl $0x0, %edi
testq %rcx, %rcx
je 0x8427
jmp 0x8573
movb $0x3e, %dl
cmpl $0x2b, %ecx
je 0x84da
cmpl $0x2f, %ecx
jne 0x85d0
movb $0x3f, %dl
jmp 0x84da
movq 0x1b8(%r14), %rax
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
xorl %r8d, %r8d
cmpb $0x3, 0x1aa(%r14)
sete %r8b
shll $0x1e, %r8d
movl %r15d, %edx
andl $0xbfffffff, %edx       # imm = 0xBFFFFFFF
negl %edx
movl $0x0, %edx
movl $0x80000000, %edi       # imm = 0x80000000
cmovoq %rdi, %rdx
movzwl 0x1a8(%r14), %edi
orq %rcx, %rdx
orq %r8, %rdx
movq 0x1c0(%r14), %rcx
callq *(%rax)
movb $0x4, 0x1aa(%r14)
jmp 0x841e
movb $0x5, 0x1aa(%r14)
movq 0x1b8(%r14), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x8606
movzwl 0x1a8(%r14), %edi
movq 0x1c0(%r14), %rcx
movl $0x80000000, %edx       # imm = 0x80000000
addq $0x40000000, %rdx       # imm = 0x40000000
xorl %esi, %esi
callq *%rax
testl %ebx, %ebx
je 0x8259
shll $0x18, %ebx
orl %r13d, %ebx
movl %ebx, 0x1ac(%r14)
jmp 0x8259