	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uniformize                     ## -- Begin function uniformize
	.p2align	4, 0x90
_uniformize:                            ## @uniformize
	.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	%rdx, %r14
	movq	%rdi, %rax
	movq	_type_type@GOTPCREL(%rip), %r13
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_act_var@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rsi)
	movq	%rsi, %r15
	cmoveq	%rax, %r15
	movq	%rax, %rbx
	cmoveq	%rsi, %rbx
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rax, 8(%r15)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rax
	cmpq	24(%r15), %rax
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r15), %rax
	movb	$1, %r12b
	cmpq	$-1, %rax
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rsi
	cmpq	$-1, %rsi
	je	LBB0_22
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_tl_tree_lookup_value
	testl	%eax, %eax
	jg	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	je	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rsi
	movq	%r14, %rdi
	callq	_tl_get_var_value
	movq	%r15, %rsi
	testq	%rax, %rax
	jne	LBB0_1
## %bb.17:
	movq	32(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_tl_set_var_value
	jmp	LBB0_22
LBB0_3:
	xorl	%edi, %edi
	orq	%rsi, %rax
	sete	%dil
	callq	_assert
	movb	$1, %r12b
	jmp	LBB0_22
LBB0_24:
	movq	_type_num@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	sete	%cl
	movq	_type_num_value@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_26
## %bb.25:
	cmpq	(%r13), %rax
	jne	LBB0_8
LBB0_26:
	movl	$1, %edi
	callq	_assert
	movb	$1, %r12b
	cmpq	$-1, 32(%r15)
	je	LBB0_22
## %bb.27:
	movq	32(%rbx), %rsi
	cmpq	$-1, %rsi
	je	LBB0_22
## %bb.28:
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%r13), %rdi
	jne	LBB0_31
## %bb.29:
	movq	%rbx, %rax
LBB0_30:
	leaq	24(%rax), %r13
LBB0_36:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rax
	cmpq	%rdi, 8(%r15)
	jne	LBB0_41
## %bb.37:
	movq	%rax, %r13
	jmp	LBB0_46
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_tl_get_var_value
	testq	%rax, %rax
	movq	%r14, %r13
	je	LBB0_42
## %bb.45:                              ##   in Loop: Header=BB0_41 Depth=1
	movq	32(%r15), %rsi
	movq	%r13, %rdi
	callq	_tl_get_var_value_num
	movq	%r13, %r14
	movq	%rax, %r13
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_tl_get_var_value
	movq	%rax, %r15
	addq	24(%rax), %r13
	movq	8(%rax), %rdi
	movq	%r13, %rax
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_41
LBB0_46:
	leaq	24(%r15), %r8
	movq	%r13, %rbx
	movq	%r14, %r13
LBB0_47:
	movq	8(%r15), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdi, 8(%rdx)
	jne	LBB0_50
## %bb.48:
	cmpq	%rdi, %rcx
	jne	LBB0_52
## %bb.49:
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	sete	%r12b
	jmp	LBB0_22
LBB0_18:
	cmpq	(%r15), %rdx
	jne	LBB0_8
## %bb.19:
	cmpq	%rax, %rsi
	jne	LBB0_8
## %bb.20:
	movq	48(%rbx), %rdi
	movq	48(%r15), %rsi
	movq	%r14, %rdx
	callq	_uniformize
	testl	%eax, %eax
	je	LBB0_21
## %bb.23:
	movq	40(%rbx), %rdi
	movq	40(%r15), %rsi
	movq	%r14, %rdx
	callq	_uniformize
	testl	%eax, %eax
	setne	%r12b
	jmp	LBB0_22
LBB0_8:
	leaq	L_.str(%rip), %rsi
LBB0_9:
	movl	$3, %edi
	callq	_vkprintf
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	movzbl	%r12b, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	%r14, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	callq	_tl_get_var_value
	testq	%rax, %rax
	je	LBB0_32
## %bb.38:
	leaq	32(%rbx), %r13
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_tl_get_var_value_num
	addq	%rax, -48(%rbp)                 ## 8-byte Folded Spill
	movq	(%r13), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_tl_get_var_value
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	24(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rdi
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_30
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	%r13, %rdi
	movq	%rax, %r13
	addq	$32, %r13
	movq	32(%rax), %rsi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_tl_get_var_value
	testq	%rax, %rax
	jne	LBB0_39
	jmp	LBB0_33
LBB0_50:
	cmpq	%rdi, %rcx
	jne	LBB0_53
## %bb.51:
	movq	32(%rdx), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%r8), %rax
	subq	%rax, %rbx
	jmp	LBB0_55
LBB0_42:
	leaq	24(%r15), %r14
	movq	24(%r15), %rdx
	movq	32(%r15), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	_tl_tree_lookup_value_nat
	testl	%eax, %eax
	jg	LBB0_14
## %bb.43:
	je	LBB0_22
## %bb.44:
	movq	_type_num_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %r8
	jmp	LBB0_47
LBB0_32:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_33:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %r13
	movq	24(%rax), %rdx
	movq	32(%rax), %rsi
	movq	%r15, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_tl_tree_lookup_value_nat
	testl	%eax, %eax
	jle	LBB0_34
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_52:
	movq	32(%r15), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_53:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rbx, %rcx
	jge	LBB0_54
## %bb.56:
	movq	32(%r15), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
LBB0_57:
	subq	%rbx, %rcx
	movq	%r13, %rdi
	callq	_tl_set_var_value_num
	jmp	LBB0_22
LBB0_34:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_22
## %bb.35:
	movq	_type_num_value@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rcx, %rax
	jmp	LBB0_36
LBB0_54:
	movq	32(%rdx), %rsi
	addq	(%r8), %rcx
	subq	%rcx, %rbx
LBB0_55:
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_tl_set_var_value_num
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_act_var,8,3                    ## @act_var
	.comm	_type_type,8,3                  ## @type_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Type mistmatch. Error\n"

L_.str.1:                               ## @.str.1
	.asciz	"Circular reference. Error\n"

	.comm	_type_num,8,3                   ## @type_num
	.comm	_type_num_value,8,3             ## @type_num_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uniformize                     ; -- Begin function uniformize
	.p2align	2
_uniformize:                            ; @uniformize
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
Lloh0:
	adrp	x22, _act_var@GOTPAGE
Lloh1:
	ldr	x22, [x22, _act_var@GOTPAGEOFF]
Lloh2:
	adrp	x23, _type_type@GOTPAGE
Lloh3:
	ldr	x23, [x23, _type_type@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x0, LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x1, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x1]
	ldr	x8, [x22]
	cmp	x9, x8
	csel	x20, x0, x1, eq
	csel	x21, x1, x0, eq
	ldr	x9, [x21, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x20, #8]
	cmp	x10, x9
	b.ne	LBB0_29
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x21, #16]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_29
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x21, #24]
	ldr	x10, [x20, #24]
	cmp	x9, x10
	b.ne	LBB0_29
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20, #32]
	cmn	x9, #1
	b.eq	LBB0_51
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #32]
	cmn	x1, #1
	b.eq	LBB0_51
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x21]
	cmp	x10, x8
	b.ne	LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x2, x19
	bl	_tl_tree_lookup_value
	cmp	w0, #1
	b.ge	LBB0_48
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	cbz	w0, LBB0_51
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x21, #32]
	mov	x0, x19
	bl	_tl_get_var_value
	mov	x1, x20
	cbnz	x0, LBB0_1
; %bb.13:
	ldr	x1, [x21, #32]
	mov	x0, x19
	mov	x2, x20
	bl	_tl_set_var_value
	mov	w22, #1
	b	LBB0_52
LBB0_14:
	orr	x8, x0, x1
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	mov	w22, #1
	b	LBB0_52
LBB0_15:
Lloh4:
	adrp	x22, _type_num@GOTPAGE
Lloh5:
	ldr	x22, [x22, _type_num@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x9, x8
Lloh6:
	adrp	x24, _type_num_value@GOTPAGE
Lloh7:
	ldr	x24, [x24, _type_num_value@GOTPAGEOFF]
	ldr	x8, [x24]
	ccmp	x9, x8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_29
; %bb.16:
	mov	w22, #1
	mov	w0, #1
	bl	_assert
	ldr	x8, [x20, #32]
	cmn	x8, #1
	b.eq	LBB0_52
; %bb.17:
	ldr	x1, [x21, #32]
	cmn	x1, #1
	b.eq	LBB0_51
; %bb.18:
	ldr	x23, [x21, #24]
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.19:
	mov	x22, x21
LBB0_20:
	add	x25, x22, #24
LBB0_21:
	ldr	x26, [x20, #24]
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.eq	LBB0_24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_tl_get_var_value
	cbz	x0, LBB0_43
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_tl_get_var_value_num
	add	x26, x0, x26
	ldr	x1, [x20, #32]
	mov	x0, x19
	bl	_tl_get_var_value
	mov	x20, x0
	ldr	x8, [x0, #24]
	add	x26, x8, x26
	ldr	x8, [x0, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_24:
	add	x27, x20, #24
LBB0_25:
	ldr	x10, [x22, #8]
	ldr	x9, [x20, #8]
	cmp	x10, x8
	b.ne	LBB0_38
; %bb.26:
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.27:
	cmp	x23, x26
	cset	w22, eq
	b	LBB0_52
LBB0_28:
	ldr	x8, [x20]
	cmp	x10, x8
	ccmp	x1, x9, #0, eq
	b.eq	LBB0_32
LBB0_29:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_30:
	mov	w0, #3
	bl	_vkprintf
LBB0_31:
	mov	w22, #0
	b	LBB0_52
LBB0_32:
	ldr	x0, [x21, #48]
	ldr	x1, [x20, #48]
	mov	x2, x19
	bl	_uniformize
	cbz	w0, LBB0_31
; %bb.33:
	ldr	x0, [x21, #40]
	ldr	x1, [x20, #40]
	mov	x2, x19
	bl	_uniformize
	cmp	w0, #0
	cset	w22, ne
	b	LBB0_52
LBB0_34:
	mov	x0, x19
	bl	_tl_get_var_value
	cbz	x0, LBB0_46
; %bb.35:
	add	x25, x21, #32
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25]
	mov	x0, x19
	bl	_tl_get_var_value_num
	add	x23, x0, x23
	ldr	x1, [x25]
	mov	x0, x19
	bl	_tl_get_var_value
	mov	x22, x0
	ldr	x8, [x0, #24]
	add	x23, x8, x23
	ldr	x8, [x0, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.37:                               ;   in Loop: Header=BB0_36 Depth=1
	mov	x25, x22
	ldr	x1, [x25, #32]!
	mov	x0, x19
	bl	_tl_get_var_value
	cbnz	x0, LBB0_36
	b	LBB0_47
LBB0_38:
	cmp	x9, x8
	b.eq	LBB0_41
; %bb.39:
	cmp	x23, x26
	b.ge	LBB0_41
LBB0_40:
	ldr	x1, [x20, #32]
	ldr	x8, [x25]
	add	x8, x26, x8
	sub	x3, x23, x8
	mov	x0, x19
	mov	x2, x22
	b	LBB0_42
LBB0_41:
	ldr	x1, [x22, #32]
	ldr	x8, [x27]
	add	x8, x23, x8
	sub	x3, x26, x8
	mov	x0, x19
	mov	x2, x20
LBB0_42:
	bl	_tl_set_var_value_num
	mov	w22, #1
	b	LBB0_52
LBB0_43:
	mov	x27, x20
	ldp	x2, x1, [x27, #24]!
	mov	x0, x21
	mov	x3, x19
	bl	_tl_tree_lookup_value_nat
	cmp	w0, #1
	b.ge	LBB0_48
; %bb.44:
	cbz	w0, LBB0_51
; %bb.45:
	ldr	x8, [x24]
	b	LBB0_25
LBB0_46:
	mov	x22, x21
LBB0_47:
	mov	x25, x22
	ldp	x2, x1, [x25, #24]!
	mov	x0, x20
	mov	x3, x19
	bl	_tl_tree_lookup_value_nat
	cmp	w0, #1
	b.lt	LBB0_49
LBB0_48:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_30
LBB0_49:
	cbz	w0, LBB0_51
; %bb.50:
	ldr	x8, [x24]
	b	LBB0_21
LBB0_51:
	mov	w22, #1
LBB0_52:
	mov	x0, x22
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_act_var,8,3                    ; @act_var
	.comm	_type_type,8,3                  ; @type_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Type mistmatch. Error\n"

l_.str.1:                               ; @.str.1
	.asciz	"Circular reference. Error\n"

	.comm	_type_num,8,3                   ; @type_num
	.comm	_type_num_value,8,3             ; @type_num_value
.subsections_via_symbols
