	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function make_union_unique
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_make_union_unique:                     ## @make_union_unique
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_UPPERREL_SETOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	xorl	%edx, %edx
	callq	_fetch_upper_rel
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_generate_setop_grouplist
	movq	%rax, %r12
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movaps	%xmm0, %xmm1
	callq	_choose_hashed_setop
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_create_pathtarget
	movq	_AGG_HASHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_AGGSPLIT_SIMPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_NIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	%eax, %ecx
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	pushq	$0
	pushq	%rbx
	pushq	%r12
	callq	_create_agg_path
	addq	$32, %rsp
	jmp	LBB0_5
LBB0_2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_make_pathkeys_for_sortclauses
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_create_sort_path
	movq	%rax, %r14
LBB0_4:
	movl	8(%r14), %edi
	callq	_list_length
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_create_upper_unique_path
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UPPERREL_SETOP,4,2             ## @UPPERREL_SETOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UNION"

	.comm	_AGG_HASHED,4,2                 ## @AGG_HASHED
	.comm	_AGGSPLIT_SIMPLE,4,2            ## @AGGSPLIT_SIMPLE
	.comm	_NIL,4,2                        ## @NIL
	.no_dead_strip	_make_union_unique
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_union_unique
_make_union_unique:                     ; @make_union_unique
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _UPPERREL_SETOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UPPERREL_SETOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	mov	x2, #0
	bl	_fetch_upper_rel
	mov	x21, x0
	mov	x0, x22
	mov	x1, x23
	bl	_generate_setop_grouplist
	mov	x22, x0
	ldr	d8, [x20]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	fmov	d0, d8
	fmov	d1, d8
	bl	_choose_hashed_setop
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_create_pathtarget
	mov	x3, x0
Lloh5:
	adrp	x8, _AGG_HASHED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AGG_HASHED@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _AGGSPLIT_SIMPLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AGGSPLIT_SIMPLE@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _NIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	str	xzr, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x6, x22
	fmov	d0, d8
	bl	_create_agg_path
	b	LBB0_5
LBB0_2:
	cbz	x22, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_make_pathkeys_for_sortclauses
	mov	x3, x0
	fmov	d0, #-1.00000000
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_create_sort_path
	mov	x20, x0
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_list_length
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	fmov	d0, d8
	bl	_create_upper_unique_path
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UPPERREL_SETOP,4,2             ; @UPPERREL_SETOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UNION"

	.comm	_AGG_HASHED,4,2                 ; @AGG_HASHED
	.comm	_AGGSPLIT_SIMPLE,4,2            ; @AGGSPLIT_SIMPLE
	.comm	_NIL,4,2                        ; @NIL
	.no_dead_strip	_make_union_unique
.subsections_via_symbols
