	.file	"extr_prio-queue.c_prio_queue_reverse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"prio_queue_reverse() on non-LIFO queue"
	.text
	.p2align 4
	.globl	prio_queue_reverse
	.type	prio_queue_reverse, @function
prio_queue_reverse:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	lea	rdi, .LC0[rip]
	call	BUG@PLT
.L2:
	mov	eax, DWORD PTR 0[rbp]
	lea	edx, -1[rax]
	test	edx, edx
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	swap@PLT
	mov	edx, ebx
	not	edx
	add	edx, DWORD PTR 0[rbp]
	cmp	edx, ebx
	jg	.L4
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	prio_queue_reverse, .-prio_queue_reverse
	.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_prio-queue.c_prio_queue_reverse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"prio_queue_reverse() on non-LIFO queue\000"
	.text
	.align	2
	.global	prio_queue_reverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	prio_queue_reverse, %function
prio_queue_reverse:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r5, r0
	beq	.L2
	ldr	r0, .L11
	bl	BUG
.L2:
	ldr	r2, [r5]
	sub	r2, r2, #1
	cmp	r2, #0
	pople	{r4, r5, r6, pc}
	mov	r4, #0
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	swap
	ldr	r2, [r5]
	add	r4, r4, #1
	sub	r2, r2, #1
	sub	r2, r2, r4
	cmp	r2, r4
	bgt	.L4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	prio_queue_reverse, .-prio_queue_reverse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
