	.file	"extr_tuplesort.c_tuplesort_gettuple_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"retrieved too many tuples in a bounded sort"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"unexpected tape position"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"bogus tuple length in backward scan"
	.section	.rodata.str1.1
.LC3:
	.string	"invalid tuplesort state"
	.text
	.p2align 4
	.type	tuplesort_gettuple_common, @function
tuplesort_gettuple_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	WORKER@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	Assert@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L54
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC3[rip]
	xor	r12d, r12d
	call	elog@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L55
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	r12d, r12d
	jne	.L6
	mov	r9d, DWORD PTR 40[rbp]
	xor	edi, edi
	test	r9d, r9d
	setne	dil
	call	Assert@PLT
	mov	r10d, DWORD PTR 4[rbp]
	xor	edi, edi
	test	r10d, r10d
	sete	dil
	call	Assert@PLT
	mov	eax, DWORD PTR 44[rbp]
	test	eax, eax
	jle	.L50
	mov	edi, DWORD PTR 8[rbp]
	test	edi, edi
	jne	.L56
	sub	eax, 1
	mov	DWORD PTR 44[rbp], eax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L50:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L54:
	test	r12d, r12d
	je	.L57
	mov	edi, 1
	call	Assert@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	Assert@PLT
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	je	.L25
	mov	rdi, rbp
	call	RELEASE_SLAB_SLOT@PLT
	mov	QWORD PTR 16[rbp], 0
.L25:
	mov	r12d, DWORD PTR 8[rbp]
	test	r12d, r12d
	jne	.L50
	mov	esi, DWORD PTR 36[rbp]
	mov	edx, 1
	mov	rdi, rbp
	call	getlen@PLT
	test	eax, eax
	jne	.L58
	mov	DWORD PTR 8[rbp], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r12d
	call	Assert@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	Assert@PLT
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	je	.L21
	mov	rdi, rbp
	call	RELEASE_SLAB_SLOT@PLT
	mov	QWORD PTR 16[rbp], 0
.L21:
	mov	edx, DWORD PTR 32[rbp]
	test	edx, edx
	jle	.L50
	mov	rax, QWORD PTR 24[rbp]
	mov	r13, rsp
	mov	rdi, rbp
	mov	rdx, r13
	movdqu	xmm0, XMMWORD PTR [rax]
	mov	r12d, DWORD PTR [rax]
	movups	XMMWORD PTR [rbx], xmm0
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, r12d
	mov	QWORD PTR 16[rbp], rax
	call	mergereadnext@PLT
	test	eax, eax
	jne	.L22
	mov	rdi, rbp
	call	tuplesort_heap_delete_top@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, r12d
	call	LogicalTapeRewindForWrite@PLT
.L52:
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L57:
	mov	esi, DWORD PTR 40[rbp]
	xor	edi, edi
	test	esi, esi
	setne	dil
	call	Assert@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	Assert@PLT
	mov	rsi, QWORD PTR 16[rbp]
	test	rsi, rsi
	je	.L14
	mov	rdi, rbp
	call	RELEASE_SLAB_SLOT@PLT
	mov	QWORD PTR 16[rbp], 0
.L14:
	mov	ecx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 12[rbp]
	test	ecx, ecx
	je	.L16
	mov	edx, 8
	call	LogicalTapeBackspace@PLT
	test	rax, rax
	je	.L50
	cmp	rax, 8
	je	.L17
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	call	elog@PLT
.L17:
	mov	DWORD PTR 8[rbp], 0
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, 1
	call	Assert@PLT
	mov	eax, DWORD PTR 4[rbp]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	Assert@PLT
	movsx	rax, DWORD PTR 44[rbp]
	cmp	eax, DWORD PTR 32[rbp]
	jge	.L59
	lea	edx, 1[rax]
	sal	rax, 4
	add	rax, QWORD PTR 24[rbp]
	mov	r12d, 1
	movdqu	xmm1, XMMWORD PTR [rax]
	mov	DWORD PTR 44[rbp], edx
	movups	XMMWORD PTR [rbx], xmm1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L56:
	mov	DWORD PTR 8[rbp], 0
.L11:
	cdqe
	mov	r12d, 1
	sal	rax, 4
	add	rax, QWORD PTR 24[rbp]
	movdqu	xmm2, XMMWORD PTR -16[rax]
	movups	XMMWORD PTR [rbx], xmm2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L59:
	mov	r8d, DWORD PTR 52[rbp]
	mov	DWORD PTR 8[rbp], 1
	test	r8d, r8d
	je	.L50
	cmp	eax, DWORD PTR 48[rbp]
	jl	.L50
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	call	elog@PLT
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, 4
	call	LogicalTapeBackspace@PLT
	test	rax, rax
	je	.L50
	cmp	rax, 4
	je	.L19
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	call	elog@PLT
.L19:
	mov	esi, DWORD PTR 36[rbp]
	xor	edx, edx
	mov	rdi, rbp
	call	getlen@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 12[rbp]
	mov	r12d, eax
	lea	edx, 8[r12]
	call	LogicalTapeBackspace@PLT
	lea	rdx, 4[r12]
	cmp	rdx, rax
	je	.L50
	add	r12, 8
	cmp	r12, rax
	je	.L18
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC2[rip]
	call	elog@PLT
.L18:
	mov	esi, DWORD PTR 36[rbp]
	xor	edx, edx
	mov	rdi, rbp
	call	getlen@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 12[rbp]
	mov	r12d, eax
	mov	edx, eax
	call	LogicalTapeBackspace@PLT
	mov	edx, r12d
	cmp	rdx, rax
	je	.L20
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC2[rip]
	call	elog@PLT
.L20:
	mov	edx, DWORD PTR 36[rbp]
	mov	ecx, r12d
.L51:
	mov	rsi, rbx
	mov	rdi, rbp
	call	READTUP@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbp], rax
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r12d
	call	tuplesort_heap_replace_top@PLT
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L58:
	mov	edx, DWORD PTR 36[rbp]
	mov	ecx, eax
	jmp	.L51
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tuplesort_gettuple_common, .-tuplesort_gettuple_common
	.comm	ERROR,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_tuplesort.c_tuplesort_gettuple_common.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"retrieved too many tuples in a bounded sort\000"
	.align	2
.LC1:
	.ascii	"unexpected tape position\000"
	.align	2
.LC2:
	.ascii	"bogus tuple length in backward scan\000"
	.align	2
.LC3:
	.ascii	"invalid tuplesort state\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tuplesort_gettuple_common, %function
tuplesort_gettuple_common:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L60
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	bl	WORKER
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L56
	ldr	r3, .L60+4
	ldr	r1, .L60+8
	ldr	r0, [r3]
	bl	elog
	mov	r5, #0
.L1:
	ldr	r3, .L60
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L57
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	cmp	r5, #0
	bne	.L6
	ldr	r0, [r4, #32]
	subs	r0, r0, #0
	movne	r0, #1
	bl	Assert
	ldr	r0, [r4, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4, #36]
	cmp	r3, #0
	ble	.L53
	ldr	r2, [r4, #8]
	cmp	r2, #0
	strne	r5, [r4, #8]
	bne	.L11
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4, #36]
	bne	.L11
.L53:
	mov	r5, #0
	b	.L1
.L56:
	cmp	r5, #0
	beq	.L58
	mov	r0, #1
	bl	Assert
	ldr	r0, [r4, #4]
	bl	Assert
	ldr	r1, [r4, #16]
	cmp	r1, #0
	beq	.L25
	mov	r0, r4
	bl	RELEASE_SLAB_SLOT
	mov	r3, #0
	str	r3, [r4, #16]
.L25:
	ldr	r5, [r4, #8]
	cmp	r5, #0
	bne	.L53
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r4, #28]
	bl	getlen
	subs	r3, r0, #0
	moveq	r3, #1
	streq	r3, [r4, #8]
	beq	.L1
.L54:
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r4, #28]
	bl	READTUP
	ldr	r3, [r6, #4]
	mov	r5, #1
	str	r3, [r4, #16]
	b	.L1
.L3:
	mov	r0, r5
	bl	Assert
	ldr	r0, [r4, #4]
	bl	Assert
	ldr	r1, [r4, #16]
	cmp	r1, #0
	beq	.L21
	mov	r0, r4
	bl	RELEASE_SLAB_SLOT
	mov	r3, #0
	str	r3, [r4, #16]
.L21:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	ble	.L53
	ldr	r3, [r4, #20]
	add	r2, sp, #4
	ldm	r3, {r0, r1}
	stm	r6, {r0, r1}
	mov	r5, r0
	str	r1, [r4, #16]
	mov	r1, r0
	mov	r0, r4
	bl	mergereadnext
	cmp	r0, #0
	bne	.L22
	mov	r0, r4
	bl	tuplesort_heap_delete_top
	mov	r1, r5
	ldr	r0, [r4, #12]
	bl	LogicalTapeRewindForWrite
.L23:
	mov	r5, #1
	b	.L1
.L58:
	ldr	r0, [r4, #32]
	subs	r0, r0, #0
	movne	r0, #1
	bl	Assert
	ldr	r0, [r4, #4]
	bl	Assert
	ldr	r1, [r4, #16]
	cmp	r1, #0
	beq	.L14
	mov	r0, r4
	bl	RELEASE_SLAB_SLOT
	str	r5, [r4, #16]
.L14:
	ldr	r3, [r4, #8]
	ldr	r0, [r4, #12]
	cmp	r3, #0
	ldr	r1, [r4, #28]
	beq	.L16
	mov	r2, #8
	bl	LogicalTapeBackspace
	cmp	r0, #0
	beq	.L53
	cmp	r0, #8
	beq	.L17
	ldr	r3, .L60+4
	ldr	r1, .L60+12
	ldr	r0, [r3]
	bl	elog
.L17:
	mov	r3, #0
	str	r3, [r4, #8]
	b	.L18
.L6:
	mov	r0, #1
	bl	Assert
	ldr	r0, [r4, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	Assert
	ldr	r3, [r4, #36]
	ldr	r2, [r4, #24]
	cmp	r3, r2
	bge	.L59
	ldr	r2, [r4, #20]
	add	r1, r3, #1
	str	r1, [r4, #36]
	add	r3, r2, r3, lsl #3
	ldm	r3, {r0, r1}
	mov	r5, #1
	stm	r6, {r0, r1}
	b	.L1
.L11:
	ldr	r2, [r4, #20]
	sub	r3, r3, #-536870911
	add	r3, r2, r3, lsl #3
	ldm	r3, {r0, r1}
	mov	r5, #1
	stm	r6, {r0, r1}
	b	.L1
.L16:
	mov	r2, #4
	bl	LogicalTapeBackspace
	cmp	r0, #0
	beq	.L53
	cmp	r0, #4
	beq	.L19
	ldr	r3, .L60+4
	ldr	r1, .L60+12
	ldr	r0, [r3]
	bl	elog
.L19:
	mov	r2, #0
	ldr	r1, [r4, #28]
	mov	r0, r4
	bl	getlen
	add	r7, r0, #8
	mov	r5, r0
	mov	r2, r7
	ldr	r1, [r4, #28]
	ldr	r0, [r4, #12]
	bl	LogicalTapeBackspace
	add	r5, r5, #4
	cmp	r5, r0
	beq	.L53
	cmp	r7, r0
	beq	.L18
	ldr	r3, .L60+4
	ldr	r1, .L60+16
	ldr	r0, [r3]
	bl	elog
.L18:
	mov	r2, #0
	ldr	r1, [r4, #28]
	mov	r0, r4
	bl	getlen
	ldr	r1, [r4, #28]
	mov	r5, r0
	mov	r2, r0
	ldr	r0, [r4, #12]
	bl	LogicalTapeBackspace
	cmp	r5, r0
	beq	.L20
	ldr	r3, .L60+4
	ldr	r1, .L60+16
	ldr	r0, [r3]
	bl	elog
.L20:
	mov	r3, r5
	b	.L54
.L59:
	mov	r1, #1
	ldr	r2, [r4, #44]
	str	r1, [r4, #8]
	cmp	r2, #0
	beq	.L53
	ldr	r2, [r4, #40]
	cmp	r3, r2
	blt	.L53
	ldr	r3, .L60+4
	ldr	r1, .L60+20
	ldr	r0, [r3]
	bl	elog
	b	.L53
.L22:
	mov	r0, r4
	add	r1, sp, #4
	str	r5, [sp, #4]
	bl	tuplesort_heap_replace_top
	b	.L23
.L57:
	bl	__stack_chk_fail
.L61:
	.align	2
.L60:
	.word	.LC4
	.word	ERROR
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	tuplesort_gettuple_common, .-tuplesort_gettuple_common
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
