	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evthread_use_pthreads          ## -- Begin function evthread_use_pthreads
	.p2align	4, 0x90
_evthread_use_pthreads:                 ## @evthread_use_pthreads
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	_EVTHREAD_LOCK_API_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_EVTHREAD_LOCKTYPE_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_evthread_posix_lock_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_evthread_posix_lock_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_evthread_posix_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_evthread_posix_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_EVTHREAD_CONDITION_API_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_evthread_posix_cond_alloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_evthread_posix_cond_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_evthread_posix_cond_signal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_evthread_posix_cond_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_attr_recursive@GOTPCREL(%rip), %rdi
	callq	_pthread_mutexattr_init
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_PTHREAD_MUTEX_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_attr_recursive@GOTPCREL(%rip), %rdi
	callq	_pthread_mutexattr_settype
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %rdi
	callq	_evthread_set_lock_callbacks
	leaq	-32(%rbp), %rdi
	callq	_evthread_set_condition_callbacks
	movq	_evthread_posix_get_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_evthread_set_id_callback
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVTHREAD_LOCK_API_VERSION,4,2  ## @EVTHREAD_LOCK_API_VERSION
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ## @EVTHREAD_LOCKTYPE_RECURSIVE
	.comm	_evthread_posix_lock_alloc,4,2  ## @evthread_posix_lock_alloc
	.comm	_evthread_posix_lock_free,4,2   ## @evthread_posix_lock_free
	.comm	_evthread_posix_lock,4,2        ## @evthread_posix_lock
	.comm	_evthread_posix_unlock,4,2      ## @evthread_posix_unlock
	.comm	_EVTHREAD_CONDITION_API_VERSION,4,2 ## @EVTHREAD_CONDITION_API_VERSION
	.comm	_evthread_posix_cond_alloc,4,2  ## @evthread_posix_cond_alloc
	.comm	_evthread_posix_cond_free,4,2   ## @evthread_posix_cond_free
	.comm	_evthread_posix_cond_signal,4,2 ## @evthread_posix_cond_signal
	.comm	_evthread_posix_cond_wait,4,2   ## @evthread_posix_cond_wait
	.comm	_attr_recursive,4,2             ## @attr_recursive
	.comm	_PTHREAD_MUTEX_RECURSIVE,4,2    ## @PTHREAD_MUTEX_RECURSIVE
	.comm	_evthread_posix_get_id,4,2      ## @evthread_posix_get_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evthread_use_pthreads          ; -- Begin function evthread_use_pthreads
	.p2align	2
_evthread_use_pthreads:                 ; @evthread_use_pthreads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _EVTHREAD_LOCK_API_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTHREAD_LOCK_API_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh6:
	adrp	x8, _evthread_posix_lock_alloc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _evthread_posix_lock_alloc@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _evthread_posix_lock_free@GOTPAGE
Lloh10:
	ldr	x9, [x9, _evthread_posix_lock_free@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh12:
	adrp	x8, _evthread_posix_lock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _evthread_posix_lock@GOTPAGEOFF]
Lloh14:
	adrp	x9, _evthread_posix_unlock@GOTPAGE
Lloh15:
	ldr	x9, [x9, _evthread_posix_unlock@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh18:
	adrp	x8, _EVTHREAD_CONDITION_API_VERSION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EVTHREAD_CONDITION_API_VERSION@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _evthread_posix_cond_alloc@GOTPAGE
Lloh22:
	ldr	x9, [x9, _evthread_posix_cond_alloc@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
Lloh24:
	adrp	x8, _evthread_posix_cond_free@GOTPAGE
Lloh25:
	ldr	x8, [x8, _evthread_posix_cond_free@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _evthread_posix_cond_signal@GOTPAGE
Lloh28:
	ldr	x9, [x9, _evthread_posix_cond_signal@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh30:
	adrp	x8, _evthread_posix_cond_wait@GOTPAGE
Lloh31:
	ldr	x8, [x8, _evthread_posix_cond_wait@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh33:
	adrp	x0, _attr_recursive@GOTPAGE
Lloh34:
	ldr	x0, [x0, _attr_recursive@GOTPAGEOFF]
	bl	_pthread_mutexattr_init
	cbnz	x0, LBB0_2
; %bb.1:
Lloh35:
	adrp	x8, _PTHREAD_MUTEX_RECURSIVE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PTHREAD_MUTEX_RECURSIVE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x0, _attr_recursive@GOTPAGE
Lloh39:
	ldr	x0, [x0, _attr_recursive@GOTPAGEOFF]
	bl	_pthread_mutexattr_settype
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	add	x0, sp, #24
	bl	_evthread_set_lock_callbacks
	mov	x0, sp
	bl	_evthread_set_condition_callbacks
Lloh40:
	adrp	x8, _evthread_posix_get_id@GOTPAGE
Lloh41:
	ldr	x8, [x8, _evthread_posix_get_id@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_evthread_set_id_callback
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EVTHREAD_LOCK_API_VERSION,4,2  ; @EVTHREAD_LOCK_API_VERSION
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ; @EVTHREAD_LOCKTYPE_RECURSIVE
	.comm	_evthread_posix_lock_alloc,4,2  ; @evthread_posix_lock_alloc
	.comm	_evthread_posix_lock_free,4,2   ; @evthread_posix_lock_free
	.comm	_evthread_posix_lock,4,2        ; @evthread_posix_lock
	.comm	_evthread_posix_unlock,4,2      ; @evthread_posix_unlock
	.comm	_EVTHREAD_CONDITION_API_VERSION,4,2 ; @EVTHREAD_CONDITION_API_VERSION
	.comm	_evthread_posix_cond_alloc,4,2  ; @evthread_posix_cond_alloc
	.comm	_evthread_posix_cond_free,4,2   ; @evthread_posix_cond_free
	.comm	_evthread_posix_cond_signal,4,2 ; @evthread_posix_cond_signal
	.comm	_evthread_posix_cond_wait,4,2   ; @evthread_posix_cond_wait
	.comm	_attr_recursive,4,2             ; @attr_recursive
	.comm	_PTHREAD_MUTEX_RECURSIVE,4,2    ; @PTHREAD_MUTEX_RECURSIVE
	.comm	_evthread_posix_get_id,4,2      ; @evthread_posix_get_id
.subsections_via_symbols
