	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_typename                ## -- Begin function lookup_typename
	.p2align	4, 0x90
_lookup_typename:                       ## @lookup_typename
	.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
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_VAR_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_lookup_symbol
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_SYMBOL_CLASS
	movq	_LOC_TYPEDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	callq	_lookup_primitive_typename
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_error
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SYMBOL_TYPE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VAR_DOMAIN,4,2                 ## @VAR_DOMAIN
	.comm	_LOC_TYPEDEF,8,3                ## @LOC_TYPEDEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No type named %s."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_typename                ; -- Begin function lookup_typename
	.p2align	2
_lookup_typename:                       ; @lookup_typename
	.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	x19, x0
Lloh0:
	adrp	x8, _VAR_DOMAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VAR_DOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #0
	mov	x4, #0
	bl	_lookup_symbol
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_SYMBOL_CLASS
Lloh3:
	adrp	x8, _LOC_TYPEDEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOC_TYPEDEF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_lookup_primitive_typename
	cbnz	x0, LBB0_5
; %bb.3:
	cbz	w20, LBB0_6
; %bb.4:
	mov	x0, #0
LBB0_5:
	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_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_7:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VAR_DOMAIN,4,2                 ; @VAR_DOMAIN
	.comm	_LOC_TYPEDEF,8,3                ; @LOC_TYPEDEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No type named %s."

.subsections_via_symbols
