	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_join_implied_equalities ## -- Begin function generate_join_implied_equalities
	.p2align	4, 0x90
_generate_join_implied_equalities:      ## @generate_join_implied_equalities
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_NIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r13d
	movq	%rcx, %rdi
	callq	_IS_OTHER_REL
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_bms_is_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	4(%r14), %esi
	movl	%r12d, %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_bms_union
	movl	%eax, %r15d
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	callq	_get_common_eclass_indexes
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$-1, %esi
	callq	_bms_next_member
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movl	%eax, %r12d
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_generate_join_implied_equalities_broken
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_list_concat
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bms_next_member
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%r12d, %esi
	callq	_list_nth
	cmpq	$0, 16(%rax)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movl	12(%rax), %edi
	callq	_list_length
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r13), %edi
	movl	%r15d, %esi
	callq	_bms_overlap
	movl	%eax, %edi
	callq	_Assert
	cmpq	$0, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_generate_join_implied_equalities_normal
	cmpq	$0, (%r13)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generate_join_implied_equalities ; -- Begin function generate_join_implied_equalities
	.p2align	2
_generate_join_implied_equalities:      ; @generate_join_implied_equalities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x26, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _NIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	w24, [x3]
	mov	x0, x3
	bl	_IS_OTHER_REL
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	mov	x25, x24
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_bms_is_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w25, [x19, #4]
	mov	x0, x20
	mov	x1, x25
	bl	_bms_union
	mov	x26, x0
LBB0_2:
	ldr	w1, [x19]
	mov	x0, x22
	mov	x2, x20
	bl	_get_common_eclass_indexes
	mov	x27, x0
	mov	w1, #-1
	bl	_bms_next_member
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	x28, x0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x3, x20
	mov	x4, x25
	mov	x5, x19
	bl	_generate_join_implied_equalities_broken
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x0
	mov	x0, x23
	bl	_list_concat
	mov	x23, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	mov	x1, x28
	bl	_bms_next_member
	mov	x28, x0
	tbnz	w0, #31, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x28
	bl	_list_nth
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldr	w0, [x0, #12]
	bl	_list_length
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x21, #8]
	mov	x1, x26
	bl	_bms_overlap
	bl	_Assert
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	x1, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x20
	mov	x4, x24
	bl	_generate_join_implied_equalities_normal
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
.subsections_via_symbols
