	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_db_map_id2thr
_thread_db_map_id2thr:                  ## @thread_db_map_id2thr
	.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	(%rdi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_thread_agent@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rdi), %edi
	callq	_GET_THREAD
	movq	(%rbx), %rdx
	addq	$4, %rdx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_td_ta_map_id2thr_p
	movq	%rax, %r15
	movq	_TD_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.4:
	movq	(%rbx), %rax
	movl	$1, (%rax)
	jmp	LBB0_5
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.3:
	movl	8(%rbx), %edi
	callq	_GET_THREAD
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_thread_db_err_str
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find thread %ld: %s"

	.no_dead_strip	_thread_db_map_id2thr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_db_map_id2thr
_thread_db_map_id2thr:                  ; @thread_db_map_id2thr
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _thread_agent@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thread_agent@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0, #8]
	bl	_GET_THREAD
	mov	x1, x0
	ldr	x8, [x19]
	add	x2, x8, #4
	mov	x0, x21
	bl	_td_ta_map_id2thr_p
Lloh3:
	adrp	x8, _TD_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TD_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_5
LBB0_3:
	cbz	w20, LBB0_5
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_GET_THREAD
	mov	x19, x0
	mov	x0, x21
	bl	_thread_db_err_str
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, 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	_error
LBB0_5:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find thread %ld: %s"

	.no_dead_strip	_thread_db_map_id2thr
.subsections_via_symbols
