	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lwp_to_thread
_lwp_to_thread:                         ## @lwp_to_thread
	.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
	movl	%edi, %ebx
	callq	_is_thread
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movl	%ebx, %edi
	callq	_sol_thread_alive
	testl	%eax, %eax
	je	LBB0_15
## %bb.2:
	movq	_main_ta@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_GET_LWP
	leaq	-28(%rbp), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_p_td_ta_map_lwp2thr
	movq	_TD_NOTHR@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_3
## %bb.4:
	movq	_TD_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_6:
	leaq	-28(%rbp), %rdi
	callq	_p_td_thr_validate
	cmpq	(%r14), %rax
	je	LBB0_14
## %bb.7:
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_9:
	leaq	-28(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_p_td_thr_get_info
	cmpq	(%r14), %rax
	jne	LBB0_10
LBB0_3:
	movl	$-1, %edi
	callq	_pid_to_ptid
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	$-1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pid_to_ptid                    ## TAILCALL
LBB0_10:
	cmpq	(%r15), %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	callq	_td_err_string
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_12:
	movl	-32(%rbp), %r14d
	movl	%ebx, %edi
	callq	_PIDGET
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_BUILD_THREAD
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_main_ta,4,2                    ## @main_ta
	.comm	_TD_NOTHR,8,3                   ## @TD_NOTHR
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lwp_to_thread: td_ta_map_lwp2thr: %s."

L_.str.1:                               ## @.str.1
	.asciz	"lwp_to_thread: td_thr_validate: %s."

L_.str.2:                               ## @.str.2
	.asciz	"lwp_to_thread: td_thr_get_info: %s."

	.no_dead_strip	_lwp_to_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lwp_to_thread
_lwp_to_thread:                         ; @lwp_to_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_is_thread
	cbnz	x0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_sol_thread_alive
	cbz	w0, LBB0_12
; %bb.2:
Lloh0:
	adrp	x8, _main_ta@GOTPAGE
Lloh1:
	ldr	x8, [x8, _main_ta@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GET_LWP
	mov	x1, x0
	add	x2, sp, #4
	mov	x0, x20
	bl	_p_td_ta_map_lwp2thr
Lloh3:
	adrp	x20, _TD_NOTHR@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TD_NOTHR@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.3:
Lloh5:
	adrp	x21, _TD_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	bl	_td_err_string
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_5:
	add	x0, sp, #4
	bl	_p_td_thr_validate
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.6:
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.7:
	bl	_td_err_string
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_8:
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_p_td_thr_get_info
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_9:
	mov	w0, #-1
	bl	_pid_to_ptid
LBB0_10:
	mov	x19, x0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	w0, #-1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pid_to_ptid
LBB0_13:
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.14:
	bl	_td_err_string
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_15:
	ldr	w20, [sp, #8]
	mov	x0, x19
	bl	_PIDGET
	mov	x1, x0
	mov	x0, x20
	bl	_BUILD_THREAD
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_main_ta,4,2                    ; @main_ta
	.comm	_TD_NOTHR,8,3                   ; @TD_NOTHR
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lwp_to_thread: td_ta_map_lwp2thr: %s."

l_.str.1:                               ; @.str.1
	.asciz	"lwp_to_thread: td_thr_validate: %s."

l_.str.2:                               ; @.str.2
	.asciz	"lwp_to_thread: td_thr_get_info: %s."

	.no_dead_strip	_lwp_to_thread
.subsections_via_symbols
