// File: /workspace/github_c_makefile_star2_O0/containers[P]conmon/src/ctrl.c
// Function: process_terminal_ctrl_line
static gboolean process_terminal_ctrl_line(char *line)
{
	/* while the height and width won't be used in this function,
	 * we want to remove them from the buffer anyway
	 */
	int ctl_msg_type, height, width, ret = -1;
	ret = sscanf(line, "%d %d %d\n", &ctl_msg_type, &height, &width);
	if (ret != 3) {
		nwarn("Failed to sscanf message");
		return FALSE;
	}

	ndebugf("Message type: %d", ctl_msg_type);
	switch (ctl_msg_type) {
	case WIN_RESIZE_EVENT: {
		_cleanup_free_ char *hw_str = g_strdup_printf("%d %d\n", height, width);
		if (write(winsz_fd_w, hw_str, strlen(hw_str)) < 0) {
			nwarn("Failed to write to window resizing fd. A resize event may have been dropped");
			return FALSE;
		}
		break;
	}
	case REOPEN_LOGS_EVENT:
		reopen_log_files();
		break;
	default:
		nwarnf("Unknown message type: %d", ctl_msg_type);
		break;
	}
	return TRUE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rdi
leaq 0x574d(%rip), %rsi      # 0x123fb
leaq -0x14(%rbp), %rdx
leaq -0x18(%rbp), %rcx
leaq -0x1c(%rbp), %r8
movb $0x0, %al
callq 0x41d0
movl %eax, -0x20(%rbp)
cmpl $0x3, -0x20(%rbp)
je 0xcd37
leaq 0x97d3(%rip), %rax      # 0x164a4
cmpl $0x1, (%rax)
jb 0xcd2b
jmp 0xccd8
movq 0x9311(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
leaq 0x24ae(%rip), %rsi      # 0xf197
leaq 0x5675(%rip), %rdx      # 0x12365
movb $0x0, %al
callq 0x4830
leaq 0x1e24a(%rip), %rax     # 0x2af48
cmpl $0x0, (%rax)
je 0xcd27
leaq 0x1e236(%rip), %rax     # 0x2af40
movq (%rax), %rdx
movl $0x6, %edi
leaq 0x24b9(%rip), %rsi      # 0xf1d2
leaq 0x5645(%rip), %rcx      # 0x12365
movb $0x0, %al
callq 0x4120
jmp 0xcd29
jmp 0xcd2b
movl $0x0, -0x4(%rbp)
jmp 0xcef0
leaq 0x9766(%rip), %rax      # 0x164a4
cmpl $0x3, (%rax)
jb 0xcd90
jmp 0xcd45
movq 0x92a4(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
movl -0x14(%rbp), %edx
leaq 0x56ac(%rip), %rsi      # 0x12405
movb $0x0, %al
callq 0x4830
leaq 0x1e1e1(%rip), %rax     # 0x2af48
cmpl $0x0, (%rax)
je 0xcd8c
leaq 0x1e1cd(%rip), %rax     # 0x2af40
movq (%rax), %rdx
movl -0x14(%rbp), %ecx
movl $0x6, %edi
leaq 0x569e(%rip), %rsi      # 0x12423
movb $0x0, %al
callq 0x4120
jmp 0xcd8e
jmp 0xcd90
movl -0x14(%rbp), %eax
movl %eax, -0x30(%rbp)
subl $0x1, %eax
je 0xcdae
jmp 0xcd9d
movl -0x30(%rbp), %eax
subl $0x2, %eax
je 0xce87
jmp 0xce8e
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
leaq 0x5643(%rip), %rdi      # 0x123fe
movb $0x0, %al
callq 0x4380
movq %rax, -0x28(%rbp)
leaq 0x9f9b(%rip), %rax      # 0x16d68
movl (%rax), %eax
movl %eax, -0x3c(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rdi
callq 0x4360
movl -0x3c(%rbp), %edi
movq -0x38(%rbp), %rsi
movq %rax, %rdx
callq 0x4840
cmpq $0x0, %rax
jge 0xce6b
leaq 0x96a5(%rip), %rax      # 0x164a4
cmpl $0x1, (%rax)
jb 0xce5b
jmp 0xce06
movq 0x91e3(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
leaq 0x2380(%rip), %rsi      # 0xf197
leaq 0x562f(%rip), %rdx      # 0x1244d
movb $0x0, %al
callq 0x4830
leaq 0x1e11c(%rip), %rax     # 0x2af48
cmpl $0x0, (%rax)
je 0xce55
leaq 0x1e108(%rip), %rax     # 0x2af40
movq (%rax), %rdx
movl $0x6, %edi
leaq 0x238b(%rip), %rsi      # 0xf1d2
leaq 0x55ff(%rip), %rcx      # 0x1244d
movb $0x0, %al
callq 0x4120
jmp 0xce57
jmp 0xce59
jmp 0xce5b
movl $0x0, -0x4(%rbp)
movl $0x1, -0x2c(%rbp)
jmp 0xce72
movl $0x6, -0x2c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xd320
movl -0x2c(%rbp), %eax
subl $0x1, %eax
je 0xcef0
jmp 0xce85
jmp 0xcee9
callq 0x8330
jmp 0xcee9
leaq 0x960f(%rip), %rax      # 0x164a4
cmpl $0x1, (%rax)
jb 0xcee7
jmp 0xce9c
movq 0x914d(%rip), %rax      # 0x15ff0
movq (%rax), %rdi
movl -0x14(%rbp), %edx
leaq 0x55e9(%rip), %rsi      # 0x12499
movb $0x0, %al
callq 0x4830
leaq 0x1e08a(%rip), %rax     # 0x2af48
cmpl $0x0, (%rax)
je 0xcee3
leaq 0x1e076(%rip), %rax     # 0x2af40
movq (%rax), %rdx
movl -0x14(%rbp), %ecx
movl $0x6, %edi
leaq 0x55e3(%rip), %rsi      # 0x124bf
movb $0x0, %al
callq 0x4120
jmp 0xcee5
jmp 0xcee7
jmp 0xcee9
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)