	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_queued_event
_get_queued_event:                      ## @get_queued_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	incq	%rax
	movq	%rax, (%rdi)
	movq	_APM_MAX_EVENTS@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	cmovlq	%rax, %rsi
	movq	%rsi, (%rdi)
	movl	(%rcx,%rsi,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APM_MAX_EVENTS,8,3             ## @APM_MAX_EVENTS
	.no_dead_strip	_get_queued_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_queued_event
_get_queued_event:                      ; @get_queued_event
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	add	x10, x8, #1
	str	x10, [x0]
Lloh0:
	adrp	x11, _APM_MAX_EVENTS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _APM_MAX_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	csinc	x8, xzr, x8, ge
	str	x8, [x0]
	ldr	w0, [x9, x8, lsl #2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APM_MAX_EVENTS,8,3             ; @APM_MAX_EVENTS
	.no_dead_strip	_get_queued_event
.subsections_via_symbols
