	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_evq_dequeue                 ## -- Begin function pt_evq_dequeue
	.p2align	4, 0x90
_pt_evq_dequeue:                        ## @pt_evq_dequeue
	.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
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	_evb_max@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jbe	LBB0_6
## %bb.2:
	movq	%rdi, %rbx
	movl	%esi, %r15d
	movq	(%rdi), %rax
	movq	(%rax,%r15,8), %r14
	movq	_evq_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	jle	LBB0_6
## %bb.3:
	movq	8(%rbx), %rdx
	movq	(%rdx,%r15,8), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_6
## %bb.4:
	cmpq	%rdx, %r14
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_pt_evq_inc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	16(%rbx), %rax
	shlq	$2, %r14
	addq	(%rax,%r15,8), %r14
	movq	%r14, %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_evb_max,4,2                    ## @evb_max
	.comm	_evq_max,8,3                    ## @evq_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_evq_dequeue                 ; -- Begin function pt_evq_dequeue
	.p2align	2
_pt_evq_dequeue:                        ; @pt_evq_dequeue
	.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, x0
	mov	x0, #0
	cbz	x19, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _evb_max@GOTPAGE
Lloh1:
	ldr	x8, [x8, _evb_max@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ls	LBB0_5
; %bb.2:
	mov	w8, w1
	lsl	x21, x8, #3
	ldp	x8, x9, [x19]
	ldr	x20, [x8, x21]
	ldr	x8, [x9, x21]
Lloh3:
	adrp	x9, _evq_max@GOTPAGE
Lloh4:
	ldr	x9, [x9, _evq_max@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x20
	ccmp	x9, x8, #4, gt
	ccmp	x20, x8, #4, gt
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_pt_evq_inc
	ldr	x8, [x19]
	str	x0, [x8, x21]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21]
	add	x0, x8, x20, lsl #2
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_evb_max,4,2                    ; @evb_max
	.comm	_evq_max,8,3                    ; @evq_max
.subsections_via_symbols
