	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_canon_type
_get_canon_type:                        ## @get_canon_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_type_to_consider
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_TYPE_MAIN_VARIANT
	movq	%rax, %rbx
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.3:
	movq	_ARRAY_TYPE@GOTPCREL(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TYPE_MAIN_VARIANT
	movq	%rax, %rbx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_TREE_CODE
	cmpq	(%r14), %rax
	je	LBB0_4
LBB0_7:
	movq	_type_to_canon_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_splay_tree_lookup
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movslq	(%rax), %rax
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.13:
	movq	%rbx, %rdi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	callq	_POINTER_TYPE_P
	testq	%rax, %rax
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TYPE_MAIN_VARIANT
	movq	%rax, %rbx
	movq	%rax, %rdi
	jmp	LBB0_14
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_discover_unique_type           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARRAY_TYPE,8,3                 ## @ARRAY_TYPE
	.comm	_type_to_canon_type,4,2         ## @type_to_canon_type
	.no_dead_strip	_get_canon_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_canon_type
_get_canon_type:                        ; @get_canon_type
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_type_to_consider
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_TYPE_MAIN_VARIANT
	mov	x19, x0
	cbz	w21, LBB0_11
; %bb.3:
Lloh0:
	adrp	x20, _ARRAY_TYPE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ARRAY_TYPE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_TREE_TYPE
	bl	_TYPE_MAIN_VARIANT
	mov	x19, x0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_POINTER_TYPE_P
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_TREE_CODE
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_7:
Lloh2:
	adrp	x8, _type_to_canon_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _type_to_canon_type@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_splay_tree_lookup
	cbz	x0, LBB0_14
; %bb.8:
	ldrsw	x0, [x0]
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	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
LBB0_11:
	cbz	w20, LBB0_7
; %bb.12:
	mov	x0, x19
	bl	_POINTER_TYPE_P
	cbz	x0, LBB0_7
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TREE_TYPE
	bl	_TYPE_MAIN_VARIANT
	mov	x19, x0
	bl	_POINTER_TYPE_P
	cbnz	x0, LBB0_13
	b	LBB0_7
LBB0_14:
	mov	x0, x19
	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
	b	_discover_unique_type
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ARRAY_TYPE,8,3                 ; @ARRAY_TYPE
	.comm	_type_to_canon_type,4,2         ; @type_to_canon_type
	.no_dead_strip	_get_canon_type
.subsections_via_symbols
