	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_type_resolve               ## -- Begin function ctf_type_resolve
	.p2align	4, 0x90
_ctf_type_resolve:                      ## @ctf_type_resolve
	.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
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %r12
	movl	%esi, %r15d
	movl	%esi, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ctf_lookup_by_id
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi
	movl	4(%rax), %esi
	callq	_LCTF_INFO_KIND
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r13d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %r15d
	movl	%eax, %r13d
	cmpl	%r14d, %eax
	jne	LBB0_1
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_ctf_dprintf
	movq	_ECTF_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ctf_set_errno
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_7:
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type %ld cycle detected\n"

	.comm	_ECTF_CORRUPT,4,2               ## @ECTF_CORRUPT
	.comm	_CTF_ERR,4,2                    ## @CTF_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_type_resolve               ; -- Begin function ctf_type_resolve
	.p2align	2
_ctf_type_resolve:                      ; @ctf_type_resolve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	str	x0, [sp, #8]
	mov	x23, x1
	mov	x20, x1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x20
	bl	_ctf_lookup_by_id
	cbz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x22, x0
	ldr	x0, [sp, #8]
	ldr	w1, [x22, #4]
	bl	_LCTF_INFO_KIND
	and	w8, w0, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	ccmp	w8, w20, #4, ne
	ccmp	w8, w21, #4, ne
	mov	x23, x20
	mov	x20, x8
	b.ne	LBB0_1
; %bb.4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_ctf_dprintf
Lloh2:
	adrp	x8, _ECTF_CORRUPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECTF_CORRUPT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ctf_set_errno
	mov	x20, x0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type %ld cycle detected\n"

	.comm	_ECTF_CORRUPT,4,2               ; @ECTF_CORRUPT
	.comm	_CTF_ERR,4,2                    ; @CTF_ERR
.subsections_via_symbols
