	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_proc_lookup                 ## -- Begin function dt_proc_lookup
	.p2align	4, 0x90
_dt_proc_lookup:                        ## @dt_proc_lookup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_proc_getpid
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	decq	%rdx
	movslq	%eax, %rsi
	andq	%rdx, %rsi
	leaq	(%rcx,%rsi,8), %r12
	movq	(%rcx,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	$1, %edi
	cmpl	%eax, (%rbx)
	je	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, (%rbx)
	jne	LBB0_3
## %bb.5:
	movl	$1, %edi
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
LBB0_7:
	addq	$8, %r12
LBB0_8:
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r15, 16(%rbx)
	sete	%dil
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_proc_lookup                 ; -- Begin function dt_proc_lookup
	.p2align	2
_dt_proc_lookup:                        ; @dt_proc_lookup
	.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	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	mov	x0, x1
	bl	_proc_getpid
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	sub	w9, w9, #1
	and	w9, w9, w0
	add	x22, x8, w9, sxtw #3
	ldr	x21, [x22]
	cbz	x21, LBB0_6
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x21
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	cmp	w9, w0
	b.ne	LBB0_3
; %bb.5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	mov	w0, #0
LBB0_8:
	add	x22, x8, #8
LBB0_9:
	bl	_assert
	ldr	x8, [x21, #16]
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	cbz	w19, LBB0_11
; %bb.10:
	ldr	x8, [x21, #8]
	str	x8, [x22]
LBB0_11:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
