	.file	"extr_ifgif.c_setgifopts.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ioctl(GIFGOPTS)"
.LC1:
	.string	"ioctl(GIFSOPTS)"
	.text
	.p2align 4
	.type	setgifopts, @function
setgifopts:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edx
	lea	rdx, ifr[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	mov	edi, ebp
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GIFGOPTS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rax, 4[rsp]
	mov	QWORD PTR ifr[rip], rax
	call	ioctl@PLT
	cmp	eax, -1
	je	.L9
	mov	eax, DWORD PTR 4[rsp]
	lea	edx, -1[rbx]
	mov	esi, DWORD PTR GIFSOPTS[rip]
	mov	edi, ebp
	and	edx, eax
	or	eax, ebx
	test	ebx, ebx
	cmovs	eax, edx
	lea	rdx, ifr[rip]
	mov	DWORD PTR 4[rsp], eax
	call	ioctl@PLT
	cmp	eax, -1
	je	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC1[rip]
	call	warn@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setgifopts, .-setgifopts
	.comm	ifr,8,8
	.comm	GIFSOPTS,4,4
	.comm	GIFGOPTS,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_ifgif.c_setgifopts.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ioctl(GIFGOPTS)\000"
	.align	2
.LC1:
	.ascii	"ioctl(GIFSOPTS)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setgifopts, %function
setgifopts:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r2
	ldr	r3, .L12
	ldr	r2, .L12+4
	mov	r4, r1
	ldr	r1, [r3]
	ldr	r3, .L12+8
	sub	sp, sp, #12
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	sp, [r2]
	bl	ioctl
	cmn	r0, #1
	beq	.L9
	ldr	r3, [sp]
	cmp	r4, #0
	sublt	r4, r4, #1
	andlt	r4, r4, r3
	orrge	r4, r3, r4
	ldr	r3, .L12+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L12+4
	str	r4, [sp]
	bl	ioctl
	cmn	r0, #1
	beq	.L10
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r0, .L12+16
	bl	warn
	b	.L1
.L10:
	ldr	r0, .L12+20
	bl	warn
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	GIFGOPTS
	.word	ifr
	.word	.LC2
	.word	GIFSOPTS
	.word	.LC0
	.word	.LC1
	.size	setgifopts, .-setgifopts
	.comm	ifr,4,4
	.comm	GIFSOPTS,4,4
	.comm	GIFGOPTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
