	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getevents
_getevents:                             ## @getevents
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	callq	_LIB_GETBUF
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$1, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
LBB0_2:
	leaq	L_.str(%rip), %rax
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no events"

	.comm	_LIB_BUFLENGTH,4,2              ## @LIB_BUFLENGTH
L_.str.1:                               ## @.str.1
	.asciz	"%d event%s"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"s"

	.no_dead_strip	_getevents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getevents
_getevents:                             ; @getevents
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_LIB_GETBUF
Lloh0:
	adrp	x8, _LIB_BUFLENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIB_BUFLENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, l_.str.3@PAGE
Lloh4:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #1
	csel	x4, x9, x8, eq
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_snprintf
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no events"

	.comm	_LIB_BUFLENGTH,4,2              ; @LIB_BUFLENGTH
l_.str.1:                               ; @.str.1
	.asciz	"%d event%s"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"s"

	.no_dead_strip	_getevents
.subsections_via_symbols
