	.file	"282654.c"
	.intel_syntax noprefix
	.text
	.globl	fcntl
	.type	fcntl, @function
fcntl:
.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	DWORD PTR -248[rbp], esi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 16
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L3
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L4:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -224[rbp], rax
	cmp	DWORD PTR -248[rbp], 4
	cmp	DWORD PTR -248[rbp], 7
	jne	.L6
	mov	rcx, QWORD PTR -224[rbp]
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	syscall_cp@PLT
	jmp	.L23
.L6:
	cmp	DWORD PTR -248[rbp], 9
	jne	.L8
	lea	rdx, -216[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -22
	jne	.L9
	mov	rcx, QWORD PTR -224[rbp]
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	jmp	.L23
.L9:
	cmp	DWORD PTR -228[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -228[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__syscall_ret@PLT
	jmp	.L23
.L11:
	mov	eax, DWORD PTR -216[rbp]
	cmp	eax, 2
	jne	.L12
	mov	eax, DWORD PTR -212[rbp]
	neg	eax
	jmp	.L23
.L12:
	mov	eax, DWORD PTR -212[rbp]
	jmp	.L23
.L8:
	cmp	DWORD PTR -248[rbp], 1030
	jne	.L14
	mov	rdx, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	rcx, rdx
	mov	edx, 1030
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], -22
	je	.L15
	cmp	DWORD PTR -232[rbp], 0
	js	.L16
	mov	eax, DWORD PTR -232[rbp]
	mov	ecx, 1
	mov	edx, 2
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
.L16:
	mov	eax, DWORD PTR -232[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__syscall_ret@PLT
	jmp	.L23
.L15:
	mov	eax, DWORD PTR -244[rbp]
	mov	ecx, 0
	mov	edx, 1030
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], -22
	je	.L17
	cmp	DWORD PTR -232[rbp], 0
	js	.L18
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, eax
	mov	edi, 3
	mov	eax, 0
	call	__async_syscall@PLT
.L18:
	mov	edi, -22
	mov	eax, 0
	call	__syscall_ret@PLT
	jmp	.L23
.L17:
	mov	rdx, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	rcx, rdx
	mov	edx, 0
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], 0
	js	.L19
	mov	eax, DWORD PTR -232[rbp]
	mov	ecx, 1
	mov	edx, 2
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
.L19:
	mov	eax, DWORD PTR -232[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__syscall_ret@PLT
	jmp	.L23
.L14:
	cmp	DWORD PTR -248[rbp], 6
	jg	.L20
	cmp	DWORD PTR -248[rbp], 5
	jge	.L21
	jmp	.L22
.L20:
	mov	eax, DWORD PTR -248[rbp]
	sub	eax, 15
	cmp	eax, 1
	ja	.L22
.L21:
	mov	rcx, QWORD PTR -224[rbp]
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
	jmp	.L23
.L22:
	mov	rcx, QWORD PTR -224[rbp]
	mov	edx, DWORD PTR -248[rbp]
	mov	eax, DWORD PTR -244[rbp]
	mov	esi, eax
	mov	edi, 72
	mov	eax, 0
	call	__async_syscall@PLT
.L23:
	mov	rsi, QWORD PTR -184[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fcntl, .-fcntl
	.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	"282654.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fcntl
	.syntax unified
	.arm
	.fpu softvfp
	.type	fcntl, %function
fcntl:
	@ args = 4, pretend = 12, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #44
	str	r0, [fp, #-44]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	str	r2, [fp, #-36]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #4]
	cmp	r3, #4
	bne	.L2
	ldr	r3, [fp, #-32]
	orr	r3, r3, #131072
	str	r3, [fp, #-32]
.L2:
	ldr	r3, [fp, #4]
	cmp	r3, #7
	bne	.L3
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	syscall_cp
	mov	r3, r0
	b	.L20
.L3:
	ldr	r3, [fp, #4]
	cmp	r3, #9
	bne	.L5
	sub	r3, fp, #20
	mov	r2, #16
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #22
	bne	.L6
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	mov	r3, r0
	b	.L20
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L8
	ldr	r0, [fp, #-24]
	bl	__syscall_ret
	mov	r3, r0
	b	.L20
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	b	.L20
.L9:
	ldr	r3, [fp, #-16]
	b	.L20
.L5:
	ldr	r3, [fp, #4]
	ldr	r2, .L22+4
	cmp	r3, r2
	bne	.L11
	ldr	r3, [fp, #-32]
	ldr	r2, .L22+4
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #22
	beq	.L12
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L13
	mov	r3, #1
	mov	r2, #2
	ldr	r1, [fp, #-28]
	mov	r0, #55
	bl	__async_syscall
.L13:
	ldr	r0, [fp, #-28]
	bl	__syscall_ret
	mov	r3, r0
	b	.L20
.L12:
	mov	r3, #0
	ldr	r2, .L22+4
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #22
	beq	.L14
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L15
	ldr	r1, [fp, #-28]
	mov	r0, #6
	bl	__async_syscall
.L15:
	mvn	r0, #21
	bl	__syscall_ret
	mov	r3, r0
	b	.L20
.L14:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	blt	.L16
	mov	r3, #1
	mov	r2, #2
	ldr	r1, [fp, #-28]
	mov	r0, #55
	bl	__async_syscall
.L16:
	ldr	r0, [fp, #-28]
	bl	__syscall_ret
	mov	r3, r0
	b	.L20
.L11:
	ldr	r3, [fp, #4]
	cmp	r3, #6
	bgt	.L17
	ldr	r3, [fp, #4]
	cmp	r3, #5
	bge	.L18
	b	.L19
.L17:
	ldr	r3, [fp, #4]
	sub	r3, r3, #15
	cmp	r3, #1
	bhi	.L19
.L18:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	mov	r3, r0
	b	.L20
.L19:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-44]
	mov	r0, #55
	bl	__async_syscall
	mov	r3, r0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	1030
	.size	fcntl, .-fcntl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
