	.file	"extr_execParallel.c_ExecParallelFinish.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ExecParallelFinish
	.type	ExecParallelFinish, @function
ExecParallelFinish:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L22
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR 32[rdi]
	mov	r12d, DWORD PTR [rax]
	test	rdi, rdi
	je	.L3
	test	r12d, r12d
	jle	.L4
	lea	r13d, -1[r12]
	xor	ebx, ebx
	sal	r13, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 4
.L6:
	mov	edi, DWORD PTR [rdi+rbx]
	call	shm_mq_detach@PLT
	mov	rdi, QWORD PTR 32[rbp]
	cmp	r13, rbx
	jne	.L5
.L4:
	call	pfree@PLT
	mov	QWORD PTR 32[rbp], 0
.L3:
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L7
	test	r12d, r12d
	jle	.L8
	lea	r13d, -1[r12]
	xor	ebx, ebx
	sal	r13, 2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	add	rbx, 4
.L10:
	mov	edi, DWORD PTR [rdi+rbx]
	call	DestroyTupleQueueReader@PLT
	mov	rdi, QWORD PTR 24[rbp]
	cmp	r13, rbx
	jne	.L9
.L8:
	call	pfree@PLT
	mov	QWORD PTR 24[rbp], 0
.L7:
	mov	rdi, QWORD PTR 16[rbp]
	call	WaitForParallelWorkersToFinish@PLT
	test	r12d, r12d
	jle	.L13
	lea	eax, -1[r12]
	xor	ebx, ebx
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, rbx
	add	rbx, 4
	call	InstrAccumParallelQuery@PLT
	cmp	r12, rbx
	jne	.L12
.L13:
	mov	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
.L22:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	ExecParallelFinish, .-ExecParallelFinish
	.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_execParallel.c_ExecParallelFinish.c"
	.text
	.align	2
	.global	ExecParallelFinish
	.syntax unified
	.arm
	.fpu softvfp
	.type	ExecParallelFinish, %function
ExecParallelFinish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	cmp	r4, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r5, r0
	ldr	r0, [r0, #16]
	ldr	r3, [r5, #8]
	cmp	r0, #0
	ldr	r7, [r3]
	beq	.L3
	cmp	r7, #0
	ble	.L4
	mov	r6, r4
.L6:
	ldr	r0, [r0, r6, lsl #2]
	add	r6, r6, #1
	bl	shm_mq_detach
	cmp	r7, r6
	ldr	r0, [r5, #16]
	bne	.L6
.L4:
	bl	pfree
	mov	r3, #0
	str	r3, [r5, #16]
.L3:
	ldr	r0, [r5, #12]
	cmp	r0, #0
	beq	.L7
	cmp	r7, #0
	ble	.L8
	mov	r6, #0
.L10:
	ldr	r0, [r0, r6, lsl #2]
	add	r6, r6, #1
	bl	DestroyTupleQueueReader
	cmp	r7, r6
	ldr	r0, [r5, #12]
	bne	.L10
.L8:
	bl	pfree
	mov	r3, #0
	str	r3, [r5, #12]
.L7:
	ldr	r0, [r5, #8]
	bl	WaitForParallelWorkersToFinish
	cmp	r7, #0
	ble	.L12
.L11:
	ldr	r0, [r5, #4]
	add	r0, r0, r4, lsl #2
	add	r4, r4, #1
	bl	InstrAccumParallelQuery
	cmp	r7, r4
	bne	.L11
.L12:
	mov	r3, #1
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	ExecParallelFinish, .-ExecParallelFinish
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
