	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scond_wait_timeout             ## -- Begin function scond_wait_timeout
	.p2align	4, 0x90
_scond_wait_timeout:                    ## @scond_wait_timeout
	.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
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_mach_host_self
	movq	_CALENDAR_CLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	callq	_host_get_clock_service
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	callq	_clock_get_time
	xorl	%eax, %eax
	callq	_mach_task_self
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_mach_port_deallocate
	movl	-64(%rbp), %r14d
	movl	-60(%rbp), %r13d
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_INT64_C
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_INT64_C
	movl	%eax, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r12d
	addl	%r14d, %ebx
	movl	%ebx, -56(%rbp)
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_INT64_C
	imull	%r12d, %eax
	addl	%r13d, %eax
	movl	%eax, -52(%rbp)
	cmpl	$1000000001, %eax               ## imm = 0x3B9ACA01
	jl	LBB0_2
## %bb.1:
	addl	$-1000000000, %eax              ## imm = 0xC4653600
	movl	%eax, -52(%rbp)
	incl	%ebx
	movl	%ebx, -56(%rbp)
LBB0_2:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_pthread_cond_timedwait
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CALENDAR_CLOCK,4,2             ## @CALENDAR_CLOCK
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scond_wait_timeout             ; -- Begin function scond_wait_timeout
	.p2align	2
_scond_wait_timeout:                    ; @scond_wait_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #24]
	bl	_mach_host_self
Lloh0:
	adrp	x8, _CALENDAR_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CALENDAR_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_host_get_clock_service
	ldr	w0, [sp, #12]
	mov	x1, sp
	bl	_clock_get_time
	bl	_mach_task_self
	ldr	w1, [sp, #12]
	bl	_mach_port_deallocate
	ldp	w22, w23, [sp]
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_INT64_C
	sdiv	w24, w21, w0
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_INT64_C
	sdiv	w8, w21, w0
	msub	w25, w8, w0, w21
	add	w21, w22, w24
	str	w21, [sp, #16]
	mov	w0, #1000
	bl	_INT64_C
	madd	w8, w0, w25, w23
	str	w8, [sp, #20]
	mov	w9, #51713
	movk	w9, #15258, lsl #16
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	mov	w9, #13824
	movk	w9, #50277, lsl #16
	add	w8, w8, w9
	add	w9, w21, #1
	stp	w9, w8, [sp, #16]
LBB0_2:
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_pthread_cond_timedwait
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CALENDAR_CLOCK,4,2             ; @CALENDAR_CLOCK
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
.subsections_via_symbols
