	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_template_type           ## -- Begin function lookup_template_type
	.p2align	4, 0x90
_lookup_template_type:                  ## @lookup_template_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_strlen
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_TYPE_NAME
	movq	%rax, %rdi
	callq	_strlen
	leaq	(%rbx,%rax), %rdi
	addq	$4, %rdi
	callq	_alloca
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	%r12, %rdi
	callq	_TYPE_NAME
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_strcat
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	_VAR_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_lookup_symbol
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
LBB0_2:
	movq	%rbx, %rdi
	callq	_SYMBOL_TYPE
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_STRUCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SYMBOL_TYPE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<"

L_.str.1:                               ## @.str.1
	.asciz	" >"

	.comm	_VAR_DOMAIN,4,2                 ## @VAR_DOMAIN
L_.str.2:                               ## @.str.2
	.asciz	"No template type named %s."

	.comm	_TYPE_CODE_STRUCT,8,3           ## @TYPE_CODE_STRUCT
L_.str.3:                               ## @.str.3
	.asciz	"This context has class, union or enum %s, not a struct."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_template_type           ; -- Begin function lookup_template_type
	.p2align	2
_lookup_template_type:                  ; @lookup_template_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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	bl	_TYPE_NAME
	bl	_strlen
	add	x8, x22, x0
	add	x0, x8, #4
	bl	_alloca
	mov	x22, x0
	mov	x1, x19
	bl	_strcpy
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcat
	mov	x0, x21
	bl	_TYPE_NAME
	mov	x1, x0
	mov	x0, x22
	bl	_strcat
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcat
Lloh4:
	adrp	x8, _VAR_DOMAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VAR_DOMAIN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	w3, #0
	mov	x4, #0
	bl	_lookup_symbol
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_2:
	mov	x0, x20
	bl	_SYMBOL_TYPE
	bl	_TYPE_CODE
Lloh9:
	adrp	x8, _TYPE_CODE_STRUCT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TYPE_CODE_STRUCT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_4:
	mov	x0, x20
	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	_SYMBOL_TYPE
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<"

l_.str.1:                               ; @.str.1
	.asciz	" >"

	.comm	_VAR_DOMAIN,4,2                 ; @VAR_DOMAIN
l_.str.2:                               ; @.str.2
	.asciz	"No template type named %s."

	.comm	_TYPE_CODE_STRUCT,8,3           ; @TYPE_CODE_STRUCT
l_.str.3:                               ; @.str.3
	.asciz	"This context has class, union or enum %s, not a struct."

.subsections_via_symbols
