	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libthread_stub
_libthread_stub:                        ## @libthread_stub
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_read_pc_pid
	movq	_DECR_PC_AFTER_BREAK@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	_thr_brk_addr@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.1:
	movq	_SP_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_read_register_pid
	movq	%rax, %rbx
	movq	_base_ops@GOTPCREL(%rip), %r12
	movq	_SP_ARG0@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%rax, %rdi
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_33
## %bb.2:
	movq	(%r13), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$8, %rdi
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_33
## %bb.3:
	xorl	%eax, %eax
	callq	_find_main
	movl	-52(%rbp), %ecx
	leal	-128(%rcx), %edx
	cmpl	$8, %edx
	ja	LBB0_34
## %bb.4:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_33:
	leaq	L_.str.1(%rip), %rdi
	callq	_DBG
LBB0_34:
	movq	_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_dbgpid
	movq	%r14, %rdi
	callq	_dbgpid
	movl	-52(%rbp), %edi
	callq	_dbgchange
	testq	%r14, %r14
	je	LBB0_35
## %bb.36:
	movl	-80(%rbp), %edi
	callq	_dbgstate
	movq	%rax, %rdi
	jmp	LBB0_37
LBB0_35:
	leaq	L_.str.3(%rip), %rdi
LBB0_37:
	callq	_DBG2
LBB0_38:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
	jmp	LBB0_34
LBB0_23:
	movq	_switchto_thread@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.24:
	cmpl	$133, %ecx
	jne	LBB0_32
## %bb.25:
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	leaq	-80(%rbp), %rsi
	callq	_read_map
	testl	%eax, %eax
	je	LBB0_33
## %bb.26:
	movslq	-76(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.28:
	leaq	-48(%rbp), %rsi
	callq	_read_lwp
	testl	%eax, %eax
	je	LBB0_33
## %bb.29:
	movl	-48(%rbp), %edi
	callq	_find_thread_lwp
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	(%rax), %rax
	movl	$0, (%rax)
LBB0_31:
	movl	-48(%rbp), %ecx
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movl	%ecx, 4(%rdx)
	jmp	LBB0_32
LBB0_5:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.6:
	movq	%rax, -64(%rbp)
	movq	%rax, %rdi
	testq	%rdi, %rdi
	je	LBB0_34
LBB0_9:
	leaq	-80(%rbp), %rsi
	callq	_read_map
	testl	%eax, %eax
	je	LBB0_33
## %bb.10:
	movq	%r15, %rdi
	callq	_PIDGET
	movl	-72(%rbp), %esi
	movl	%eax, %edi
	callq	_MKTID
	movq	%rax, %r14
	movl	-52(%rbp), %eax
	cmpl	$130, %eax
	je	LBB0_18
## %bb.11:
	cmpl	$134, %eax
	je	LBB0_20
## %bb.12:
	cmpl	$131, %eax
	jne	LBB0_34
## %bb.13:
	movslq	-76(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.15:
	leaq	-48(%rbp), %rsi
	callq	_read_lwp
	testl	%eax, %eax
	je	LBB0_33
## %bb.16:
	movl	-48(%rbp), %esi
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	callq	_target_pid_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_unfiltered
	movq	%r14, %rdi
	callq	_delete_thread
	movq	_inferior_ptid@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_ptid_equal
	testl	%eax, %eax
	je	LBB0_34
## %bb.19:
	movq	%r15, (%rbx)
	jmp	LBB0_34
LBB0_20:
	movq	_switchto_thread@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_33
## %bb.21:
	movq	%r14, %rdi
	callq	_find_thread_pid
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_33
## %bb.22:
	movq	(%rax), %rax
	movl	$0, (%rax)
	jmp	LBB0_34
LBB0_27:
	movq	(%rbx), %rax
LBB0_32:
	movq	(%rax), %rax
	movl	$1, (%rax)
	movq	$0, (%rbx)
	jmp	LBB0_34
LBB0_14:
	xorl	%esi, %esi
LBB0_17:
	movl	-72(%rbp), %edi
	movq	-64(%rbp), %rdx
	movq	%r14, %rcx
	callq	_add_thread_uw
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_33
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_33
	.long	L0_0_set_23
	.long	L0_0_set_5
	.long	L0_0_set_33
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_null_ptid,8,3                  ## @null_ptid
	.comm	_DECR_PC_AFTER_BREAK,8,3        ## @DECR_PC_AFTER_BREAK
	.comm	_thr_brk_addr,8,3               ## @thr_brk_addr
	.comm	_SP_REGNUM,4,2                  ## @SP_REGNUM
	.comm	_base_ops,8,3                   ## @base_ops
	.comm	_SP_ARG0,8,3                    ## @SP_ARG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Exited %s]\n"

	.comm	_inferior_ptid,8,3              ## @inferior_ptid
	.comm	_switchto_thread,8,3            ## @switchto_thread
L_.str.1:                               ## @.str.1
	.asciz	"unexpected condition in libthread_stub()"

	.comm	_pid,8,3                        ## @pid
L_.str.3:                               ## @.str.3
	.space	1

	.no_dead_strip	_libthread_stub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libthread_stub
_libthread_stub:                        ; @libthread_stub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x8, _null_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_read_pc_pid
Lloh3:
	adrp	x8, _DECR_PC_AFTER_BREAK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DECR_PC_AFTER_BREAK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _thr_brk_addr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _thr_brk_addr@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	x8, x0, x8
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
Lloh9:
	adrp	x8, _SP_REGNUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SP_REGNUM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_read_register_pid
	mov	x22, x0
Lloh12:
	adrp	x21, _base_ops@GOTPAGE
Lloh13:
	ldr	x21, [x21, _base_ops@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh14:
	adrp	x23, _SP_ARG0@GOTPAGE
Lloh15:
	ldr	x23, [x23, _SP_ARG0@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x0
	add	x1, sp, #24
	mov	w2, #8
	mov	w3, #0
	mov	x4, #0
	mov	x5, x21
	blr	x8
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x9, x22, x9
	add	x0, x9, #8
	add	x1, sp, #20
	mov	w2, #4
	mov	w3, #0
	mov	x4, #0
	mov	x5, x21
	blr	x8
	cbz	w0, LBB0_5
; %bb.3:
	bl	_find_main
	ldr	w9, [sp, #20]
	sub	w8, w9, #128
	cmp	w8, #8
	b.hi	LBB0_6
; %bb.4:
Lloh16:
	adrp	x10, lJTI0_0@PAGE
Lloh17:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
LBB0_6:
Lloh20:
	adrp	x8, _pid@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pid@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_dbgpid
	mov	x0, x19
	bl	_dbgpid
	ldr	w0, [sp, #20]
	bl	_dbgchange
	cbz	x19, LBB0_8
; %bb.7:
	ldr	w0, [sp, #8]
	bl	_dbgstate
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_DBG2
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_22
	b	LBB0_6
LBB0_12:
Lloh25:
	adrp	x20, _switchto_thread@GOTPAGE
Lloh26:
	ldr	x20, [x20, _switchto_thread@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.13:
	cmp	w9, #133
	b.ne	LBB0_35
; %bb.14:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	add	x1, sp, #8
	bl	_read_map
	cbz	w0, LBB0_5
; %bb.15:
	ldrsw	x0, [sp, #12]
	cbz	w0, LBB0_34
; %bb.16:
	mov	x1, sp
	bl	_read_lwp
	cbz	w0, LBB0_5
; %bb.17:
	ldr	w0, [sp]
	bl	_find_thread_lwp
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x0]
	str	wzr, [x8]
LBB0_19:
	ldr	w9, [sp]
	ldr	x8, [x20]
	ldr	x10, [x8]
	str	w9, [x10, #4]
	b	LBB0_35
LBB0_20:
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_22
; %bb.21:
	str	x0, [sp, #24]
	mov	x8, x0
	cbz	x8, LBB0_6
LBB0_22:
	add	x1, sp, #8
	mov	x0, x8
	bl	_read_map
	cbz	w0, LBB0_5
; %bb.23:
	mov	x0, x20
	bl	_PIDGET
	ldr	w1, [sp, #16]
	bl	_MKTID
	mov	x19, x0
	ldr	w8, [sp, #20]
	cmp	w8, #130
	b.eq	LBB0_29
; %bb.24:
	cmp	w8, #134
	b.eq	LBB0_31
; %bb.25:
	cmp	w8, #131
	b.ne	LBB0_6
; %bb.26:
	ldrsw	x0, [sp, #12]
	cbz	w0, LBB0_36
; %bb.27:
	mov	x1, sp
	bl	_read_lwp
	cbz	w0, LBB0_5
; %bb.28:
	ldr	w1, [sp]
	b	LBB0_37
LBB0_29:
	mov	x0, x19
	bl	_target_pid_to_str
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_unfiltered
	mov	x0, x19
	bl	_delete_thread
Lloh29:
	adrp	x21, _inferior_ptid@GOTPAGE
Lloh30:
	ldr	x21, [x21, _inferior_ptid@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_ptid_equal
	cbz	w0, LBB0_6
; %bb.30:
	str	x20, [x21]
	b	LBB0_6
LBB0_31:
Lloh31:
	adrp	x20, _switchto_thread@GOTPAGE
Lloh32:
	ldr	x20, [x20, _switchto_thread@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.32:
	mov	x0, x19
	bl	_find_thread_pid
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.33:
	ldr	x8, [x0]
	str	wzr, [x8]
	b	LBB0_6
LBB0_34:
	ldr	x8, [x20]
LBB0_35:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	str	xzr, [x20]
	b	LBB0_6
LBB0_36:
	mov	w1, #0
LBB0_37:
	ldr	w0, [sp, #16]
	ldr	x2, [sp, #24]
	mov	x3, x19
	bl	_add_thread_uw
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_null_ptid,8,3                  ; @null_ptid
	.comm	_DECR_PC_AFTER_BREAK,8,3        ; @DECR_PC_AFTER_BREAK
	.comm	_thr_brk_addr,8,3               ; @thr_brk_addr
	.comm	_SP_REGNUM,4,2                  ; @SP_REGNUM
	.comm	_base_ops,8,3                   ; @base_ops
	.comm	_SP_ARG0,8,3                    ; @SP_ARG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Exited %s]\n"

	.comm	_inferior_ptid,8,3              ; @inferior_ptid
	.comm	_switchto_thread,8,3            ; @switchto_thread
l_.str.1:                               ; @.str.1
	.asciz	"unexpected condition in libthread_stub()"

	.comm	_pid,8,3                        ; @pid
l_.str.3:                               ; @.str.3
	.space	1

	.no_dead_strip	_libthread_stub
.subsections_via_symbols
