	.file	"extr_stack.c_stack_popstring.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"not a string"
	.text
	.p2align 4
	.globl	stack_popstring
	.type	stack_popstring, @function
stack_popstring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	stack_empty@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	lea	rax, [rax+rax*2]
	lea	rax, [rdx+rax*8]
	mov	rdi, QWORD PTR 16[rax]
	call	array_free@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR BCODE_STRING[rip]
	lea	rcx, [rax+rax*2]
	lea	rdx, [rdx+rcx*8]
	mov	QWORD PTR 16[rdx], 0
	cmp	QWORD PTR [rdx], rsi
	jne	.L7
	sub	rax, 1
	mov	r12, QWORD PTR 8[rdx]
	mov	QWORD PTR [rbx], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	warnx@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stack_popstring, .-stack_popstring
	.comm	BCODE_STRING,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_stack.c_stack_popstring.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not a string\000"
	.text
	.align	2
	.global	stack_popstring
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_popstring, %function
stack_popstring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	stack_empty
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r0, [r3, #8]
	bl	array_free
	ldm	r5, {r2, r3}
	ldr	r0, .L8
	add	r1, r2, r2, lsl #1
	ldr	ip, [r3, r1, lsl #2]
	ldr	r0, [r0]
	add	r3, r3, r1, lsl #2
	cmp	ip, r0
	str	r4, [r3, #8]
	bne	.L7
	sub	r2, r2, #1
	ldr	r0, [r3, #4]
	str	r2, [r5]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L8+4
	bl	warnx
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	BCODE_STRING
	.word	.LC0
	.size	stack_popstring, .-stack_popstring
	.comm	BCODE_STRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
