	.file	"extr_init.c_start_getty.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"can't fork for getty on port %s: %m"
	.align 8
.LC1:
	.string	"getty repeating too quickly on port %s, sleeping %d secs"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"TERM="
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"can't exec getty '%s' for port %s: %m"
	.text
	.p2align 4
	.type	start_getty, @function
start_getty:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 120
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	time@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, rax
	jg	.L2
	sub	rax, rdx
	cmp	rax, QWORD PTR GETTY_SPACING[rip]
	jl	.L29
.L2:
	mov	QWORD PTR 8[rbx], 0
.L27:
	call	fork@PLT
	cmp	eax, -1
	je	.L4
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 40[rbx], 0
	jne	.L30
.L9:
	lea	rbp, 12[rsp]
	mov	rdi, rbp
	call	sigemptyset@PLT
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	xor	edx, edx
	mov	rsi, rbp
	call	sigprocmask@PLT
	mov	eax, DWORD PTR 32[rbx]
	test	eax, eax
	jne	.L31
	mov	QWORD PTR 16[rsp], 0
.L11:
	mov	rax, QWORD PTR 24[rbx]
	lea	rdx, 16[rsp]
	mov	edi, DWORD PTR [rax]
	mov	rsi, rax
	call	execve@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR 16[rbx]
	lea	rdi, .LC3[rip]
	mov	esi, DWORD PTR [rax]
	call	stall@PLT
	mov	edi, 1
	call	_exit@PLT
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L32
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	add	rax, 1
	cmp	rax, QWORD PTR GETTY_NSPACE[rip]
	mov	QWORD PTR 8[rbx], rax
	jle	.L27
	mov	QWORD PTR 8[rbx], 0
	call	fork@PLT
	cmp	eax, -1
	je	.L4
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR 16[rbx]
	mov	rdx, QWORD PTR GETTY_SLEEP[rip]
	lea	rdi, .LC1[rip]
	call	warning@PLT
	mov	edi, DWORD PTR GETTY_SLEEP[rip]
	call	sleep@PLT
	cmp	QWORD PTR 40[rbx], 0
	je	.L9
.L30:
	mov	rdi, rbx
	call	start_window_system@PLT
	mov	edi, DWORD PTR WINDOW_WAIT[rip]
	call	sleep@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rbp, 32[rsp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	mov	esi, DWORD PTR 32[rbx]
	mov	edx, 64
	mov	rdi, rbp
	call	strlcat@PLT
	mov	QWORD PTR 16[rsp], rbp
	mov	QWORD PTR 24[rsp], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR 16[rbx]
	lea	rdi, .LC0[rip]
	call	emergency@PLT
	mov	eax, -1
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	start_getty, .-start_getty
	.comm	WINDOW_WAIT,4,4
	.comm	SIG_SETMASK,4,4
	.comm	RESOURCE_GETTY,4,4
	.comm	GETTY_SPACING,8,8
	.comm	GETTY_SLEEP,8,8
	.comm	GETTY_NSPACE,8,8
	.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_init.c_start_getty.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't fork for getty on port %s: %m\000"
	.align	2
.LC1:
	.ascii	"getty repeating too quickly on port %s, sleeping %d"
	.ascii	" secs\000"
	.align	2
.LC2:
	.ascii	"TERM=\000"
	.align	2
.LC3:
	.ascii	"can't exec getty '%s' for port %s: %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_getty, %function
start_getty:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L36
	mov	r4, r0
	sub	sp, sp, #84
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	bl	time
	ldr	r3, [r4]
	cmp	r3, r0
	bgt	.L2
	ldr	r2, .L36+4
	sub	r0, r0, r3
	ldr	r3, [r2]
	cmp	r0, r3
	blt	.L32
.L2:
	mov	r3, #0
	str	r3, [r4, #4]
.L30:
	bl	fork
	cmn	r0, #1
	beq	.L4
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L33
.L9:
	mov	r0, sp
	bl	sigemptyset
	ldr	r3, .L36+8
	mov	r1, sp
	ldr	r0, [r3]
	mov	r2, #0
	bl	sigprocmask
	ldr	r3, [r4, #16]
	cmp	r3, #0
	streq	r3, [sp, #4]
	bne	.L34
.L11:
	ldr	r1, [r4, #12]
	add	r2, sp, #4
	ldr	r0, [r1]
	bl	execve
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	ldr	r0, .L36+12
	bl	stall
	mov	r0, #1
	bl	_exit
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, pc}
.L32:
	ldr	r2, .L36+16
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r4, #4]
	ble	.L30
	mov	r3, #0
	str	r3, [r4, #4]
	bl	fork
	cmn	r0, #1
	beq	.L4
	cmp	r0, #0
	bne	.L1
	ldr	r5, .L36+20
	ldr	r1, [r4, #8]
	ldr	r2, [r5]
	ldr	r0, .L36+24
	bl	warning
	ldr	r0, [r5]
	bl	sleep
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L9
.L33:
	mov	r0, r4
	bl	start_window_system
	ldr	r3, .L36+28
	ldr	r0, [r3]
	bl	sleep
	b	.L9
.L34:
	ldr	r2, .L36+32
	add	r5, sp, #12
	ldm	r2, {r0, r1}
	mov	r2, #64
	str	r0, [sp, #12]
	strh	r1, [sp, #16]	@ movhi
	mov	r0, r5
	mov	r1, r3
	bl	strlcat
	mov	r3, #0
	str	r5, [sp, #4]
	str	r3, [sp, #8]
	b	.L11
.L4:
	ldr	r1, [r4, #8]
	ldr	r0, .L36+36
	bl	emergency
	mvn	r0, #0
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	GETTY_SPACING
	.word	SIG_SETMASK
	.word	.LC3
	.word	GETTY_NSPACE
	.word	GETTY_SLEEP
	.word	.LC1
	.word	WINDOW_WAIT
	.word	.LC2
	.word	.LC0
	.size	start_getty, .-start_getty
	.comm	WINDOW_WAIT,4,4
	.comm	SIG_SETMASK,4,4
	.comm	RESOURCE_GETTY,4,4
	.comm	GETTY_SPACING,4,4
	.comm	GETTY_SLEEP,4,4
	.comm	GETTY_NSPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
