	.file	"extr_fifo_vnops.c_fifo_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fifo_ioctl
	.type	fifo_ioctl, @function
fifo_ioctl:
.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
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR FIONBIO[rip]
	cmp	DWORD PTR 12[rdi], eax
	je	.L5
	lea	rbp, 8[rsp]
	mov	rbx, rdi
	mov	esi, 8
	mov	rdi, rbp
	call	bzero@PLT
	lea	rax, 16[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FREAD[rip], eax
	jne	.L15
	test	DWORD PTR FWRITE[rip], eax
	jne	.L16
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.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
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	mov	rdi, rbp
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 12[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 16[rsp], rax
	call	soo_ioctl@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FWRITE[rip], eax
	je	.L5
.L16:
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR 12[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR 8[rbx]
	call	soo_ioctl@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fifo_ioctl, .-fifo_ioctl
	.comm	FWRITE,4,4
	.comm	FREAD,4,4
	.comm	FIONBIO,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_fifo_vnops.c_fifo_ioctl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fifo_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	fifo_ioctl, %function
fifo_ioctl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L18
	ldr	r2, [r0, #12]
	ldr	r3, [r3]
	ldr	r1, .L18+4
	sub	sp, sp, #16
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	beq	.L5
	mov	r4, r0
	mov	r1, #4
	add	r0, sp, #4
	bl	bzero
	ldr	r2, .L18+8
	ldr	r3, [r4]
	ldr	r1, [r2]
	add	r2, sp, #8
	tst	r3, r1
	str	r2, [sp, #4]
	bne	.L15
	ldr	r2, .L18+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L16
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L15:
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #4]
	ldr	r1, [r2]
	add	r0, sp, #4
	ldr	ip, [r1, #4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	str	ip, [sp, #8]
	bl	soo_ioctl
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L18+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
.L16:
	ldr	r3, [r4, #16]
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	add	r0, sp, #4
	ldr	r1, [r3]
	ldr	r3, [r4, #4]
	str	r1, [r2]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	soo_ioctl
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	FIONBIO
	.word	.LC0
	.word	FREAD
	.word	FWRITE
	.size	fifo_ioctl, .-fifo_ioctl
	.comm	FWRITE,4,4
	.comm	FREAD,4,4
	.comm	FIONBIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
