	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_lookup_by_id               ## -- Begin function ctf_lookup_by_id
	.p2align	4, 0x90
_ctf_lookup_by_id:                      ## @ctf_lookup_by_id
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_LCTF_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_CTF_TYPE_ISPARENT
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	callq	_CTF_TYPE_TO_INDEX
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	cmpq	8(%rbx), %rax
	jle	LBB0_8
LBB0_6:
	movq	_ECTF_BADID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, (%r14)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LCTF_INDEX_TO_TYPEPTR          ## TAILCALL
LBB0_3:
	movq	(%r14), %rdi
	movq	_ECTF_NOPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_7:
	callq	_ctf_set_errno
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LCTF_CHILD,4,2                 ## @LCTF_CHILD
	.comm	_ECTF_NOPARENT,4,2              ## @ECTF_NOPARENT
	.comm	_ECTF_BADID,4,2                 ## @ECTF_BADID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_lookup_by_id               ; -- Begin function ctf_lookup_by_id
	.p2align	2
_ctf_lookup_by_id:                      ; @ctf_lookup_by_id
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _LCTF_CHILD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LCTF_CHILD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_CTF_TYPE_ISPARENT
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x19, [x19, #16]
	cbz	x19, LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_CTF_TYPE_TO_INDEX
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x1, x0
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.le	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ECTF_BADID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECTF_BADID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_8
LBB0_6:
	str	x19, [x20]
	mov	x0, x19
	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	_LCTF_INDEX_TO_TYPEPTR
LBB0_7:
	ldr	x0, [x20]
Lloh6:
	adrp	x8, _ECTF_NOPARENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECTF_NOPARENT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
LBB0_8:
	bl	_ctf_set_errno
	mov	x0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LCTF_CHILD,4,2                 ; @LCTF_CHILD
	.comm	_ECTF_NOPARENT,4,2              ; @ECTF_NOPARENT
	.comm	_ECTF_BADID,4,2                 ; @ECTF_BADID
.subsections_via_symbols
