	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_get_event
_queue_get_event:                       ## @queue_get_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	incl	%eax
	movq	_APM_MAX_EVENTS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, (%rdi)
	movq	8(%rdi), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APM_MAX_EVENTS,4,2             ## @APM_MAX_EVENTS
	.no_dead_strip	_queue_get_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_get_event
_queue_get_event:                       ; @queue_get_event
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w8, w8, #1
Lloh0:
	adrp	x9, _APM_MAX_EVENTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _APM_MAX_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x0]
	ldr	x9, [x0, #8]
	ldr	w0, [x9, w8, sxtw #2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_APM_MAX_EVENTS,4,2             ; @APM_MAX_EVENTS
	.no_dead_strip	_queue_get_event
.subsections_via_symbols
