	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function union_heap_to_array
_union_heap_to_array:                   ## @union_heap_to_array
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UH_size@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_UH_total@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	incq	%rbx
	movq	_UH@GOTPCREL(%rip), %r12
	movq	_UH_limit@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-8(%rax,%rbx,8), %r15
	xorl	%edi, %edi
	cmpq	%r15, 8(%rax)
	setle	%dil
	callq	_assert
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	movq	%rcx, -8(%rax,%rbx,8)
	movq	(%r14), %rax
	decq	%rax
	movq	%rax, (%r14)
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_union_heap_insert
	decq	%rbx
	cmpq	$2, %rbx
	ja	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UH_size,8,3                    ## @UH_size
	.comm	_UH_total,8,3                   ## @UH_total
	.comm	_UH,8,3                         ## @UH
	.comm	_UH_limit,8,3                   ## @UH_limit
	.no_dead_strip	_union_heap_to_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function union_heap_to_array
_union_heap_to_array:                   ; @union_heap_to_array
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _UH_size@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UH_size@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _UH_total@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UH_total@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.1:
	and	x21, x8, #0xffffffff
Lloh5:
	adrp	x22, _UH@GOTPAGE
Lloh6:
	ldr	x22, [x22, _UH@GOTPAGEOFF]
Lloh7:
	adrp	x23, _UH_limit@GOTPAGE
Lloh8:
	ldr	x23, [x23, _UH_limit@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x24, x21, #3
	ldr	x19, [x8, x24]
	ldr	x8, [x8, #8]
	cmp	x8, x19
	cset	w0, le
	bl	_assert
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	str	x9, [x8, x24]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
	str	x8, [x23]
	mov	x0, x19
	bl	_union_heap_insert
	sub	x8, x21, #1
	cmp	x21, #2
	mov	x21, x8
	b.hi	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UH_size,8,3                    ; @UH_size
	.comm	_UH_total,8,3                   ; @UH_total
	.comm	_UH,8,3                         ; @UH
	.comm	_UH_limit,8,3                   ; @UH_limit
	.no_dead_strip	_union_heap_to_array
.subsections_via_symbols
