	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_struct                  ## -- Begin function lookup_struct
	.p2align	4, 0x90
_lookup_struct:                         ## @lookup_struct
	.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, %r14
	movq	_STRUCT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_lookup_symbol
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %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.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_error
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SYMBOL_TYPE                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STRUCT_DOMAIN,4,2              ## @STRUCT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No struct type named %s."

	.comm	_TYPE_CODE_STRUCT,8,3           ## @TYPE_CODE_STRUCT
L_.str.1:                               ## @.str.1
	.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_struct                  ; -- Begin function lookup_struct
	.p2align	2
_lookup_struct:                         ; @lookup_struct
	.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
Lloh0:
	adrp	x8, _STRUCT_DOMAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRUCT_DOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w3, #0
	mov	x4, #0
	bl	_lookup_symbol
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_2:
	mov	x0, x20
	bl	_SYMBOL_TYPE
	bl	_TYPE_CODE
Lloh5:
	adrp	x8, _TYPE_CODE_STRUCT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TYPE_CODE_STRUCT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SYMBOL_TYPE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STRUCT_DOMAIN,4,2              ; @STRUCT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No struct type named %s."

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

.subsections_via_symbols
