	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_db_pid_to_str
_thread_db_pid_to_str:                  ## @thread_db_pid_to_str
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	callq	_is_thread
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%r14d, %edi
	callq	_find_thread_pid
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_thread_db_map_id2thr
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_thread_db_get_info
	movq	(%rax), %rdi
	movq	_TD_THR_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_8
## %bb.5:
	movq	8(%rax), %r8
	testq	%r8, %r8
	je	LBB0_8
## %bb.6:
	movq	16(%rax), %rcx
	leaq	_thread_db_pid_to_str.buf(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	$64, %esi
	jmp	LBB0_7
LBB0_9:
	movq	_target_beneath@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	%r14d, %edi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	(%rbx), %rax
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_8:
	movq	16(%rax), %rbx
	callq	_thread_db_state_str
	leaq	_thread_db_pid_to_str.buf(%rip), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$64, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
LBB0_7:
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_3
LBB0_2:
	movl	%r14d, %edi
	callq	_GET_THREAD
	movslq	%eax, %rcx
	leaq	_thread_db_pid_to_str.buf(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	movl	$64, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_3:
	leaq	_thread_db_pid_to_str.buf(%rip), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_normal_pid_to_str              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_thread_db_pid_to_str.buf,64,4 ## @thread_db_pid_to_str.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Thread %ld (Missing)"

	.comm	_TD_THR_ACTIVE,8,3              ## @TD_THR_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Thread %ld (LWP %d)"

L_.str.2:                               ## @.str.2
	.asciz	"Thread %ld (%s)"

	.comm	_target_beneath,8,3             ## @target_beneath
	.no_dead_strip	_thread_db_pid_to_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_db_pid_to_str
_thread_db_pid_to_str:                  ; @thread_db_pid_to_str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_is_thread
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_find_thread_pid
	mov	x20, x0
	mov	w1, #0
	bl	_thread_db_map_id2thr
	ldr	x8, [x20]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_thread_db_get_info
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TD_THR_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TD_THR_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_7
; %bb.4:
	ldr	x3, [x0, #16]
	str	x9, [sp]
Lloh3:
	adrp	x0, _thread_db_pid_to_str.buf@PAGE
Lloh4:
	add	x0, x0, _thread_db_pid_to_str.buf@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x20, _target_beneath@GOTPAGE
Lloh8:
	ldr	x20, [x20, _target_beneath@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x1
LBB0_7:
	ldr	x19, [x0, #16]
	mov	x0, x8
	bl	_thread_db_state_str
	str	x0, [sp]
Lloh9:
	adrp	x0, _thread_db_pid_to_str.buf@PAGE
Lloh10:
	add	x0, x0, _thread_db_pid_to_str.buf@PAGEOFF
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #64
	mov	x3, x19
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_GET_THREAD
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x3, w0
Lloh13:
	adrp	x0, _thread_db_pid_to_str.buf@PAGE
Lloh14:
	add	x0, x0, _thread_db_pid_to_str.buf@PAGEOFF
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
LBB0_9:
	mov	w1, #64
LBB0_10:
	bl	_snprintf
Lloh17:
	adrp	x0, _thread_db_pid_to_str.buf@PAGE
Lloh18:
	add	x0, x0, _thread_db_pid_to_str.buf@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_normal_pid_to_str
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_thread_db_pid_to_str.buf,64,0 ; @thread_db_pid_to_str.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Thread %ld (Missing)"

	.comm	_TD_THR_ACTIVE,8,3              ; @TD_THR_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Thread %ld (LWP %d)"

l_.str.2:                               ; @.str.2
	.asciz	"Thread %ld (%s)"

	.comm	_target_beneath,8,3             ; @target_beneath
	.no_dead_strip	_thread_db_pid_to_str
.subsections_via_symbols
