	.file	"extr_ewah_rlw.c_rlwit_discard_first_words.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rlwit_discard_first_words
	.type	rlwit_discard_first_words, @function
rlwit_discard_first_words:
.LFB0:
	.cfi_startproc
	endbr64
	test	rsi, rsi
	je	.L17
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rbx]
	cmp	rax, rbp
	ja	.L21
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, rbp
	mov	QWORD PTR [rbx], 0
	mov	rdi, rbx
	sub	rsi, rax
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, rsi
	cmp	rax, rsi
	cmovbe	rdx, rax
	add	QWORD PTR 24[rbx], rdx
	sub	rax, rdx
	sub	rsi, rdx
	mov	QWORD PTR 8[rbx], rax
	mov	rbp, rsi
	jne	.L5
	call	rlwit_word_size@PLT
	test	rax, rax
	je	.L22
.L1:
	add	rsp, 8
	.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
.L5:
	.cfi_restore_state
	call	next_word@PLT
	test	eax, eax
	je	.L1
	mov	rdi, rbx
	call	rlwit_literal_words@PLT
	add	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR [rbx]
	cmp	rax, rbp
	jbe	.L4
.L21:
	sub	rax, rbp
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.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
.L22:
	.cfi_restore_state
	mov	rdi, rbx
	call	next_word@PLT
	test	eax, eax
	je	.L1
	mov	rdi, rbx
	call	rlwit_literal_words@PLT
	add	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	rlwit_discard_first_words, .-rlwit_discard_first_words
	.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_ewah_rlw.c_rlwit_discard_first_words.c"
	.text
	.align	2
	.global	rlwit_discard_first_words
	.syntax unified
	.arm
	.fpu softvfp
	.type	rlwit_discard_first_words, %function
rlwit_discard_first_words:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r1, #0
	popeq	{r4, r5, r6, pc}
	mov	r4, r0
	ldr	r3, [r4]
	mov	r5, #0
	cmp	r3, r6
	sub	r2, r6, r3
	bhi	.L18
.L4:
	ldr	r3, [r4, #4]
	ldr	ip, [r4, #12]
	cmp	r3, r2
	movcc	r0, r3
	movcs	r0, r2
	sub	r3, r3, r0
	subs	r6, r2, r0
	add	r0, ip, r0
	str	r0, [r4, #12]
	str	r5, [r4]
	mov	r0, r4
	str	r3, [r4, #4]
	bne	.L5
	bl	rlwit_word_size
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r4
	bl	next_word
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	rlwit_literal_words
	ldr	r3, [r4, #8]
	add	r3, r3, r0
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L5:
	bl	next_word
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	bl	rlwit_literal_words
	ldr	r3, [r4, #8]
	add	r3, r3, r0
	str	r3, [r4, #12]
	ldr	r3, [r4]
	cmp	r3, r6
	sub	r2, r6, r3
	bls	.L4
.L18:
	sub	r6, r3, r6
	str	r6, [r4]
	pop	{r4, r5, r6, pc}
	.size	rlwit_discard_first_words, .-rlwit_discard_first_words
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
