	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup_undefined_types        ## -- Begin function cleanup_undefined_types
	.p2align	4, 0x90
_cleanup_undefined_types:               ## @cleanup_undefined_types
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_undef_types_length@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.1:
	movq	_undef_types@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_LOC_TYPEDEF@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_TYPE_CODE
	movq	_symfile_complaints@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_complaint
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	$8, %rbx
	movq	_undef_types_length@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	movq	_undef_types@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	(%rbx), %rdi
	callq	_TYPE_CODE
	addl	$-128, %eax
	movq	(%rbx), %rdi
	cmpl	$2, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	ja	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_TYPE_STUB
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_TYPE_TAG_NAME
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_file_symbols@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	16(%r13), %r13
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	testq	%r13, %r13
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$0, (%r13)
	jle	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_16 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=3
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_16 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, %rdi
	callq	_SYMBOL_CLASS
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_SYMBOL_DOMAIN
	movq	_STRUCT_DOMAIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_SYMBOL_TYPE
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movl	%eax, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_TYPE_CODE
	cmpl	%eax, %r14d
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_DEPRECATED_SYMBOL_NAME
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_SYMBOL_TYPE
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_replace_type
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_symfile_complaints@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_complaint
	jmp	LBB0_18
LBB0_19:
	movq	_undef_types_length@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_undef_types,8,3                ## @undef_types
	.comm	_undef_types_length,4,2         ## @undef_types_length
	.comm	_symfile_complaints,4,2         ## @symfile_complaints
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need a type name"

	.comm	_file_symbols,8,3               ## @file_symbols
	.comm	_LOC_TYPEDEF,4,2                ## @LOC_TYPEDEF
	.comm	_STRUCT_DOMAIN,4,2              ## @STRUCT_DOMAIN
L_.str.1:                               ## @.str.1
	.asciz	"forward-referenced types left unresolved, type code %d."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cleanup_undefined_types        ; -- Begin function cleanup_undefined_types
	.p2align	2
_cleanup_undefined_types:               ; @cleanup_undefined_types
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x25, _undef_types_length@GOTPAGE
Lloh1:
	ldr	x25, [x25, _undef_types_length@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
Lloh2:
	adrp	x26, _undef_types@GOTPAGE
Lloh3:
	ldr	x26, [x26, _undef_types@GOTPAGEOFF]
	ldr	x27, [x26]
Lloh4:
	adrp	x20, _LOC_TYPEDEF@GOTPAGE
Lloh5:
	ldr	x20, [x20, _LOC_TYPEDEF@GOTPAGEOFF]
Lloh6:
	adrp	x28, _STRUCT_DOMAIN@GOTPAGE
Lloh7:
	ldr	x28, [x28, _STRUCT_DOMAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_TYPE_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, _symfile_complaints@GOTPAGE
Lloh9:
	ldr	x0, [x0, _symfile_complaints@GOTPAGEOFF]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_complaint
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #8
	ldr	x8, [x26]
	ldrsw	x9, [x25]
	add	x8, x8, x9, lsl #3
	cmp	x27, x8
	b.hs	LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	x0, [x27]
	bl	_TYPE_CODE
	sub	w8, w0, #128
	ldr	x0, [x27]
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_TYPE_STUB
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x27]
	bl	_TYPE_TAG_NAME
	cbz	x0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh12:
	adrp	x8, _file_symbols@GOTPAGE
Lloh13:
	ldr	x8, [x8, _file_symbols@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	cbz	x21, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_4
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x19, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x19, x19, #1
	ldrsw	x8, [x21]
	cmp	x19, x8
	b.ge	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x21, #8]
	ldr	x23, [x8, x19, lsl #3]
	mov	x0, x23
	bl	_SYMBOL_CLASS
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	bl	_SYMBOL_DOMAIN
	ldr	w8, [x28]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	bl	_SYMBOL_TYPE
	bl	_TYPE_CODE
	mov	x24, x0
	ldr	x0, [x27]
	bl	_TYPE_CODE
	cmp	w24, w0
	b.ne	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	bl	_DEPRECATED_SYMBOL_NAME
	mov	x1, x22
	bl	_strcmp
	cbnz	w0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=3
	ldr	x24, [x27]
	mov	x0, x23
	bl	_SYMBOL_TYPE
	mov	x1, x0
	mov	x0, x24
	bl	_replace_type
	b	LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x0, _symfile_complaints@GOTPAGE
Lloh16:
	ldr	x0, [x0, _symfile_complaints@GOTPAGEOFF]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_20:
	str	wzr, [x25]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_undef_types,8,3                ; @undef_types
	.comm	_undef_types_length,4,2         ; @undef_types_length
	.comm	_symfile_complaints,4,2         ; @symfile_complaints
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need a type name"

	.comm	_file_symbols,8,3               ; @file_symbols
	.comm	_LOC_TYPEDEF,4,2                ; @LOC_TYPEDEF
	.comm	_STRUCT_DOMAIN,4,2              ; @STRUCT_DOMAIN
l_.str.1:                               ; @.str.1
	.asciz	"forward-referenced types left unresolved, type code %d."

.subsections_via_symbols
