	.file	"315964.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"_STDIO_BADFD"
	.align 8
.LC1:
	.string	"File descriptor must be in the range 3-%d inclusive.\n"
.LC2:
	.string	"_STDIO_BADFD_SIGNAL"
.LC3:
	.string	"SIG"
	.align 8
.LC4:
	.string	"Invalid signal name or number.\n"
	.align 8
.LC5:
	.string	"enable_extended_FILE_stdio(3C)"
	.text
	.globl	init_STDIO_bad_fd
	.type	init_STDIO_bad_fd, @function
init_STDIO_bad_fd:
.LFB6:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], -1
	mov	DWORD PTR -24[rbp], -1
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 2
	jle	.L3
	cmp	DWORD PTR -24[rbp], 255
	jle	.L2
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 255
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 3
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	add	QWORD PTR -16[rbp], 3
.L5:
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	str2sig@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
.L4:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	enable_extended_FILE_stdio@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L9
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_STDIO_bad_fd, .-init_STDIO_bad_fd
	.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	"315964.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"_STDIO_BADFD\000"
	.align	2
.LC1:
	.ascii	"File descriptor must be in the range 3-%d inclusive"
	.ascii	".\012\000"
	.align	2
.LC2:
	.ascii	"_STDIO_BADFD_SIGNAL\000"
	.align	2
.LC3:
	.ascii	"SIG\000"
	.align	2
.LC4:
	.ascii	"Invalid signal name or number.\012\000"
	.align	2
.LC5:
	.ascii	"enable_extended_FILE_stdio(3C)\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_STDIO_bad_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_STDIO_bad_fd, %function
init_STDIO_bad_fd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-24]
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L10+4
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-16]
	bl	atoi
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	ble	.L3
	ldr	r3, [fp, #-20]
	cmp	r3, #255
	ble	.L2
.L3:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r2, #255
	ldr	r1, .L10+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L10+16
	bl	getenv
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	mov	r2, #3
	ldr	r1, .L10+20
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
.L5:
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	str2sig
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L10+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
.L4:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	enable_extended_FILE_stdio
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L10+28
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	init_STDIO_bad_fd, .-init_STDIO_bad_fd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
