	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timeout_store
_timeout_store:                         ## @timeout_store
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_strict_strtoul_scaled
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	-24(%rbp), %rsi
	movq	_LONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	cmpq	%rax, %rsi
	jae	LBB0_5
LBB0_6:
	imulq	%rsi, %rcx
	movabsq	$3777893186295716171, %rdx      ## imm = 0x346DC5D63886594B
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$11, %rdx
	movq	%rdx, -24(%rbp)
	movq	_MAX_SCHEDULE_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%rax), %rcx
	cmpq	%rax, %rdx
	cmovbq	%rdx, %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rax, %rdx
	jb	LBB0_9
LBB0_8:
	testq	%rcx, %rcx
	movl	$1, %edx
	cmovneq	%rcx, %rdx
	movq	%rdx, -24(%rbp)
LBB0_9:
	movq	%rdx, 8(%rbx)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.10:
	cmpq	%rax, (%rdi)
	jae	LBB0_12
## %bb.11:
	movq	%rdx, (%rdi)
	callq	_md_wakeup_thread
LBB0_12:
	movl	%r14d, %eax
	jmp	LBB0_13
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %rsi
	jb	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_MAX,8,3                   ## @LONG_MAX
	.comm	_HZ,8,3                         ## @HZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ## @MAX_SCHEDULE_TIMEOUT
	.no_dead_strip	_timeout_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timeout_store
_timeout_store:                         ; @timeout_store
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	w2, #4
	bl	_strict_strtoul_scaled
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	udiv	x10, x10, x9
	cmp	x8, x10
	b.hs	LBB0_8
; %bb.2:
	mul	x8, x9, x8
	mov	x9, #22859
	movk	x9, #14470, lsl #16
	movk	x9, #50646, lsl #32
	movk	x9, #13421, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #11
	str	x8, [sp, #8]
Lloh6:
	adrp	x9, _MAX_SCHEDULE_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_SCHEDULE_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	x10, x9, #1
	cmp	x8, x9
	csel	x10, x8, x10, lo
	cmp	x10, #0
	ccmp	x8, x9, #2, ne
	b.lo	LBB0_4
; %bb.3:
	cmp	x10, #0
	csinc	x8, x10, xzr, ne
	str	x8, [sp, #8]
LBB0_4:
	str	x8, [x20, #8]
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x10, [x0]
	cmp	x10, x9
	b.hs	LBB0_7
; %bb.6:
	str	x8, [x0]
	bl	_md_wakeup_thread
LBB0_7:
	mov	x0, x19
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_MAX,8,3                   ; @LONG_MAX
	.comm	_HZ,8,3                         ; @HZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_SCHEDULE_TIMEOUT,8,3       ; @MAX_SCHEDULE_TIMEOUT
	.no_dead_strip	_timeout_store
.subsections_via_symbols
