	.file	"extr_search-x-data.c_do_change_item_long.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	do_change_item_long
	.type	do_change_item_long, @function
do_change_item_long:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	esi, 65535
	ja	.L4
	mov	rdi, rdx
	mov	r15, rdx
	mov	r12d, ecx
	mov	ebp, r8d
	call	fits@PLT
	test	eax, eax
	je	.L4
	cmp	r14d, 255
	jg	.L5
	mov	rdi, QWORD PTR LEV_SEARCH_TEXT_SHORT[rip]
	movsx	rax, r14d
	lea	esi, 21[r14]
	mov	edx, r12d
	mov	QWORD PTR [rsp], rax
	add	rdi, rax
	call	alloc_log_event@PLT
	mov	DWORD PTR [rax], ebp
	mov	rbx, QWORD PTR 16[rax]
	mov	QWORD PTR 8[rax], r15
.L6:
	mov	edx, r14d
	mov	rsi, rbx
	mov	rdi, r13
	call	read_in@PLT
	cmp	r14d, eax
	mov	DWORD PTR 12[rsp], eax
	sete	dil
	movzx	edi, dil
	call	assert@PLT
	movsx	rcx, DWORD PTR 12[rsp]
	add	rcx, rbx
	cmp	rbx, rcx
	jnb	.L7
	movzx	edx, BYTE PTR [rbx]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	ja	.L11
	cmp	dl, 9
	je	.L11
	mov	BYTE PTR [rbx], 32
.L11:
	cmp	rcx, rax
	jbe	.L13
	movzx	edx, BYTE PTR 1[rbx]
	mov	rbx, rax
.L12:
	lea	rax, 1[rbx]
	cmp	dl, 31
	jne	.L8
	mov	rbx, rax
	cmp	rcx, rax
	jbe	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	movzx	edx, BYTE PTR [rax]
	cmp	dl, 63
	jbe	.L12
	add	rax, 1
	mov	rbx, rax
	cmp	rcx, rax
	ja	.L27
.L7:
	mov	BYTE PTR [rbx], 0
	mov	rdi, rbx
	sub	rdi, QWORD PTR [rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, ebp
	mov	ecx, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	rdx, r15
	pop	r12
	.cfi_def_cfa_offset 32
	mov	esi, r14d
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	change_item@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, r14d
	mov	rdi, r13
	call	advance_read_ptr@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR LEV_SEARCH_TEXT_LONG[rip]
	lea	esi, 23[r14]
	mov	edx, r12d
	call	alloc_log_event@PLT
	mov	DWORD PTR [rax], ebp
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR 8[rax], r15
	mov	DWORD PTR 16[rax], r14d
	movsx	rax, r14d
	mov	QWORD PTR [rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rbx, rax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	do_change_item_long, .-do_change_item_long
	.comm	LEV_SEARCH_TEXT_SHORT,8,8
	.comm	LEV_SEARCH_TEXT_LONG,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_search-x-data.c_do_change_item_long.c"
	.text
	.align	2
	.global	do_change_item_long
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_change_item_long, %function
do_change_item_long:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r1, #65536
	mov	r5, r1
	mov	r10, r0
	ldr	r7, [sp, #32]
	ldr	r8, [sp, #36]
	bcs	.L4
	mov	r0, r2
	mov	r1, r3
	mov	r9, r2
	mov	r6, r3
	bl	fits
	cmp	r0, #0
	beq	.L4
	cmp	r5, #255
	bgt	.L5
	ldr	r3, .L26
	mov	r2, r7
	ldr	r0, [r3]
	add	r1, r5, #21
	add	r0, r5, r0
	bl	alloc_log_event
	ldr	r4, [r0, #16]
	str	r8, [r0]
	str	r9, [r0, #8]
	str	r6, [r0, #12]
.L6:
	mov	r2, r5
	mov	r0, r10
	mov	r1, r4
	bl	read_in
	mov	r10, r0
	sub	r0, r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	add	r2, r4, r10
	cmp	r4, r2
	bcs	.L7
	mov	r1, #32
	ldrb	ip, [r4]	@ zero_extendqisi2
	b	.L12
.L8:
	movls	r3, #1
	movhi	r3, #0
	cmp	ip, #9
	moveq	ip, #0
	andne	ip, r3, #1
	cmp	ip, #0
	strbne	r1, [r4]
	cmp	r2, r0
	bls	.L13
	ldrb	ip, [r4, #1]	@ zero_extendqisi2
	mov	r4, r0
.L12:
	cmp	ip, #31
	add	r0, r4, #1
	bne	.L8
	cmp	r2, r0
	mov	r4, r0
	bls	.L7
.L25:
	ldrb	ip, [r0], #1	@ zero_extendqisi2
	cmp	ip, #63
	bls	.L12
	cmp	r2, r0
	mov	r4, r0
	bhi	.L25
.L7:
	mov	r1, #0
	strb	r1, [r4]
	mov	r2, r9
	mov	r3, r6
	mov	r1, r5
	sub	r0, r4, r5
	str	r8, [sp, #36]
	str	r7, [sp, #32]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	change_item
.L4:
	mov	r1, r5
	mov	r0, r10
	bl	advance_read_ptr
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L26+4
	mov	r2, r7
	ldr	r0, [r3]
	add	r1, r5, #23
	bl	alloc_log_event
	ldr	r4, [r0, #20]
	str	r8, [r0]
	str	r9, [r0, #8]
	str	r6, [r0, #12]
	str	r5, [r0, #16]
	b	.L6
.L13:
	mov	r4, r0
	b	.L7
.L27:
	.align	2
.L26:
	.word	LEV_SEARCH_TEXT_SHORT
	.word	LEV_SEARCH_TEXT_LONG
	.size	do_change_item_long, .-do_change_item_long
	.comm	LEV_SEARCH_TEXT_SHORT,4,4
	.comm	LEV_SEARCH_TEXT_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
