	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_evq_enqueue                 ## -- Begin function pt_evq_enqueue
	.p2align	4, 0x90
_pt_evq_enqueue:                        ## @pt_evq_enqueue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_evb_max@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	movl	%esi, %r12d
	movq	(%rdi), %rax
	movq	(%rax,%r12,8), %r13
	movq	_evq_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r13, %rax
	jle	LBB0_5
## %bb.3:
	movq	8(%rbx), %rcx
	movq	(%rcx,%r12,8), %r14
	cmpq	%r14, %rax
	jle	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_pt_evq_inc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_pt_evq_inc
	cmpq	%rax, %r13
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rax
	movq	%r15, (%rax,%r12,8)
	movq	16(%rbx), %rax
	shlq	$2, %r14
	addq	(%rax,%r12,8), %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pt_event_init                  ## TAILCALL
	.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_enqueue                 ; -- Begin function pt_evq_enqueue
	.p2align	2
_pt_evq_enqueue:                        ; @pt_evq_enqueue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_4
; %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_4
; %bb.2:
	mov	x19, x0
	mov	w8, w1
	lsl	x22, x8, #3
	ldp	x8, x9, [x0]
	ldr	x23, [x8, x22]
	ldr	x20, [x9, x22]
Lloh3:
	adrp	x8, _evq_max@GOTPAGE
Lloh4:
	ldr	x8, [x8, _evq_max@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x23
	ccmp	x8, x20, #4, gt
	b.le	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pt_evq_inc
	mov	x21, x0
	bl	_pt_evq_inc
	cmp	x23, x0
	b.ne	LBB0_5
LBB0_4:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x8, x9, [x19, #8]
	str	x21, [x8, x22]
	ldr	x8, [x9, x22]
	add	x0, x8, x20, lsl #2
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pt_event_init
	.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
