	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libthread_init
_libthread_init:                        ## @libthread_init
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, -36(%rbp)
	movq	_uw_thread_active@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_lookup_minimal_symbol
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rdi
	callq	_SYMBOL_VALUE_ADDRESS
	movq	_thr_debug_addr@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	_current_target@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_base_ops@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	leaq	-64(%rbp), %rdi
	callq	_read_thr_debug
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	cmpl	$0, -48(%rbp)
	je	LBB0_11
## %bb.5:
	movq	_uw_thread_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movl	$1, (%rbx)
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	_thr_brk_addr@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	callq	_create_thread_event_breakpoint
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	movq	(%r12), %rdi
	leaq	-36(%rbp), %rsi
	movl	$4, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	movq	_thr_map_main@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_11
LBB0_6:
	xorl	%eax, %eax
	callq	_notice_threads
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_delete_breakpoint
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_warning
	xorl	%eax, %eax
	callq	_deactivate_uw_thread
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_uw_thread_active,4,2           ## @uw_thread_active
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_thr_debug"

	.comm	_thr_debug_addr,8,3             ## @thr_debug_addr
	.comm	_base_ops,8,3                   ## @base_ops
	.comm	_current_target,8,3             ## @current_target
	.comm	_uw_thread_ops,4,2              ## @uw_thread_ops
	.comm	_target_has_execution,4,2       ## @target_has_execution
	.comm	_thr_brk_addr,8,3               ## @thr_brk_addr
	.comm	_thr_map_main,8,3               ## @thr_map_main
L_.str.1:                               ## @.str.1
	.asciz	"uw-thread: unable to initialize user-mode thread debugging\n"

	.no_dead_strip	_libthread_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libthread_init
_libthread_init:                        ; @libthread_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	w8, #1
	str	w8, [sp, #4]
Lloh0:
	adrp	x20, _uw_thread_active@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uw_thread_active@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_1:
	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
	add	sp, sp, #80
	ret
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x2, #0
	bl	_lookup_minimal_symbol
	cbz	x0, LBB0_1
; %bb.3:
	bl	_SYMBOL_VALUE_ADDRESS
Lloh4:
	adrp	x21, _thr_debug_addr@GOTPAGE
Lloh5:
	ldr	x21, [x21, _thr_debug_addr@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_1
; %bb.4:
Lloh6:
	adrp	x8, _current_target@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_target@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x19, _base_ops@GOTPAGE
Lloh10:
	ldr	x19, [x19, _base_ops@GOTPAGEOFF]
	str	x8, [x19]
	add	x0, sp, #8
	bl	_read_thr_debug
	cbz	w0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_1
; %bb.6:
Lloh11:
	adrp	x0, _uw_thread_ops@GOTPAGE
Lloh12:
	ldr	x0, [x0, _uw_thread_ops@GOTPAGEOFF]
	bl	_push_target
	mov	w8, #1
	str	w8, [x20]
Lloh13:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh14:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	x0, [sp, #16]
Lloh16:
	adrp	x8, _thr_brk_addr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _thr_brk_addr@GOTPAGEOFF]
Lloh18:
	str	x0, [x8]
	bl	_create_thread_event_breakpoint
	cbz	x0, LBB0_12
; %bb.8:
	mov	x20, x0
	ldr	x0, [x21]
	ldr	x8, [x19]
	add	x1, sp, #4
	mov	w2, #4
	mov	w3, #1
	mov	x4, #0
	mov	x5, x19
	blr	x8
	cbz	w0, LBB0_11
; %bb.9:
Lloh19:
	adrp	x8, _thr_map_main@GOTPAGE
Lloh20:
	ldr	x8, [x8, _thr_map_main@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
	b	LBB0_1
LBB0_10:
	bl	_notice_threads
	b	LBB0_1
LBB0_11:
	mov	x0, x20
	bl	_delete_breakpoint
LBB0_12:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	bl	_deactivate_uw_thread
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_uw_thread_active,4,2           ; @uw_thread_active
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_thr_debug"

	.comm	_thr_debug_addr,8,3             ; @thr_debug_addr
	.comm	_base_ops,8,3                   ; @base_ops
	.comm	_current_target,8,3             ; @current_target
	.comm	_uw_thread_ops,4,2              ; @uw_thread_ops
	.comm	_target_has_execution,4,2       ; @target_has_execution
	.comm	_thr_brk_addr,8,3               ; @thr_brk_addr
	.comm	_thr_map_main,8,3               ; @thr_map_main
l_.str.1:                               ; @.str.1
	.asciz	"uw-thread: unable to initialize user-mode thread debugging\n"

	.no_dead_strip	_libthread_init
.subsections_via_symbols
