	.file	"997756.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[error]: cannot allocate master side of the pty"
	.align 8
.LC1:
	.string	"[error]: cannot allocate slave side of the pty"
	.text
	.type	allocate_pty_desc, @function
allocate_pty_desc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], -1
	mov	DWORD PTR -20[rbp], -1
	mov	QWORD PTR -16[rbp], 0
	call	getpt@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L2
	cmp	DWORD PTR -20[rbp], 0
	jns	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 0
	js	.L4
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L4:
	cmp	DWORD PTR -24[rbp], 0
	js	.L5
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L6
.L3:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ptsname@PLT
	mov	QWORD PTR -16[rbp], rax
.L7:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 0
	js	.L9
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L9:
	cmp	DWORD PTR -24[rbp], 0
	js	.L10
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	grantpt@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	unlockpt@PLT
	mov	edi, 44
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 39[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 40[rax], -1
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	allocate_pty_desc, .-allocate_pty_desc
	.type	child_setup_tty, @function
child_setup_tty:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	DWORD PTR 56[rax], 0
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L12
	mov	eax, -1
	jmp	.L14
.L12:
	mov	eax, DWORD PTR -80[rbp]
	and	ah, -3
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -33
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	or	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -5
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	xor	ah, ah
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -3
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	or	eax, 48
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -9
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, 1
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	or	eax, 2
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -59[rbp], 4
	mov	BYTE PTR -61[rbp], 0
	mov	BYTE PTR -60[rbp], 0
	mov	BYTE PTR -62[rbp], 28
	mov	BYTE PTR -63[rbp], 3
	mov	BYTE PTR -52[rbp], 0
	mov	BYTE PTR -53[rbp], 26
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 1
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
.L14:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	child_setup_tty, .-child_setup_tty
	.globl	__gnat_setup_communication
	.type	__gnat_setup_communication, @function
__gnat_setup_communication:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	allocate_pty_desc
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	__gnat_setup_communication, .-__gnat_setup_communication
	.globl	__gnat_setup_parent_communication
	.type	__gnat_setup_parent_communication, @function
__gnat_setup_parent_communication:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 40[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	__gnat_setup_parent_communication, .-__gnat_setup_parent_communication
	.globl	__gnat_setup_winsize
	.type	__gnat_setup_winsize, @function
__gnat_setup_winsize:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	WORD PTR -16[rbp], ax
	mov	eax, DWORD PTR -32[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	WORD PTR -12[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rdx, -16[rbp]
	mov	esi, 21524
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jle	.L22
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	mov	esi, 28
	mov	edi, eax
	call	kill@PLT
.L22:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	__gnat_setup_winsize, .-__gnat_setup_winsize
	.globl	__gnat_setup_child_communication
	.type	__gnat_setup_child_communication, @function
__gnat_setup_child_communication:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	call	getpid@PLT
	mov	DWORD PTR -8[rbp], eax
	call	setsid@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rdx], eax
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 0
	mov	esi, 21518
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L25
	mov	eax, -1
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	child_setup_tty
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 80
	mov	esi, 24
	mov	rdi, rax
	call	__gnat_setup_winsize
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2
	jle	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
.L27:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	setpgid@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	eax, DWORD PTR -8[rbp]
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	__gnat_setup_child_communication, .-__gnat_setup_child_communication
	.type	send_signal_via_characters, @function
send_signal_via_characters:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -11[rbp], 3
	mov	BYTE PTR -10[rbp], 28
	mov	BYTE PTR -9[rbp], 26
	cmp	DWORD PTR -28[rbp], 20
	je	.L29
	cmp	DWORD PTR -28[rbp], 20
	jg	.L28
	cmp	DWORD PTR -28[rbp], 2
	je	.L31
	cmp	DWORD PTR -28[rbp], 3
	je	.L32
	jmp	.L28
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -11[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L28
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -10[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
.L28:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	send_signal_via_characters, .-send_signal_via_characters
	.globl	__gnat_interrupt_process
	.type	__gnat_interrupt_process, @function
__gnat_interrupt_process:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	send_signal_via_characters
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	__gnat_interrupt_process, .-__gnat_interrupt_process
	.globl	__gnat_interrupt_pid
	.type	__gnat_interrupt_pid, @function
__gnat_interrupt_pid:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	__gnat_interrupt_pid, .-__gnat_interrupt_pid
	.globl	__gnat_terminate_process
	.type	__gnat_terminate_process, @function
__gnat_terminate_process:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 40[rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	__gnat_terminate_process, .-__gnat_terminate_process
	.globl	__gnat_tty_waitpid
	.type	__gnat_tty_waitpid, @function
__gnat_tty_waitpid:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	rcx, -12[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	__gnat_tty_waitpid, .-__gnat_tty_waitpid
	.globl	__gnat_tty_supported
	.type	__gnat_tty_supported, @function
__gnat_tty_supported:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	__gnat_tty_supported, .-__gnat_tty_supported
	.globl	__gnat_free_process
	.type	__gnat_free_process, @function
__gnat_free_process:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	__gnat_free_process, .-__gnat_free_process
	.globl	__gnat_send_header
	.type	__gnat_send_header, @function
__gnat_send_header:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	__gnat_send_header, .-__gnat_send_header
	.globl	__gnat_reset_tty
	.type	__gnat_reset_tty, @function
__gnat_reset_tty:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	child_setup_tty
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	__gnat_reset_tty, .-__gnat_reset_tty
	.globl	__gnat_new_tty
	.type	__gnat_new_tty, @function
__gnat_new_tty:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	allocate_pty_desc
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L51
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	child_setup_tty
.L51:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	__gnat_new_tty, .-__gnat_new_tty
	.globl	__gnat_close_tty
	.type	__gnat_close_tty, @function
__gnat_close_tty:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L55
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
.L55:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	js	.L57
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	close@PLT
.L57:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	__gnat_close_tty, .-__gnat_close_tty
	.globl	__gnat_tty_name
	.type	__gnat_tty_name, @function
__gnat_tty_name:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	__gnat_tty_name, .-__gnat_tty_name
	.globl	__gnat_tty_fd
	.type	__gnat_tty_fd, @function
__gnat_tty_fd:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	__gnat_tty_fd, .-__gnat_tty_fd
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"997756.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[error]: cannot allocate master side of the pty\000"
	.align	2
.LC1:
	.ascii	"[error]: cannot allocate slave side of the pty\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_pty_desc, %function
allocate_pty_desc:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	bl	getpt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L3
.L2:
	ldr	r0, .L11
	bl	puts
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L4
	ldr	r0, [fp, #-12]
	bl	close
.L4:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L5
	ldr	r0, [fp, #-16]
	bl	close
.L5:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L6
.L3:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L7
	ldr	r0, [fp, #-12]
	bl	ptsname
	str	r0, [fp, #-24]
.L7:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L9
	ldr	r0, [fp, #-12]
	bl	close
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L10
	ldr	r0, [fp, #-16]
	bl	close
.L10:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L6
.L8:
	ldr	r0, [fp, #-12]
	bl	grantpt
	ldr	r0, [fp, #-12]
	bl	unlockpt
	mov	r0, #44
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, #32
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #39]
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	allocate_pty_desc, .-allocate_pty_desc
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_setup_tty, %function
child_setup_tty:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r0, r3
	mov	r3, #60
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	tcgetattr
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L14
	mvn	r3, #0
	b	.L16
.L14:
	ldr	r3, [fp, #-68]
	bic	r3, r3, #512
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	bic	r3, r3, #32
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	orr	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #4
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #65280
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #2
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	orr	r3, r3, #48
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #8
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	orr	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	orr	r3, r3, #2
	str	r3, [fp, #-56]
	mov	r3, #4
	strb	r3, [fp, #-47]
	mov	r3, #0
	strb	r3, [fp, #-49]
	mov	r3, #0
	strb	r3, [fp, #-48]
	mov	r3, #28
	strb	r3, [fp, #-50]
	mov	r3, #3
	strb	r3, [fp, #-51]
	mov	r3, #0
	strb	r3, [fp, #-40]
	mov	r3, #26
	strb	r3, [fp, #-41]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-80]
	bl	tcsetattr
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.size	child_setup_tty, .-child_setup_tty
	.align	2
	.global	__gnat_setup_communication
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_setup_communication, %function
__gnat_setup_communication:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	allocate_pty_desc
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_setup_communication, .-__gnat_setup_communication
	.align	2
	.global	__gnat_setup_parent_communication
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_setup_parent_communication, %function
__gnat_setup_parent_communication:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #40]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__gnat_setup_parent_communication, .-__gnat_setup_parent_communication
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__gnat_setup_winsize
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_setup_winsize, %function
__gnat_setup_winsize:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, fp, #16
	ldr	r1, .L27+4
	mov	r0, r3
	bl	ioctl
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	ble	.L26
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #40]
	mov	r1, #28
	mov	r0, r3
	bl	kill
.L26:
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC3
	.word	21524
	.size	__gnat_setup_winsize, .-__gnat_setup_winsize
	.align	2
	.global	__gnat_setup_child_communication
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_setup_child_communication, %function
__gnat_setup_child_communication:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	bl	getpid
	str	r0, [fp, #-12]
	bl	setsid
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L30
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	mov	r2, #0
	mov	r1, #2
	mov	r0, r3
	bl	open
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L30:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, #0
	ldr	r1, .L34
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L31
	mvn	r3, #0
	b	.L32
.L31:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	child_setup_tty
	mov	r2, #80
	mov	r1, #24
	ldr	r0, [fp, #-16]
	bl	__gnat_setup_winsize
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, #2
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	ble	.L33
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
.L33:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	setpgid
	ldr	r1, [fp, #-12]
	mov	r0, #0
	bl	tcsetpgrp
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	execvp
	ldr	r3, [fp, #-12]
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	21518
	.size	__gnat_setup_child_communication, .-__gnat_setup_child_communication
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_signal_via_characters, %function
send_signal_via_characters:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #3
	strb	r3, [fp, #-11]
	mov	r3, #28
	strb	r3, [fp, #-10]
	mov	r3, #26
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-20]
	cmp	r3, #20
	beq	.L37
	ldr	r3, [fp, #-20]
	cmp	r3, #20
	bgt	.L36
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L39
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	beq	.L40
	b	.L36
.L39:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r1, fp, #11
	mov	r2, #1
	mov	r0, r3
	bl	write
	b	.L36
.L40:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r1, fp, #10
	mov	r2, #1
	mov	r0, r3
	bl	write
	b	.L36
.L37:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r1, fp, #9
	mov	r2, #1
	mov	r0, r3
	bl	write
	nop
.L36:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC4
	.size	send_signal_via_characters, .-send_signal_via_characters
	.align	2
	.global	__gnat_interrupt_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_interrupt_process, %function
__gnat_interrupt_process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	send_signal_via_characters
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_interrupt_process, .-__gnat_interrupt_process
	.align	2
	.global	__gnat_interrupt_pid
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_interrupt_pid, %function
__gnat_interrupt_pid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	mov	r1, #2
	mov	r0, r3
	bl	kill
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_interrupt_pid, .-__gnat_interrupt_pid
	.align	2
	.global	__gnat_terminate_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_terminate_process, %function
__gnat_terminate_process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #40]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_terminate_process, .-__gnat_terminate_process
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__gnat_tty_waitpid
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_tty_waitpid, %function
__gnat_tty_waitpid:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	sub	r1, fp, #12
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC5
	.size	__gnat_tty_waitpid, .-__gnat_tty_waitpid
	.align	2
	.global	__gnat_tty_supported
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_tty_supported, %function
__gnat_tty_supported:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__gnat_tty_supported, .-__gnat_tty_supported
	.align	2
	.global	__gnat_free_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_free_process, %function
__gnat_free_process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_free_process, .-__gnat_free_process
	.align	2
	.global	__gnat_send_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_send_header, %function
__gnat_send_header:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__gnat_send_header, .-__gnat_send_header
	.align	2
	.global	__gnat_reset_tty
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_reset_tty, %function
__gnat_reset_tty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	child_setup_tty
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_reset_tty, .-__gnat_reset_tty
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__gnat_new_tty
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_new_tty, %function
__gnat_new_tty:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r0, r3
	bl	allocate_pty_desc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	child_setup_tty
.L63:
	ldr	r3, [fp, #-16]
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC6
	.size	__gnat_new_tty, .-__gnat_new_tty
	.align	2
	.global	__gnat_close_tty
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_close_tty, %function
__gnat_close_tty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L69
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
.L69:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	blt	.L71
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
.L71:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	__gnat_close_tty, .-__gnat_close_tty
	.align	2
	.global	__gnat_tty_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_tty_name, %function
__gnat_tty_name:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__gnat_tty_name, .-__gnat_tty_name
	.align	2
	.global	__gnat_tty_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	__gnat_tty_fd, %function
__gnat_tty_fd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__gnat_tty_fd, .-__gnat_tty_fd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
