	.file	"extr_pt_retstack.c_pt_retstack_pop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pt_retstack_pop
	.type	pt_retstack_pop, @function
pt_retstack_pop:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR pte_invalid[rip]
	neg	r8d
	test	rdi, rdi
	je	.L1
	mov	r8d, DWORD PTR pte_retstack_empty[rip]
	mov	edx, DWORD PTR [rdi]
	neg	r8d
	cmp	DWORD PTR 4[rdi], edx
	je	.L1
	test	edx, edx
	lea	eax, -1[rdx]
	cmove	eax, DWORD PTR pt_retstack_size[rip]
	xor	r8d, r8d
	mov	DWORD PTR [rdi], eax
	test	rsi, rsi
	je	.L1
	mov	rdx, QWORD PTR 8[rdi]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	mov	DWORD PTR [rsi], eax
.L1:
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	pt_retstack_pop, .-pt_retstack_pop
	.comm	pte_retstack_empty,4,4
	.comm	pte_invalid,4,4
	.comm	pt_retstack_size,4,4
	.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_pt_retstack.c_pt_retstack_pop.c"
	.text
	.align	2
	.global	pt_retstack_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pt_retstack_pop, %function
pt_retstack_pop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r0, #0
	beq	.L9
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	cmp	r2, r3
	beq	.L10
	cmp	r3, #0
	ldreq	r3, .L11
	subne	r3, r3, #1
	ldreq	r3, [r3]
	cmp	r1, #0
	ldrne	r2, [r0, #8]
	str	r3, [r0]
	ldrne	r3, [r2, r3, lsl #2]
	movne	r0, #0
	strne	r3, [r1]
	moveq	r0, r1
	bx	lr
.L9:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L10:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L12:
	.align	2
.L11:
	.word	pt_retstack_size
	.word	pte_invalid
	.word	pte_retstack_empty
	.size	pt_retstack_pop, .-pt_retstack_pop
	.comm	pte_retstack_empty,4,4
	.comm	pte_invalid,4,4
	.comm	pt_retstack_size,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
