	.file	"extr_gzipfs.c_zf_seek.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zf_seek, @function
zf_seek:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	jne	.L3
	mov	eax, DWORD PTR [r12]
	add	ebx, eax
	cmp	ebx, eax
	jl	.L6
.L9:
	mov	r13, rsp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, ebx
	mov	edi, 16
	sub	esi, eax
	call	min@PLT
	xor	ecx, ecx
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, eax
	call	zf_read@PLT
	mov	QWORD PTR errno[rip], rax
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR [r12]
.L7:
	cmp	ebx, eax
	jg	.L11
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	zf_rewind@PLT
	test	rax, rax
	jne	.L10
	mov	eax, DWORD PTR [r12]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR [r12]
	cmp	ebx, eax
	jge	.L9
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR EINVAL[rip]
	mov	QWORD PTR errno[rip], rax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, -1
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zf_seek, .-zf_seek
	.comm	errno,8,8
	.comm	EINVAL,8,8
	.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_gzipfs.c_zf_seek.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zf_seek, %function
zf_seek:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #28
	cmp	r2, #128
	mov	r5, r0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r6, [r0]
	beq	.L2
	cmp	r2, #129
	bne	.L3
	ldr	r0, [r6]
	add	r4, r1, r0
	cmp	r4, r0
	blt	.L6
.L9:
	ldr	r7, .L16+4
	b	.L7
.L11:
	sub	r1, r4, r0
	mov	r0, #16
	bl	min
	mov	r3, #0
	mov	r2, r0
	add	r1, sp, #4
	mov	r0, r5
	bl	zf_read
	cmp	r0, #0
	str	r0, [r7]
	bne	.L10
	ldr	r0, [r6]
.L7:
	cmp	r4, r0
	bgt	.L11
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r5
	bl	zf_rewind
	cmp	r0, #0
	ldreq	r0, [r6]
	beq	.L9
.L10:
	mvn	r0, #0
	b	.L1
.L2:
	ldr	r0, [r6]
	cmp	r4, r0
	bge	.L9
	b	.L6
.L3:
	ldr	r2, .L16+8
	ldr	r3, .L16+4
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	errno
	.word	EINVAL
	.size	zf_seek, .-zf_seek
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
