	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_delay_np               ## -- Begin function pthread_delay_np
	.p2align	4, 0x90
_pthread_delay_np:                      ## @pthread_delay_np
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	%rbx, %rcx
	orq	%rax, %rcx
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pthread_testcancel
	movl	$1, %edi
	callq	_pte_osThreadSleep
	xorl	%eax, %eax
	callq	_pthread_testcancel
	jmp	LBB0_15
LBB0_3:
	addq	$999999, %rax                   ## imm = 0xF423F
	movabsq	$4835703278458516699, %rcx      ## imm = 0x431BDE82D7B634DB
	imulq	%rcx
	movq	%rdx, %r15
	xorl	%eax, %eax
	callq	_pthread_self
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_PTHREAD_CANCEL_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	movl	20(%r14), %edi
	callq	_pte_osThreadCheckCancel
	movq	_PTE_OS_INTERRUPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	_PThreadStateCanceling@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 8(%r14)
	jge	LBB0_8
## %bb.7:
	movq	%rax, 8(%r14)
	movq	_PTHREAD_CANCEL_DISABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	_PTE_EPS_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pte_throw
LBB0_8:
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	movq	%r15, %rcx
	shrq	$63, %rcx
	shrq	$18, %r15
	addl	%ecx, %r15d
	addl	%eax, %r15d
	movl	%r15d, %edi
	callq	_pte_osThreadSleep
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_PTE_OS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PTHREAD_CANCEL_ENABLE,8,3      ## @PTHREAD_CANCEL_ENABLE
	.comm	_PTE_OS_INTERRUPTED,8,3         ## @PTE_OS_INTERRUPTED
	.comm	_PThreadStateCanceling,8,3      ## @PThreadStateCanceling
	.comm	_PTHREAD_CANCEL_DISABLE,8,3     ## @PTHREAD_CANCEL_DISABLE
	.comm	_PTE_EPS_CANCEL,4,2             ## @PTE_EPS_CANCEL
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_PTE_OS_OK,8,3                  ## @PTE_OS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pthread_delay_np               ; -- Begin function pthread_delay_np
	.p2align	2
_pthread_delay_np:                      ; @pthread_delay_np
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_13
; %bb.1:
	ldp	x20, x21, [x0]
	orr	x8, x20, x21
	cbnz	x8, LBB0_3
; %bb.2:
	bl	_pthread_testcancel
	mov	w0, #1
	bl	_pte_osThreadSleep
	bl	_pthread_testcancel
	b	LBB0_11
LBB0_3:
	bl	_pthread_self
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PTHREAD_CANCEL_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTHREAD_CANCEL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x19, #20]
	bl	_pte_osThreadCheckCancel
Lloh3:
	adrp	x8, _PTE_OS_INTERRUPTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTE_OS_INTERRUPTED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.6:
	add	x20, x19, #16
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x8, _PThreadStateCanceling@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PThreadStateCanceling@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.7:
Lloh9:
	adrp	x9, _PTHREAD_CANCEL_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PTHREAD_CANCEL_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x8, [x19]
	mov	x0, x20
	bl	_pthread_mutex_unlock
Lloh12:
	adrp	x8, _PTE_EPS_CANCEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PTE_EPS_CANCEL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_pte_throw
LBB0_8:
	mov	x0, x20
	bl	_pthread_mutex_unlock
Lloh15:
	adrp	x8, _ESRCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	w8, #1000
	mov	w9, #16959
	movk	w9, #15, lsl #16
	add	x10, x21, x9
	add	x9, x9, #1
	sdiv	x9, x10, x9
	madd	w0, w20, w8, w9
	bl	_pte_osThreadSleep
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
Lloh19:
	adrp	x8, _PTE_OS_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PTE_OS_OK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
LBB0_13:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PTHREAD_CANCEL_ENABLE,8,3      ; @PTHREAD_CANCEL_ENABLE
	.comm	_PTE_OS_INTERRUPTED,8,3         ; @PTE_OS_INTERRUPTED
	.comm	_PThreadStateCanceling,8,3      ; @PThreadStateCanceling
	.comm	_PTHREAD_CANCEL_DISABLE,8,3     ; @PTHREAD_CANCEL_DISABLE
	.comm	_PTE_EPS_CANCEL,4,2             ; @PTE_EPS_CANCEL
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_PTE_OS_OK,8,3                  ; @PTE_OS_OK
.subsections_via_symbols
