	.file	"19067.c"
	.intel_syntax noprefix
	.text
	.globl	fds
	.bss
	.align 8
	.type	fds, @object
	.size	fds, 8
fds:
	.zero	8
	.globl	nfd
	.align 4
	.type	nfd, @object
	.size	nfd, 4
nfd:
	.zero	4
	.section	.rodata
.LC0:
	.string	"sgi_inithack_: no memory!\n"
	.text
	.globl	sgiinithack_
	.type	sgiinithack_, @function
sgiinithack_:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getdtablesize@PLT
	mov	DWORD PTR nfd[rip], eax
	mov	eax, DWORD PTR nfd[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR fds[rip], rax
	mov	rax, QWORD PTR fds[rip]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sgiinithack_, .-sgiinithack_
	.globl	sgiprepfd_
	.type	sgiprepfd_, @function
sgiprepfd_:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L8:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L6
	mov	rdx, QWORD PTR fds[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	jmp	.L7
.L6:
	mov	rdx, QWORD PTR fds[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L7:
	add	DWORD PTR -12[rbp], 1
.L5:
	mov	eax, DWORD PTR nfd[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L8
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sgiprepfd_, .-sgiprepfd_
	.globl	sgigetfd_
	.type	sgigetfd_, @function
sgigetfd_:
.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, 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
	jmp	.L11
.L15:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	js	.L17
	mov	rdx, QWORD PTR fds[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L13
	mov	rdx, QWORD PTR fds[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L10
.L17:
	nop
.L13:
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR nfd[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L15
.L10:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sgigetfd_, .-sgigetfd_
	.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	"19067.c"
	.text
	.comm	fds,4,4
	.comm	nfd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sgi_inithack_: no memory!\012\000"
	.text
	.align	2
	.global	sgiinithack_
	.syntax unified
	.arm
	.fpu softvfp
	.type	sgiinithack_, %function
sgiinithack_:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getdtablesize
	mov	r3, r0
	ldr	r2, .L4
	str	r3, [r2]
	ldr	r3, .L4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L4+4
	str	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L4+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L4+12
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L3:
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	nfd
	.word	fds
	.word	stderr
	.word	.LC0
	.size	sgiinithack_, .-sgiinithack_
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sgiprepfd_
	.syntax unified
	.arm
	.fpu softvfp
	.type	sgiprepfd_, %function
sgiprepfd_:
	@ 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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L10:
	sub	r3, fp, #16
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L9
.L8:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L10
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	fds
	.word	nfd
	.size	sgiprepfd_, .-sgiprepfd_
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sgigetfd_
	.syntax unified
	.arm
	.fpu softvfp
	.type	sgigetfd_, %function
sgigetfd_:
	@ 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, #-24]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L19:
	sub	r3, fp, #16
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	blt	.L21
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L22+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L14
.L21:
	nop
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L19
.L14:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	fds
	.word	nfd
	.size	sgigetfd_, .-sgigetfd_
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
