	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_finish_subtree              ## -- Begin function tl_finish_subtree
	.p2align	4, 0x90
_tl_finish_subtree:                     ## @tl_finish_subtree
	.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
	movq	%rdi, %rbx
	callq	_assert
	movq	(%rbx), %rdi
	callq	_TL_TYPE
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_TL_ACT
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_vkprintf
	movq	(%rbx), %rcx
	movq	_type_type@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	js	LBB0_5
## %bb.2:
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_TL_ERROR
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__tl_finish_subtree             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"finish_subtree. Type = %s. Act = %s\n"

	.comm	_type_type,8,3                  ## @type_type
L_.str.1:                               ## @.str.1
	.asciz	"Not enough params\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_finish_subtree              ; -- Begin function tl_finish_subtree
	.p2align	2
_tl_finish_subtree:                     ; @tl_finish_subtree
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_assert
	ldr	x0, [x19]
	bl	_TL_TYPE
	mov	x20, x0
	ldr	w0, [x19, #16]
	bl	_TL_ACT
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_vkprintf
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _type_type@GOTPAGE
Lloh3:
	ldr	x9, [x9, _type_type@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_6
; %bb.2:
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TL_ERROR
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__tl_finish_subtree
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"finish_subtree. Type = %s. Act = %s\n"

	.comm	_type_type,8,3                  ; @type_type
l_.str.1:                               ; @.str.1
	.asciz	"Not enough params\n"

.subsections_via_symbols
