	.file	"extr_string.c_str_squeeze.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	str_squeeze, @function
str_squeeze:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	DWORD PTR 12[rsp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR STATIC_TR_PATTERN[rip]
	mov	DWORD PTR 28[rsp], eax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rsp], rax
	call	mrb_str_ptr@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mrb_str_modify@PLT
	mov	edi, r12d
	call	mrb_nil_p@PLT
	test	eax, eax
	je	.L2
	mov	edi, ebx
	call	RSTRING_PTR@PLT
	mov	edi, ebx
	mov	r13, rax
	call	RSTRING_LEN@PLT
	mov	rbp, rax
.L3:
	test	rbp, rbp
	je	.L20
	movzx	esi, BYTE PTR 0[r13]
	mov	r8, -1
	xor	r15d, r15d
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	add	rax, 1
	add	r15, 1
	cmp	rax, rbp
	je	.L4
.L16:
	movzx	esi, BYTE PTR 0[r13+rax]
	cmp	r15, rax
	jnb	.L12
	mov	BYTE PTR 0[r13+r15], sil
	movzx	esi, BYTE PTR 0[r13+rax]
.L12:
	mov	r8, rdi
.L6:
	movsx	rdi, sil
	test	sil, sil
	js	.L28
	cmp	rdi, r8
	jne	.L28
	mov	rcx, QWORD PTR TRUE[rip]
	add	rax, 1
	mov	QWORD PTR [rsp], rcx
	cmp	rax, rbp
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR [rsp], 0
	jne	.L30
.L1:
	mov	rax, QWORD PTR 168[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	mov	rax, QWORD PTR [rsp]
	add	rsp, 184
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, 28[rsp]
	lea	r14, 32[rsp]
	mov	edx, r12d
	mov	rcx, QWORD PTR TRUE[rip]
	call	tr_parse_pattern@PLT
	mov	rdx, r14
	mov	esi, r12d
	mov	rbx, rax
	mov	rdi, rax
	call	tr_compile_pattern@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	tr_free_pattern@PLT
	mov	r15d, DWORD PTR 12[rsp]
	mov	edi, r15d
	call	RSTRING_PTR@PLT
	mov	edi, r15d
	mov	r13, rax
	call	RSTRING_LEN@PLT
	mov	rbp, rax
	test	rbx, rbx
	je	.L3
	test	rax, rax
	je	.L20
	movsx	esi, BYTE PTR 0[r13]
	xor	r15d, r15d
	mov	r12, -1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r14
	call	tr_bitmap_detect@PLT
	test	rax, rax
	jne	.L8
.L32:
	movsx	r12, BYTE PTR 0[r13+rbx]
	add	r15, 1
.L9:
	add	rbx, 1
	cmp	rbp, rbx
	je	.L4
	movsx	esi, BYTE PTR 0[r13+rbx]
	cmp	rbx, r15
	jbe	.L5
	mov	BYTE PTR 0[r13+r15], sil
	movsx	esi, BYTE PTR 0[r13+rbx]
	mov	rdi, r14
	call	tr_bitmap_detect@PLT
	test	rax, rax
	je	.L32
.L8:
	movsx	rax, BYTE PTR 0[r13+rbx]
	cmp	rax, r12
	je	.L10
	add	r15, 1
	mov	r12, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR [rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L30:
	mov	ebx, DWORD PTR 12[rsp]
	mov	edi, ebx
	call	RSTRING@PLT
	mov	rsi, r15
	mov	edi, eax
	call	RSTR_SET_LEN@PLT
	mov	edi, ebx
	call	RSTRING_PTR@PLT
	mov	BYTE PTR [rax+r15], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	xor	r15d, r15d
	jmp	.L4
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	str_squeeze, .-str_squeeze
	.comm	TRUE,8,8
	.comm	STATIC_TR_PATTERN,4,4
	.comm	FALSE,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_string.c_str_squeeze.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_squeeze, %function
str_squeeze:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r1
	ldr	r1, .L31
	ldr	r3, .L31+4
	ldr	r1, [r1]
	mov	r6, r2
	ldr	r2, .L31+8
	sub	sp, sp, #140
	mov	r5, r0
	mov	r0, r9
	ldr	r2, [r2]
	str	r2, [sp, #132]
	mov	r2,#0
	ldr	r10, [r3]
	str	r1, [sp]
	bl	mrb_str_ptr
	mov	r1, r0
	mov	r0, r5
	bl	mrb_str_modify
	mov	r0, r6
	bl	mrb_nil_p
	subs	r4, r0, #0
	beq	.L2
	mov	r0, r9
	bl	RSTRING_PTR
	mov	r6, r0
	mov	r0, r9
	bl	RSTRING_LEN
	mov	r5, r0
.L3:
	cmp	r5, #0
	beq	.L4
	sub	r5, r5, #1
	add	ip, r5, r6
	mov	r3, r6
	mvn	r0, #0
	mov	r5, #0
	ldrb	r2, [r6]	@ zero_extendqisi2
	ldr	r4, .L31+12
	rsb	lr, r6, #1
	b	.L6
.L15:
	mov	r0, r1
	add	r2, lr, r3
	cmp	r5, r2
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	add	r3, r3, #1
	strbcc	r2, [r6, r5]
	ldrbcc	r2, [r3]	@ zero_extendqisi2
.L6:
	cmp	r2, r0
	ldreq	r10, [r4]
	addne	r5, r5, #1
	cmp	ip, r3
	mov	r1, r2
	bne	.L15
.L4:
	cmp	r10, #0
	bne	.L28
.L1:
	ldr	r3, .L31+8
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r10
	add	sp, sp, #140
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	fp, .L31+12
	mov	r2, r6
	ldr	r3, [fp]
	mov	r1, sp
	mov	r0, r5
	bl	tr_parse_pattern
	mov	r7, r0
	add	r2, sp, #4
	mov	r1, r6
	bl	tr_compile_pattern
	mov	r1, r7
	mov	r0, r5
	bl	tr_free_pattern
	mov	r0, r9
	bl	RSTRING_PTR
	mov	r6, r0
	mov	r0, r9
	bl	RSTRING_LEN
	cmp	r7, #0
	mov	r8, r0
	beq	.L18
	cmp	r0, #0
	beq	.L19
	mov	r5, r4
	mvn	r7, #0
	ldrb	r1, [r6]	@ zero_extendqisi2
	b	.L5
.L30:
	ldrb	r7, [r6, r4]	@ zero_extendqisi2
	add	r5, r5, #1
.L9:
	add	r4, r4, #1
	cmp	r8, r4
	beq	.L4
	ldrb	r1, [r6, r4]	@ zero_extendqisi2
	cmp	r5, r4
	strbcc	r1, [r6, r5]
	ldrbcc	r1, [r6, r4]	@ zero_extendqisi2
.L5:
	add	r0, sp, #4
	bl	tr_bitmap_detect
	cmp	r0, #0
	beq	.L30
	ldrb	r3, [r6, r4]	@ zero_extendqisi2
	cmp	r3, r7
	movne	r7, r3
	ldreq	r10, [fp]
	addne	r5, r5, #1
	b	.L9
.L28:
	mov	r0, r9
	bl	RSTRING
	mov	r1, r5
	bl	RSTR_SET_LEN
	mov	r0, r9
	bl	RSTRING_PTR
	mov	r3, #0
	strb	r3, [r0, r5]
	b	.L1
.L19:
	mov	r5, r0
	b	.L4
.L18:
	mov	r5, r0
	b	.L3
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	STATIC_TR_PATTERN
	.word	FALSE
	.word	.LC0
	.word	TRUE
	.size	str_squeeze, .-str_squeeze
	.comm	TRUE,4,4
	.comm	STATIC_TR_PATTERN,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
