	.file	"extr_string.c_mrb_str_del_suffix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"s"
	.text
	.p2align 4
	.type	mrb_str_del_suffix, @function
mrb_str_del_suffix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 8[rsp]
	lea	rdx, 16[rsp]
	call	mrb_get_args@PLT
	mov	edi, ebp
	call	RSTRING_LEN@PLT
	mov	r13, QWORD PTR 8[rsp]
	cmp	r13, rax
	jg	.L7
	mov	r14, QWORD PTR 16[rsp]
	mov	edi, ebp
	mov	rbx, rax
	call	RSTRING_PTR@PLT
	mov	rdx, r13
	lea	rdi, [rax+rbx]
	mov	rsi, r14
	sub	rdi, QWORD PTR 8[rsp]
	call	memcmp@PLT
	test	rax, rax
	jne	.L7
	sub	rbx, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r12
	mov	rcx, rbx
	call	mrb_str_substr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, ebp
	mov	rdi, r12
	call	mrb_str_dup@PLT
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mrb_str_del_suffix, .-mrb_str_del_suffix
	.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_mrb_str_del_suffix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_str_del_suffix, %function
mrb_str_del_suffix:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	sub	sp, sp, #16
	ldr	ip, .L10
	add	r3, sp, #4
	ldr	r1, .L10+4
	add	r2, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	mov	r6, r0
	bl	mrb_get_args
	mov	r0, r4
	bl	RSTRING_LEN
	ldr	r3, [sp, #4]
	cmp	r3, r0
	bgt	.L7
	mov	r5, r0
	mov	r0, r4
	bl	RSTRING_PTR
	ldr	r2, [sp, #4]
	add	r0, r0, r5
	sub	r0, r0, r2
	ldr	r1, [sp, #8]
	bl	memcmp
	subs	r2, r0, #0
	bne	.L7
	ldr	r3, [sp, #4]
	mov	r1, r4
	mov	r0, r6
	sub	r3, r5, r3
	bl	mrb_str_substr
	b	.L1
.L7:
	mov	r1, r4
	mov	r0, r6
	bl	mrb_str_dup
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC0
	.size	mrb_str_del_suffix, .-mrb_str_del_suffix
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
