	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function union_heap_init
_union_heap_init:                       ## @union_heap_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_UH_allocated@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%edi, %eax
	jge	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_UH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_free
LBB0_3:
	leal	4(,%rbx,4), %edi
	callq	_malloc
	movq	_UH@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_assert
	movl	%ebx, (%r14)
	movl	%ebx, %eax
LBB0_4:
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setge	%dil
	callq	_assert
	movq	_UH_limit@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_UH_size@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_UH_total@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UH_allocated,4,2               ## @UH_allocated
	.comm	_UH,4,2                         ## @UH
	.comm	_UH_limit,4,2                   ## @UH_limit
	.comm	_UH_size,8,3                    ## @UH_size
	.comm	_UH_total,8,3                   ## @UH_total
	.no_dead_strip	_union_heap_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function union_heap_init
_union_heap_init:                       ; @union_heap_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _UH_allocated@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UH_allocated@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.ge	LBB0_4
; %bb.1:
Lloh2:
	adrp	x21, _UH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _UH@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_free
LBB0_3:
	lsl	w8, w19, #2
	add	w0, w8, #4
	bl	_malloc
	str	w0, [x21]
	bl	_assert
	str	w19, [x20]
	mov	x8, x19
LBB0_4:
	cmp	w8, w19
	cset	w0, ge
	bl	_assert
Lloh4:
	adrp	x8, _UH_limit@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UH_limit@GOTPAGEOFF]
Lloh6:
	str	w19, [x8]
Lloh7:
	adrp	x8, _UH_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UH_size@GOTPAGEOFF]
Lloh9:
	str	xzr, [x8]
Lloh10:
	adrp	x8, _UH_total@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UH_total@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UH_allocated,4,2               ; @UH_allocated
	.comm	_UH,4,2                         ; @UH
	.comm	_UH_limit,4,2                   ; @UH_limit
	.comm	_UH_size,8,3                    ; @UH_size
	.comm	_UH_total,8,3                   ; @UH_total
	.no_dead_strip	_union_heap_init
.subsections_via_symbols
