	.file	"489333.c"
	.intel_syntax noprefix
	.text
	.globl	tcgetattr
	.type	tcgetattr, @function
tcgetattr:
.LFB0:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 21505
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 60
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	and	eax, -3
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
.L5:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 2
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 12[rax], edx
.L7:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tcgetattr, .-tcgetattr
	.globl	tcsetattr
	.type	tcsetattr, @function
tcsetattr:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	cmp	DWORD PTR -24[rbp], 2
	je	.L9
	cmp	DWORD PTR -24[rbp], 2
	jg	.L10
	cmp	DWORD PTR -24[rbp], 0
	je	.L11
	cmp	DWORD PTR -24[rbp], 1
	je	.L12
	jmp	.L10
.L11:
	mov	DWORD PTR -8[rbp], 21506
	jmp	.L13
.L12:
	mov	DWORD PTR -8[rbp], 21507
	jmp	.L13
.L9:
	mov	DWORD PTR -8[rbp], 21508
	jmp	.L13
.L10:
	mov	eax, -1
	jmp	.L14
.L13:
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	and	eax, 2
	test	eax, eax
	jne	.L15
	or	DWORD PTR -4[rbp], 1
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	and	eax, 8
	test	eax, eax
	jne	.L16
	or	DWORD PTR -4[rbp], 2
.L16:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	tcsetattr, .-tcsetattr
	.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	"489333.c"
	.text
	.align	2
	.global	tcgetattr
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcgetattr, %function
tcgetattr:
	@ 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	r1, .L8
	ldr	r0, [fp, #-16]
	bl	ioctl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	mov	r2, #60
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	bic	r2, r3, #2
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	orr	r2, r3, #2
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
.L5:
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	bic	r2, r3, #8
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
	b	.L7
.L6:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	orr	r2, r3, #8
	ldr	r3, [fp, #-20]
	str	r2, [r3, #12]
.L7:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	21505
	.size	tcgetattr, .-tcgetattr
	.align	2
	.global	tcsetattr
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcsetattr, %function
tcsetattr:
	@ 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]
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	beq	.L11
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bgt	.L12
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L14
	b	.L12
.L13:
	ldr	r3, .L19
	str	r3, [fp, #-12]
	b	.L15
.L14:
	ldr	r3, .L19+4
	str	r3, [fp, #-12]
	b	.L15
.L11:
	ldr	r3, .L19+8
	str	r3, [fp, #-12]
	b	.L15
.L12:
	mvn	r3, #0
	b	.L16
.L15:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
	orr	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	ioctl
	mov	r3, r0
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	21506
	.word	21507
	.word	21508
	.size	tcsetattr, .-tcsetattr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
