	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asyncQueuePageDiff
_asyncQueuePageDiff:                    ## @asyncQueuePageDiff
	.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
	movl	%edi, %ebx
	testl	%edi, %edi
	setns	%al
	movq	_QUEUE_MAX_PAGE@GOTPCREL(%rip), %r15
	cmpl	%edi, (%r15)
	movl	%esi, %r14d
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	testl	%r14d, %r14d
	setns	%al
	cmpl	%r14d, (%r15)
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	subl	%r14d, %ebx
	movl	(%r15), %ecx
	movl	%ecx, %eax
	incl	%eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %ecx
	incl	%ecx
	sarl	%ecx
	cmpl	%ecx, %ebx
	jge	LBB0_1
## %bb.2:
	negl	%ecx
	xorl	%edx, %edx
	cmpl	%ecx, %ebx
	cmovll	%eax, %edx
	addl	%edx, %ebx
	jmp	LBB0_3
LBB0_1:
	subl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUEUE_MAX_PAGE,4,2             ## @QUEUE_MAX_PAGE
	.no_dead_strip	_asyncQueuePageDiff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asyncQueuePageDiff
_asyncQueuePageDiff:                    ; @asyncQueuePageDiff
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #0
Lloh0:
	adrp	x21, _QUEUE_MAX_PAGE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _QUEUE_MAX_PAGE@GOTPAGEOFF]
	ldr	w8, [x21]
	ccmp	w8, w0, #8, ge
	cset	w0, ge
	bl	_Assert
	cmp	w19, #0
	ldr	w8, [x21]
	ccmp	w8, w19, #8, ge
	cset	w0, ge
	bl	_Assert
	sub	w8, w20, w19
	ldr	w9, [x21]
	add	w10, w9, #1
	add	w11, w9, #2
	cmp	w10, #0
	csinc	w9, w11, w9, lt
	asr	w9, w9, #1
	neg	w11, w9
	cmp	w8, w11
	csel	w11, w10, wzr, lt
	add	w11, w11, w8
	sub	w10, w8, w10
	cmp	w8, w9
	csel	w0, w11, w10, lt
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QUEUE_MAX_PAGE,4,2             ; @QUEUE_MAX_PAGE
	.no_dead_strip	_asyncQueuePageDiff
.subsections_via_symbols
