	.file	"extr_go32-nat.c_go32_terminal_ours.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot redirect standard handles for debugger: %s."
	.text
	.p2align 4
	.type	go32_terminal_ours, @function
go32_terminal_ours:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR terminal_is_ours[rip]
	test	eax, eax
	je	.L10
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	edi, edi
	xor	esi, esi
	call	device_mode@PLT
	lea	rdi, child_cmd[rip]
	mov	DWORD PTR terminal_is_ours[rip], 1
	cmp	eax, -1
	mov	DWORD PTR inf_terminal_mode[rip], eax
	mov	QWORD PTR errno[rip], 0
	setne	al
	movzx	eax, al
	mov	DWORD PTR inf_mode_valid[rip], eax
	call	redir_to_debugger@PLT
	cmp	eax, -1
	je	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, child_cmd[rip]
	call	redir_to_child@PLT
	mov	rdi, QWORD PTR errno[rip]
	call	safe_strerror@PLT
	lea	rdi, .LC0[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	mov	esi, eax
	jmp	error@PLT
	.cfi_endproc
.LFE0:
	.size	go32_terminal_ours, .-go32_terminal_ours
	.comm	terminal_is_ours,4,4
	.comm	inf_terminal_mode,4,4
	.comm	inf_mode_valid,4,4
	.comm	errno,8,8
	.comm	child_cmd,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_go32-nat.c_go32_terminal_ours.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot redirect standard handles for debugger: %s.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	go32_terminal_ours, %function
go32_terminal_ours:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L7
	ldr	r4, [r5]
	cmp	r4, #0
	popne	{r4, r5, r6, pc}
	mov	r1, r4
	mov	r0, r4
	bl	device_mode
	mov	r3, #1
	adds	r2, r0, #1
	movne	r2, #1
	ldr	r1, .L7+4
	str	r3, [r5]
	ldr	r3, .L7+8
	ldr	r5, .L7+12
	str	r0, [r1]
	ldr	r0, .L7+16
	str	r2, [r3]
	str	r4, [r5]
	bl	redir_to_debugger
	cmn	r0, #1
	popne	{r4, r5, r6, pc}
	ldr	r0, .L7+16
	bl	redir_to_child
	ldr	r0, [r5]
	bl	safe_strerror
	pop	{r4, r5, r6, lr}
	mov	r1, r0
	ldr	r0, .L7+20
	b	error
.L8:
	.align	2
.L7:
	.word	terminal_is_ours
	.word	inf_terminal_mode
	.word	inf_mode_valid
	.word	errno
	.word	child_cmd
	.word	.LC0
	.size	go32_terminal_ours, .-go32_terminal_ours
	.comm	terminal_is_ours,4,4
	.comm	inf_terminal_mode,4,4
	.comm	inf_mode_valid,4,4
	.comm	errno,4,4
	.comm	child_cmd,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
