	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpts_fifo_pop
_cpts_fifo_pop:                         ## @cpts_fifo_pop
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_intstat_raw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cpts_read32
	movq	_TS_PEND_RAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_event_high@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpts_read32
	movl	%eax, (%r15)
	movq	_event_low@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cpts_read32
	movl	%eax, (%r14)
	movq	_EVENT_POP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_event_pop@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cpts_write32
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intstat_raw,4,2                ## @intstat_raw
	.comm	_TS_PEND_RAW,4,2                ## @TS_PEND_RAW
	.comm	_event_high,4,2                 ## @event_high
	.comm	_event_low,4,2                  ## @event_low
	.comm	_EVENT_POP,4,2                  ## @EVENT_POP
	.comm	_event_pop,4,2                  ## @event_pop
	.no_dead_strip	_cpts_fifo_pop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpts_fifo_pop
_cpts_fifo_pop:                         ; @cpts_fifo_pop
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _intstat_raw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intstat_raw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cpts_read32
Lloh3:
	adrp	x8, _TS_PEND_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TS_PEND_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _event_high@GOTPAGE
Lloh7:
	ldr	x8, [x8, _event_high@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpts_read32
	str	w0, [x21]
Lloh9:
	adrp	x8, _event_low@GOTPAGE
Lloh10:
	ldr	x8, [x8, _event_low@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cpts_read32
	str	w0, [x20]
Lloh12:
	adrp	x8, _EVENT_POP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVENT_POP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _event_pop@GOTPAGE
Lloh16:
	ldr	x8, [x8, _event_pop@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cpts_write32
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_intstat_raw,4,2                ; @intstat_raw
	.comm	_TS_PEND_RAW,4,2                ; @TS_PEND_RAW
	.comm	_event_high,4,2                 ; @event_high
	.comm	_event_low,4,2                  ; @event_low
	.comm	_EVENT_POP,4,2                  ; @EVENT_POP
	.comm	_event_pop,4,2                  ; @event_pop
	.no_dead_strip	_cpts_fifo_pop
.subsections_via_symbols
