	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_field
_lookup_field:                          ## @lookup_field
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_TREE_TYPE
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TYPE_LANG_SPECIFIC
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%r15, %rdi
	callq	_TYPE_LANG_SPECIFIC
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.2:
	movq	%r15, %rdi
	callq	_TYPE_LANG_SPECIFIC
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_TYPE_FIELDS
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_TYPE_LANG_SPECIFIC
	movq	(%rax), %rax
	movl	8(%rax), %r12d
	cmpl	$2, %r12d
	jl	LBB0_3
## %bb.4:
	leaq	8(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	incl	%r12d
	shrl	%r12d
	addl	%r15d, %r12d
	movslq	%r12d, %rax
	movq	(%rbx,%rax,8), %r13
	movq	%r13, %rdi
	callq	_DECL_NAME
	movq	_NULL_TREE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rax
	movslq	%r15d, %rbx
	movq	(%rax,%rbx,8), %rdi
	callq	_DECL_NAME
	movq	%rax, %rcx
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_lookup_field
	testq	%rax, %rax
	jne	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rbx), %rdi
	callq	_DECL_NAME
	movq	%rax, %rcx
	movq	(%r12), %rax
	incl	%r15d
	addq	$8, %rbx
	cmpq	%rax, %rcx
	jne	LBB0_17
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%rbx), %r13
	movq	%r13, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TREE_CODE
	movq	_RECORD_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TREE_CODE
	movq	_UNION_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r15d, %r12d
	jl	LBB0_35
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %r12d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_6
	jmp	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_DECL_NAME
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpq	%r14, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_DECL_NAME
	cmpq	%r14, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovgel	%r12d, %eax
	cmovll	%r12d, %r15d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	subl	%r15d, %r12d
	cmpl	$1, %r12d
	jg	LBB0_6
	jmp	LBB0_20
LBB0_22:
	movq	%r15, %rdi
	callq	_TYPE_FIELDS
	testq	%rax, %rax
	je	LBB0_31
## %bb.23:
	movq	%rax, %r13
	movq	_NULL_TREE@GOTPCREL(%rip), %r15
	movq	_RECORD_TYPE@GOTPCREL(%rip), %r12
	movq	_UNION_TYPE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_DECL_NAME
	cmpq	(%r15), %rax
	jne	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r13, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TREE_CODE
	cmpq	(%r12), %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r13, %rdi
	callq	_TREE_TYPE
	movq	%rax, %rdi
	callq	_TREE_CODE
	cmpq	(%rbx), %rax
	jne	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_lookup_field
	testq	%rax, %rax
	jne	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r13, %rdi
	callq	_DECL_NAME
	cmpq	%r14, %rax
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r13, %rdi
	callq	_TREE_CHAIN
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_24
LBB0_31:
	xorl	%r13d, %r13d
LBB0_32:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rax
	cmpq	%rdi, %r13
	jne	LBB0_33
LBB0_35:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r15d, %r15d
LBB0_20:
	movq	%rbx, %r12
	movslq	%r15d, %rbx
	movq	(%r12,%rbx,8), %rdi
	callq	_DECL_NAME
	cmpq	%r14, %rax
	jne	LBB0_34
## %bb.21:
	movq	(%r12,%rbx,8), %r13
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_33
LBB0_13:
	movq	(%r12), %rdi
	jmp	LBB0_14
LBB0_34:
	movq	%r13, %rdi
	callq	_DECL_NAME
	movq	%rax, %rcx
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rax
	cmpq	%r14, %rcx
	jne	LBB0_35
LBB0_33:
	movq	%r13, %rsi
	movq	%rdi, %rdx
	jmp	LBB0_15
LBB0_28:
	movq	(%r15), %rdi
LBB0_14:
	movq	%r13, %rsi
	movq	%rax, %rdx
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tree_cons                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NULL_TREE,8,3                  ## @NULL_TREE
	.comm	_RECORD_TYPE,8,3                ## @RECORD_TYPE
	.comm	_UNION_TYPE,8,3                 ## @UNION_TYPE
	.no_dead_strip	_lookup_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_field
_lookup_field:                          ; @lookup_field
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_TREE_TYPE
	mov	x21, x0
	bl	_TYPE_LANG_SPECIFIC
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x21
	bl	_TYPE_LANG_SPECIFIC
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.2:
	mov	x0, x21
	bl	_TYPE_LANG_SPECIFIC
	ldr	x8, [x0]
	ldr	x22, [x8]
	mov	x0, x21
	bl	_TYPE_FIELDS
	mov	x20, x0
	mov	x0, x21
	bl	_TYPE_LANG_SPECIFIC
	ldr	x8, [x0]
	ldr	w8, [x8, #8]
	cmp	w8, #2
	b.lt	LBB0_25
; %bb.3:
	mov	w21, #0
Lloh0:
	adrp	x23, _NULL_TREE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NULL_TREE@GOTPAGEOFF]
	add	x24, x22, #8
Lloh2:
	adrp	x25, _RECORD_TYPE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RECORD_TYPE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _UNION_TYPE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _UNION_TYPE@GOTPAGEOFF]
	mov	x27, x8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	w8, w8, #1
	add	w28, w21, w8, lsr #1
	ldr	x20, [x22, w28, sxtw #3]
	mov	x0, x20
	bl	_DECL_NAME
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22, w21, sxtw #3]
	bl	_DECL_NAME
	mov	x8, x0
	ldr	x0, [x23]
	cmp	x8, x0
	b.ne	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w21
	add	x28, x24, x8, lsl #3
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	mov	x1, x19
	bl	_lookup_field
	cbnz	x0, LBB0_28
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x28], #8
	bl	_DECL_NAME
	mov	x8, x0
	ldr	x0, [x23]
	add	w21, w21, #1
	cmp	x8, x0
	b.ne	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x20, [x28, #-8]
	mov	x0, x20
	bl	_TREE_TYPE
	bl	_TREE_CODE
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	bl	_TREE_TYPE
	bl	_TREE_CODE
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_7
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	subs	w8, w27, w21
	b.lt	LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #2
	b.ge	LBB0_4
	b	LBB0_26
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_DECL_NAME
	cmp	x0, x19
	b.eq	LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_DECL_NAME
	cmp	x0, x19
	csel	w27, w27, w28, lt
	csel	w21, w28, w21, lt
	sub	w8, w27, w21
	cmp	w8, #1
	b.gt	LBB0_4
	b	LBB0_26
LBB0_15:
	mov	x0, x21
	bl	_TYPE_FIELDS
	mov	x20, x0
	cbz	x0, LBB0_23
; %bb.16:
Lloh6:
	adrp	x21, _NULL_TREE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NULL_TREE@GOTPAGEOFF]
Lloh8:
	adrp	x22, _RECORD_TYPE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _RECORD_TYPE@GOTPAGEOFF]
Lloh10:
	adrp	x23, _UNION_TYPE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _UNION_TYPE@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_DECL_NAME
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_TREE_TYPE
	bl	_TREE_CODE
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_TREE_TYPE
	bl	_TREE_CODE
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_lookup_field
	cbnz	x0, LBB0_32
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_DECL_NAME
	cmp	x0, x19
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_TREE_CHAIN
	mov	x20, x0
	cbnz	x0, LBB0_17
LBB0_23:
Lloh12:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	mov	x0, x20
	cmp	x20, x2
	b.ne	LBB0_30
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	w21, #0
LBB0_26:
	ldr	x0, [x22, w21, sxtw #3]
	bl	_DECL_NAME
	cmp	x0, x19
	b.ne	LBB0_29
; %bb.27:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x8, w21
	ldr	x20, [x22, x8, lsl #3]
Lloh15:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	b	LBB0_30
LBB0_28:
	mov	x2, x0
	ldr	x0, [x23]
	b	LBB0_31
LBB0_29:
	mov	x0, x20
	bl	_DECL_NAME
	mov	x8, x0
Lloh18:
	adrp	x9, _NULL_TREE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NULL_TREE@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x9]
	mov	x0, x2
	cmp	x8, x19
	b.ne	LBB0_24
LBB0_30:
	mov	x0, x2
LBB0_31:
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_tree_cons
LBB0_32:
	mov	x2, x0
	ldr	x0, [x21]
	b	LBB0_31
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NULL_TREE,8,3                  ; @NULL_TREE
	.comm	_RECORD_TYPE,8,3                ; @RECORD_TYPE
	.comm	_UNION_TYPE,8,3                 ; @UNION_TYPE
	.no_dead_strip	_lookup_field
.subsections_via_symbols
