	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_sync_delay                 ## -- Begin function get_sync_delay
	.p2align	4, 0x90
_get_sync_delay:                        ## @get_sync_delay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.2:
	movl	%ecx, %eax
	movq	_now@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_sync_last@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	incq	%rcx
	cmpl	$7, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %edi
	andl	$-8, %edi
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rdx
	andq	$-2, %rdx
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rax,4), %xmm3
	movdqu	16(%rsi,%rax,4), %xmm4
	movdqu	32(%rsi,%rax,4), %xmm5
	movdqu	48(%rsi,%rax,4), %xmm6
	movdqa	%xmm0, %xmm7
	psubd	%xmm3, %xmm7
	pmaxsd	%xmm1, %xmm7
	movdqa	%xmm0, %xmm3
	psubd	%xmm4, %xmm3
	pmaxsd	%xmm2, %xmm3
	movdqa	%xmm0, %xmm1
	psubd	%xmm5, %xmm1
	pmaxsd	%xmm7, %xmm1
	movdqa	%xmm0, %xmm2
	psubd	%xmm6, %xmm2
	pmaxsd	%xmm3, %xmm2
	addq	$16, %rax
	addq	$-2, %rdx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqu	(%rsi,%rax,4), %xmm3
	movdqu	16(%rsi,%rax,4), %xmm4
	movdqa	%xmm0, %xmm5
	psubd	%xmm3, %xmm5
	pmaxsd	%xmm5, %xmm1
	psubd	%xmm4, %xmm0
	pmaxsd	%xmm0, %xmm2
LBB0_10:
	pmaxsd	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	pmaxsd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pmaxsd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%rcx, %rdi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %edx
	subl	(%rsi,%rdi,4), %edx
	cmpl	%eax, %edx
	cmovgl	%edx, %eax
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_11
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PRIORITY,4,2               ## @MAX_PRIORITY
	.comm	_now,4,2                        ## @now
	.comm	_sync_last,8,3                  ## @sync_last
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_sync_delay                 ; -- Begin function get_sync_delay
	.p2align	2
_get_sync_delay:                        ; @get_sync_delay
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_PRIORITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PRIORITY@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	tbnz	w11, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _now@GOTPAGE
Lloh4:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _sync_last@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sync_last@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x9]
	add	x9, x11, #1
	cmp	w11, #15
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x12, x10, #32
	movi.2d	v1, #0000000000000000
	mov	x13, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	sub.4s	v5, v0, v5
	sub.4s	v6, v0, v6
	sub.4s	v7, v0, v7
	sub.4s	v16, v0, v16
	smax.4s	v1, v5, v1
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	smax.4s	v4, v16, v4
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	smax.4s	v0, v1, v2
	smax.4s	v0, v0, v3
	smax.4s	v0, v0, v4
	smaxv.4s	s0, v0
	fmov	w0, s0
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	sub	w11, w8, w11
	cmp	w11, w0
	csel	w0, w11, w0, gt
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PRIORITY,4,2               ; @MAX_PRIORITY
	.comm	_now,4,2                        ; @now
	.comm	_sync_last,8,3                  ; @sync_last
.subsections_via_symbols
