	.file	"extr_vidcontrol.c_set_history.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"argument must not be less than zero"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"setting history buffer size"
	.text
	.p2align 4
	.type	set_history, @function
set_history:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	atoi@PLT
	cmp	BYTE PTR [rbx], 0
	mov	DWORD PTR 4[rsp], eax
	je	.L6
	test	eax, eax
	js	.L6
.L2:
	mov	esi, DWORD PTR CONS_HISTORY[rip]
	xor	edi, edi
	lea	rdx, 4[rsp]
	call	ioctl@PLT
	cmp	eax, -1
	je	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	revert@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	errx@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	revert@PLT
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_history, .-set_history
	.comm	CONS_HISTORY,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_vidcontrol.c_set_history.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"argument must not be less than zero\000"
	.align	2
.LC1:
	.ascii	"setting history buffer size\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_history, %function
set_history:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L12
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	atoi
	ldrb	r3, [r4]	@ zero_extendqisi2
	str	r0, [sp]
	cmp	r3, #0
	moveq	r0, #1
	lsrne	r0, r0, #31
	cmp	r0, #0
	beq	.L2
	bl	revert
	mov	r0, #1
	ldr	r1, .L12+4
	bl	errx
.L2:
	ldr	r3, .L12+8
	mov	r2, sp
	mov	r0, #0
	ldr	r1, [r3]
	bl	ioctl
	cmn	r0, #1
	beq	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	bl	revert
	ldr	r1, .L12+12
	mov	r0, #1
	bl	err
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	CONS_HISTORY
	.word	.LC1
	.size	set_history, .-set_history
	.comm	CONS_HISTORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
