	.file	"extr_costsize.c_final_cost_nestloop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	final_cost_nestloop
	.type	final_cost_nestloop, @function
final_cost_nestloop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm5, xmm5
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 120
	.cfi_def_cfa_offset 160
	movsd	xmm7, QWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 80[rsi]
	movsd	QWORD PTR 8[rsp], xmm7
	movsd	xmm7, QWORD PTR 8[rdx]
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR 72[rsi]
	movsd	QWORD PTR [rsp], xmm7
	comisd	xmm5, xmm1
	movsd	xmm2, QWORD PTR [rax]
	jb	.L39
.L2:
	movsd	xmm1, QWORD PTR .LC0[rip]
.L3:
	pxor	xmm7, xmm7
	comisd	xmm7, xmm2
	jb	.L40
.L4:
	mov	rax, QWORD PTR 56[rbx]
	movsd	xmm2, QWORD PTR .LC0[rip]
	test	rax, rax
	je	.L6
.L36:
	movsd	xmm0, QWORD PTR [rax]
	cmp	QWORD PTR 16[rbx], 0
	movsd	QWORD PTR 8[rbx], xmm0
	jle	.L8
	lea	rdi, 8[rbx]
	movsd	QWORD PTR 24[rsp], xmm2
	movsd	QWORD PTR 16[rsp], xmm1
	call	get_parallel_divisor@PLT
	movsd	xmm3, QWORD PTR 8[rbx]
	divsd	xmm3, xmm0
	movapd	xmm0, xmm3
	call	clamp_row_est@PLT
	movsd	xmm2, QWORD PTR 24[rsp]
	movsd	xmm1, QWORD PTR 16[rsp]
	movsd	QWORD PTR 8[rbx], xmm0
.L8:
	mov	eax, DWORD PTR enable_nestloop[rip]
	test	eax, eax
	jne	.L9
	movsd	xmm4, QWORD PTR 8[rsp]
	addsd	xmm4, QWORD PTR disable_cost[rip]
	movsd	QWORD PTR 8[rsp], xmm4
.L9:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR JOIN_SEMI[rip]
	je	.L10
	cmp	rax, QWORD PTR JOIN_ANTI[rip]
	je	.L10
	cmp	QWORD PTR 16[r12], 0
	je	.L11
.L10:
	movsd	xmm0, QWORD PTR [r12]
	movsd	xmm4, QWORD PTR .LC2[rip]
	movsd	xmm6, QWORD PTR .LC3[rip]
	movsd	xmm5, QWORD PTR 16[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR 24[rsp], xmm5
	movsd	xmm5, QWORD PTR 24[rbp]
	movapd	xmm3, xmm0
	andpd	xmm3, xmm4
	ucomisd	xmm6, xmm3
	ja	.L41
.L12:
	movsd	xmm6, QWORD PTR .LC0[rip]
	subsd	xmm1, xmm0
	mov	rdi, rbx
	movsd	QWORD PTR 64[rsp], xmm5
	addsd	xmm6, QWORD PTR 8[r12]
	movsd	xmm3, QWORD PTR .LC4[rip]
	movsd	QWORD PTR 40[rsp], xmm2
	movsd	QWORD PTR 56[rsp], xmm0
	movsd	QWORD PTR 48[rsp], xmm1
	divsd	xmm3, xmm6
	movapd	xmm6, xmm2
	movsd	QWORD PTR 72[rsp], xmm0
	mulsd	xmm6, xmm0
	mulsd	xmm6, xmm3
	movsd	QWORD PTR 32[rsp], xmm3
	movsd	QWORD PTR 16[rsp], xmm6
	call	has_indexed_join_quals@PLT
	movsd	xmm3, QWORD PTR 32[rsp]
	movsd	xmm2, QWORD PTR 40[rsp]
	test	rax, rax
	movsd	xmm1, QWORD PTR 48[rsp]
	movsd	xmm4, QWORD PTR 56[rsp]
	movsd	xmm5, QWORD PTR 64[rsp]
	jne	.L42
	mulsd	xmm2, xmm1
	movsd	xmm7, QWORD PTR [rsp]
	comisd	xmm1, QWORD PTR .LC0[rip]
	addsd	xmm2, QWORD PTR 16[rsp]
	addsd	xmm7, QWORD PTR 24[rsp]
	movsd	QWORD PTR 16[rsp], xmm2
	movsd	QWORD PTR [rsp], xmm7
	jb	.L34
	subsd	xmm1, QWORD PTR .LC0[rip]
.L19:
	pxor	xmm7, xmm7
	comisd	xmm4, xmm7
	jbe	.L20
	mulsd	xmm4, xmm5
	movapd	xmm0, xmm4
	mulsd	xmm0, xmm3
	addsd	xmm0, QWORD PTR [rsp]
	movsd	QWORD PTR [rsp], xmm0
.L20:
	pxor	xmm4, xmm4
	comisd	xmm1, xmm4
	jbe	.L16
	mulsd	xmm1, xmm5
	addsd	xmm1, QWORD PTR [rsp]
	movsd	QWORD PTR [rsp], xmm1
.L16:
	mov	esi, DWORD PTR 64[rbx]
	lea	rdi, 80[rsp]
	mov	rdx, r13
	call	cost_qual_eval@PLT
	mov	rax, QWORD PTR 40[rbx]
	pxor	xmm2, xmm2
	movsd	xmm1, QWORD PTR 88[rsp]
	addsd	xmm1, QWORD PTR cpu_tuple_cost[rip]
	mulsd	xmm1, QWORD PTR 16[rsp]
	cvtsi2sd	xmm2, DWORD PTR 8[rax]
	mulsd	xmm2, QWORD PTR 8[rbx]
	addsd	xmm1, QWORD PTR [rsp]
	movsd	xmm0, QWORD PTR 8[rsp]
	addsd	xmm0, QWORD PTR 80[rsp]
	addsd	xmm0, QWORD PTR [rax]
	addsd	xmm1, xmm2
	movsd	QWORD PTR 24[rbx], xmm0
	addsd	xmm0, xmm1
	movsd	QWORD PTR 32[rbx], xmm0
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 120
	.cfi_remember_state
	.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
.L42:
	.cfi_restore_state
	movsd	xmm4, QWORD PTR 24[rsp]
	movsd	xmm0, QWORD PTR 72[rsp]
	comisd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm4, xmm3
	addsd	xmm4, QWORD PTR [rsp]
	jbe	.L14
	subsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm5
	mulsd	xmm0, xmm3
	addsd	xmm4, xmm0
.L14:
	mulsd	xmm1, xmm5
	divsd	xmm1, xmm2
	addsd	xmm1, xmm4
	movsd	QWORD PTR [rsp], xmm1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L41:
	addsd	xmm3, xmm6
	andnpd	xmm4, xmm0
	movapd	xmm0, xmm4
	subsd	xmm3, xmm6
	orpd	xmm0, xmm3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mulsd	xmm1, xmm2
	movsd	QWORD PTR 16[rsp], xmm1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L40:
	movapd	xmm0, xmm2
	movsd	QWORD PTR 24[rsp], xmm1
	movsd	QWORD PTR 16[rsp], xmm2
	call	isnan@PLT
	movsd	xmm2, QWORD PTR 16[rsp]
	movsd	xmm1, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 56[rbx]
	test	rax, rax
	jne	.L36
.L6:
	mov	rax, QWORD PTR 48[rbx]
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L39:
	movapd	xmm0, xmm1
	movsd	QWORD PTR 24[rsp], xmm2
	movsd	QWORD PTR 16[rsp], xmm1
	call	isnan@PLT
	movsd	xmm1, QWORD PTR 16[rsp]
	movsd	xmm2, QWORD PTR 24[rsp]
	test	rax, rax
	je	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L34:
	subsd	xmm4, QWORD PTR .LC0[rip]
	jmp	.L19
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	final_cost_nestloop, .-final_cost_nestloop
	.comm	enable_nestloop,4,4
	.comm	disable_cost,8,8
	.comm	cpu_tuple_cost,8,8
	.comm	JOIN_SEMI,8,8
	.comm	JOIN_ANTI,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	4294967295
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC3:
	.long	0
	.long	1127219200
	.align 8
.LC4:
	.long	0
	.long	1073741824
	.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_costsize.c_final_cost_nestloop.c"
	.text
	.global	__aeabi_dcmple
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmpge
	.global	__aeabi_i2d
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	final_cost_nestloop
	.syntax unified
	.arm
	.fpu softvfp
	.type	final_cost_nestloop, %function
final_cost_nestloop:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	mov	r4, r1
	mov	r5, r3
	ldr	r3, [r1, #64]
	ldr	r1, [r1, #60]
	sub	sp, sp, #92
	ldr	ip, .L41
	mov	fp, r2
	ldmia	r3, {r6-r7}
	ldmia	r1, {r8-r9}
	mov	r2, #0
	mov	r3, #0
	str	r10, [sp, #36]
	mov	r0, r6
	mov	r1, r7
	ldr	ip, [ip]
	str	ip, [sp, #84]
	mov	ip,#0
	bl	__aeabi_dcmple
	ldmia	fp, {r2-r3}
	cmp	r0, #0
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	add	r3, fp, #8
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	beq	.L37
.L2:
	mov	r6, #0
	ldr	r7, .L41+4
.L3:
	mov	r2, #0
	mov	r3, #0
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dcmple
	cmp	r0, #0
	beq	.L38
.L4:
	mov	r8, #0
	ldr	r9, .L41+4
.L5:
	ldr	r3, [r4, #48]
	cmp	r3, #0
	ldreq	r3, [r4, #44]
	ldmia	r3, {r0-r1}
	ldr	r3, [r4, #16]
	str	r0, [r4, #8]
	str	r1, [r4, #12]
	cmp	r3, #0
	ble	.L8
	add	r0, r4, #8
	bl	get_parallel_divisor
	mov	r2, r0
	mov	r3, r1
	add	r1, r4, #8
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	bl	clamp_row_est
	str	r0, [r4, #8]
	str	r1, [r4, #12]
.L8:
	ldr	r3, .L41+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	add	r1, sp, #8
	ldmia	r1, {r0-r1}
	ldr	r3, .L41+12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	str	r0, [sp, #8]
	str	r1, [sp, #12]
.L9:
	ldr	r2, .L41+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L41+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r3, [r5, #16]
	cmp	r3, #0
	beq	.L11
.L10:
	ldmia	r5, {r2-r3}
	add	r1, fp, #16
	ldmia	r1, {r0-r1}
	add	fp, fp, #24
	ldmia	fp, {r10-fp}
	str	r0, [sp, #56]
	str	r1, [sp, #60]
	mov	r0, r6
	mov	r1, r7
	str	r10, [sp, #40]
	str	fp, [sp, #44]
	bl	__aeabi_dmul
	bl	rint
	mov	r10, r0
	mov	fp, r1
	mov	r0, r6
	mov	r1, r7
	mov	r2, r10
	mov	r3, fp
	bl	__aeabi_dsub
	mov	r6, r0
	mov	r7, r1
	add	r1, r5, #8
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L41+4
	str	r6, [sp, #24]
	str	r7, [sp, #28]
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	__aeabi_ddiv
	mov	r6, r1
	mov	r5, r0
	mov	r2, r10
	mov	r3, fp
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dmul
	mov	r3, r6
	mov	r2, r5
	str	r5, [sp, #48]
	str	r6, [sp, #52]
	bl	__aeabi_dmul
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	str	r6, [sp, #16]
	str	r7, [sp, #20]
	bl	has_indexed_join_quals
	cmp	r0, #0
	bne	.L39
	mov	r0, r8
	mov	r1, r9
	add	r9, sp, #24
	ldmia	r9, {r8-r9}
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	add	r3, sp, #56
	ldmia	r3, {r2-r3}
	mov	r6, r0
	mov	r7, r1
	ldmia	sp, {r0-r1}
	str	r6, [sp, #16]
	str	r7, [sp, #20]
	bl	__aeabi_dadd
	mov	r6, r0
	mov	r7, r1
	mov	r2, #0
	mov	r0, r8
	mov	r1, r9
	ldr	r3, .L41+4
	stm	sp, {r6-r7}
	bl	__aeabi_dcmpge
	cmp	r0, #0
	beq	.L33
	mov	r0, r8
	mov	r1, r9
	mov	r2, #0
	ldr	r3, .L41+4
	bl	__aeabi_dsub
	str	r0, [sp, #24]
	str	r1, [sp, #28]
.L18:
	mov	r2, #0
	mov	r3, #0
	mov	r0, r10
	mov	r1, fp
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L19
	add	r3, sp, #40
	ldmia	r3, {r2-r3}
	mov	r0, r10
	mov	r1, fp
	bl	__aeabi_dmul
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldmia	sp, {r0-r1}
	bl	__aeabi_dadd
	stm	sp, {r0-r1}
.L19:
	add	r6, sp, #24
	ldmia	r6, {r5-r6}
	mov	r2, #0
	mov	r3, #0
	mov	r0, r5
	mov	r1, r6
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L15
	add	r3, sp, #40
	ldmia	r3, {r2-r3}
	mov	r0, r5
	mov	r1, r6
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldmia	sp, {r0-r1}
	bl	__aeabi_dadd
	stm	sp, {r0-r1}
.L15:
	ldr	r2, [sp, #36]
	ldr	r1, [r4, #56]
	add	r0, sp, #64
	bl	cost_qual_eval
	add	r3, sp, #64
	ldmia	r3, {r2-r3}
	add	r1, sp, #8
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	ldr	r3, .L41+24
	mov	r6, r0
	ldmia	r3, {r2-r3}
	mov	r7, r1
	add	r1, sp, #72
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	add	r3, sp, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	ldmia	sp, {r2-r3}
	bl	__aeabi_dadd
	ldr	r5, [r4, #40]
	mov	r8, r0
	ldmia	r5, {r2-r3}
	mov	r9, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r6, r0
	ldr	r0, [r5, #8]
	mov	r7, r1
	bl	__aeabi_i2d
	add	r3, r4, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_dadd
	str	r6, [r4, #24]
	str	r7, [r4, #28]
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	str	r0, [r4, #32]
	str	r1, [r4, #36]
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	add	r1, sp, #56
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	ldmia	sp, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, #0
	mov	r6, r0
	mov	r7, r1
	mov	r0, r10
	mov	r1, fp
	ldr	r3, .L41+4
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L13
	mov	r2, #0
	ldr	r3, .L41+4
	mov	r0, r10
	mov	r1, fp
	bl	__aeabi_dsub
	add	r3, sp, #40
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	add	r3, sp, #48
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dadd
	mov	r6, r0
	mov	r7, r1
.L13:
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	add	r1, sp, #40
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r8
	mov	r3, r9
	bl	__aeabi_ddiv
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dadd
	stm	sp, {r0-r1}
	b	.L15
.L11:
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	str	r0, [sp, #16]
	str	r1, [sp, #20]
	b	.L15
.L38:
	mov	r0, r8
	mov	r1, r9
	bl	isnan
	cmp	r0, #0
	beq	.L5
	b	.L4
.L37:
	mov	r0, r6
	mov	r1, r7
	bl	isnan
	cmp	r0, #0
	beq	.L3
	b	.L2
.L33:
	mov	r0, r10
	mov	r1, fp
	mov	r2, #0
	ldr	r3, .L41+4
	bl	__aeabi_dsub
	mov	r10, r0
	mov	fp, r1
	b	.L18
.L40:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	1072693248
	.word	enable_nestloop
	.word	disable_cost
	.word	JOIN_SEMI
	.word	JOIN_ANTI
	.word	cpu_tuple_cost
	.size	final_cost_nestloop, .-final_cost_nestloop
	.comm	enable_nestloop,4,4
	.comm	disable_cost,8,8
	.comm	cpu_tuple_cost,8,8
	.comm	JOIN_SEMI,4,4
	.comm	JOIN_ANTI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
