	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_current_thread
_get_current_thread:                    ## @get_current_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_proc_handle@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_get_current_lwp
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_BUILD_LWP
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movl	%eax, %edi
	callq	_thread_from_lwp
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_in_thread_list
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movl	%ebx, %edi
	movl	$1, %ecx
	callq	_attach_thread
LBB0_2:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_proc_handle,4,2                ## @proc_handle
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_get_current_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_current_thread
_get_current_thread:                    ; @get_current_thread
	.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
Lloh0:
	adrp	x19, _proc_handle@GOTPAGE
Lloh1:
	ldr	x19, [x19, _proc_handle@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_get_current_lwp
	ldr	w1, [x19]
	bl	_BUILD_LWP
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_thread_from_lwp
	mov	x19, x0
	bl	_in_thread_list
	cbnz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_attach_thread
LBB0_2:
Lloh2:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh4:
	str	w19, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_proc_handle,4,2                ; @proc_handle
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_get_current_thread
.subsections_via_symbols
