	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_ta_map_id2thr
_pt_ta_map_id2thr:                      ## @pt_ta_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_TDBG_FUNC
	movq	_TD_NOTHR@GOTPCREL(%rip), %r14
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_thr_pread_ptr
	movq	_TD_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%rcx, %r14
	jmp	LBB0_3
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	8(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_thr_pread_long
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rsi
	cmpq	%r15, -64(%rbp)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	16(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_thr_pread_ptr
	testl	%eax, %eax
	je	LBB0_5
LBB0_10:
	movq	_TD_ERR@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 16(%rax)
	movq	%r15, 8(%rax)
	movq	%rsi, (%rax)
	movq	_TD_OK@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_NOTHR,4,2                   ## @TD_NOTHR
	.comm	_TD_ERR,4,2                     ## @TD_ERR
	.comm	_TD_OK,4,2                      ## @TD_OK
	.no_dead_strip	_pt_ta_map_id2thr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_ta_map_id2thr
_pt_ta_map_id2thr:                      ; @pt_ta_map_id2thr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_TDBG_FUNC
	cbz	x20, LBB0_11
; %bb.1:
	ldr	x1, [x21]
	add	x2, sp, #8
	mov	x0, x21
	bl	_thr_pread_ptr
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x22, _TD_ERR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TD_ERR@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh2:
	adrp	x22, _TD_NOTHR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TD_NOTHR@GOTPAGEOFF]
Lloh4:
	adrp	x23, _TD_ERR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TD_ERR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
	add	x1, x9, x8
	mov	x2, sp
	mov	x0, x21
	bl	_thr_pread_long
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp]
	cmp	x9, x20
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #16]
	add	x1, x9, x8
	add	x2, sp, #8
	mov	x0, x21
	bl	_thr_pread_ptr
	cbz	w0, LBB0_4
LBB0_8:
	mov	x22, x23
	b	LBB0_12
LBB0_9:
	cbz	x8, LBB0_11
; %bb.10:
	stp	x20, x21, [x19, #8]
	str	x8, [x19]
Lloh6:
	adrp	x22, _TD_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TD_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x22, _TD_NOTHR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TD_NOTHR@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_NOTHR,4,2                   ; @TD_NOTHR
	.comm	_TD_ERR,4,2                     ; @TD_ERR
	.comm	_TD_OK,4,2                      ; @TD_OK
	.no_dead_strip	_pt_ta_map_id2thr
.subsections_via_symbols
