	.file	"extr_multi_join_order.c_ReferenceJoin.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ReferenceJoin, @function
ReferenceJoin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	list_length@PLT
	mov	edi, DWORD PTR [r12]
	mov	r13d, eax
	call	PartitionMethod@PLT
	mov	r14d, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	PartitionMethod@PLT
	test	r13d, r13d
	jle	.L1
	cmp	QWORD PTR JOIN_INNER[rip], rbx
	je	.L3
	cmp	QWORD PTR JOIN_LEFT[rip], rbx
	je	.L3
	cmp	QWORD PTR JOIN_ANTI[rip], rbx
	je	.L3
	cmp	QWORD PTR JOIN_RIGHT[rip], rbx
	je	.L18
.L6:
	cmp	QWORD PTR JOIN_FULL[rip], rbx
	jne	.L1
	movzx	edx, BYTE PTR DISTRIBUTE_BY_NONE[rip]
	cmp	dl, r14b
	jne	.L1
	cmp	dl, al
	jne	.L1
.L5:
	mov	ecx, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR 8[rbp]
	mov	rdi, r12
	mov	r8d, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR REFERENCE_JOIN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	MakeJoinOrderNode@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	BYTE PTR DISTRIBUTE_BY_NONE[rip], r14b
	je	.L5
	cmp	QWORD PTR JOIN_RIGHT[rip], rbx
	jne	.L6
.L18:
	cmp	BYTE PTR DISTRIBUTE_BY_NONE[rip], al
	je	.L5
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ReferenceJoin, .-ReferenceJoin
	.comm	REFERENCE_JOIN,4,4
	.comm	JOIN_RIGHT,8,8
	.comm	JOIN_LEFT,8,8
	.comm	JOIN_INNER,8,8
	.comm	JOIN_FULL,8,8
	.comm	JOIN_ANTI,8,8
	.comm	DISTRIBUTE_BY_NONE,1,1
	.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_multi_join_order.c_ReferenceJoin.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReferenceJoin, %function
ReferenceJoin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	sub	sp, sp, #8
	mov	r0, r2
	mov	r6, r1
	mov	r4, r3
	bl	list_length
	mov	r8, r0
	ldr	r0, [r6]
	bl	PartitionMethod
	ldr	r2, [r5, #12]
	mov	r7, r0
	ldr	r0, [r2]
	bl	PartitionMethod
	cmp	r8, #0
	ble	.L8
	ldr	r3, .L13
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L3
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L3
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L3
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L12
.L6:
	ldr	r3, .L13+16
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L8
	ldr	r3, .L13+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r7
	cmpeq	r3, r0
	moveq	r0, #1
	movne	r0, #0
	bne	.L1
.L5:
	ldr	r2, .L13+24
	ldr	r3, [r5]
	ldr	r1, [r2]
	str	r3, [sp]
	mov	r0, r6
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #8]
	bl	MakeJoinOrderNode
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L13+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r7
	beq	.L5
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L6
.L12:
	ldr	r3, .L13+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r0
	beq	.L5
.L8:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	JOIN_INNER
	.word	JOIN_LEFT
	.word	JOIN_ANTI
	.word	JOIN_RIGHT
	.word	JOIN_FULL
	.word	DISTRIBUTE_BY_NONE
	.word	REFERENCE_JOIN
	.size	ReferenceJoin, .-ReferenceJoin
	.comm	REFERENCE_JOIN,4,4
	.comm	JOIN_RIGHT,4,4
	.comm	JOIN_LEFT,4,4
	.comm	JOIN_INNER,4,4
	.comm	JOIN_FULL,4,4
	.comm	JOIN_ANTI,4,4
	.comm	DISTRIBUTE_BY_NONE,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
