	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cube_union_v0                  ## -- Begin function cube_union_v0
	.p2align	4, 0x90
_cube_union_v0:                         ## @cube_union_v0
	.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	%rdi, %r13
	cmpq	%rsi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%r13, %rdi
	callq	_DIM
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_DIM
	cmpl	%eax, %r14d
	movq	%rbx, %r12
	cmovlq	%r13, %r12
	cmovlq	%rbx, %r13
	movq	%r13, %rdi
	callq	_DIM
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_CUBE_SIZE
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_SET_VARSIZE
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_SET_DIM
	movq	%r12, %rdi
	callq	_DIM
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_Min
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Min
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_Min
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Max
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_Max
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Max
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r15
	movq	%r13, %rdi
	callq	_DIM
	addl	%ebx, %eax
	cltq
	movq	%r14, (%r15,%rax,8)
	incq	%rbx
	movq	%r12, %rdi
	callq	_DIM
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_3:
	movq	%r13, %rdi
	callq	_DIM
	cmpl	%eax, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_6
## %bb.4:
	movl	%ebx, %ebx
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	shlq	$3, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Min
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_Min
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_LL_COORD
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_UR_COORD
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Max
	xorl	%edi, %edi
	movq	%rax, %rsi
	callq	_Max
	movq	(%r12), %rcx
	addq	%r15, %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	%r13, %rdi
	callq	_DIM
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	callq	_cube_is_point_internal
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_POINT_SIZE
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_SET_VARSIZE
	movq	%r12, %rdi
	callq	_SET_POINT_BIT
	jmp	LBB0_8
LBB0_1:
	movq	%r13, %r12
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cube_union_v0                  ; -- Begin function cube_union_v0
	.p2align	2
_cube_union_v0:                         ; @cube_union_v0
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	cmp	x0, x1
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	bl	_DIM
	mov	x21, x0
	mov	x0, x20
	bl	_DIM
	cmp	w21, w0
	csel	x22, x19, x20, lt
	csel	x21, x20, x19, lt
	mov	x0, x21
	bl	_DIM
	mov	x20, x0
	bl	_CUBE_SIZE
	mov	x23, x0
	bl	_palloc0
	mov	x19, x0
	mov	x1, x23
	bl	_SET_VARSIZE
	mov	x0, x19
	mov	x1, x20
	bl	_SET_DIM
	mov	x0, x22
	bl	_DIM
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_LL_COORD
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x24
	bl	_Min
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_LL_COORD
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x25
	bl	_Min
	mov	x1, x0
	mov	x0, x24
	bl	_Min
	ldr	x8, [x19]
	str	x0, [x8, x23, lsl #3]
	mov	x0, x21
	mov	x1, x23
	bl	_LL_COORD
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x24
	bl	_Max
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_LL_COORD
	mov	x25, x0
	mov	x0, x22
	mov	x1, x23
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x25
	bl	_Max
	mov	x1, x0
	mov	x0, x24
	bl	_Max
	mov	x24, x0
	ldr	x25, [x19]
	mov	x0, x21
	bl	_DIM
	add	w8, w23, w0
	str	x24, [x25, w8, sxtw #3]
	add	x23, x23, #1
	mov	x0, x22
	bl	_DIM
	cmp	x23, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	mov	x0, x21
	bl	_DIM
	cmp	w23, w0
	b.ge	LBB0_8
; %bb.6:
	sbfiz	x24, x20, #3, #32
	mov	w22, w23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_LL_COORD
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x23
	bl	_Min
	mov	x1, x0
	mov	x0, #0
	bl	_Min
	ldr	x8, [x19]
	lsl	x25, x22, #3
	str	x0, [x8, x25]
	mov	x0, x21
	mov	x1, x22
	bl	_LL_COORD
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_UR_COORD
	mov	x1, x0
	mov	x0, x23
	bl	_Max
	mov	x1, x0
	mov	x0, #0
	bl	_Max
	ldr	x8, [x19]
	add	x8, x8, x24
	str	x0, [x8, x25]
	add	x22, x22, #1
	mov	x0, x21
	bl	_DIM
	cmp	x22, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_cube_is_point_internal
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_POINT_SIZE
	mov	x1, x0
	mov	x0, x19
	bl	_SET_VARSIZE
	mov	x0, x19
	bl	_SET_POINT_BIT
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
