	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_list_events             ## -- Begin function pevent_list_events
	.p2align	4, 0x90
_pevent_list_events:                    ## @pevent_list_events
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpl	%r15d, (%r14)
	jne	LBB0_5
	jmp	LBB0_8
LBB0_2:
	movl	4(%r14), %eax
	leal	8(,%rax,8), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	4(%r14), %edx
	movl	16(%r14), %esi
	shll	$3, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	4(%r14), %rax
	movq	$0, (%rbx,%rax,8)
	movq	%rbx, 8(%r14)
	movl	$130, %eax
	cmpl	$130, %r15d
	je	LBB0_7
LBB0_5:
	leal	-128(%r15), %eax
	cmpl	$2, %eax
	ja	LBB0_8
## %bb.6:
	cltq
	leaq	l_switch.table.pevent_list_events(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	movslq	4(%r14), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_qsort
	movl	%r15d, %eax
LBB0_7:
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.pevent_list_events
l_switch.table.pevent_list_events:
	.quad	_events_system_cmp
	.quad	_events_name_cmp
	.quad	_events_id_cmp

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pevent_list_events             ; -- Begin function pevent_list_events
	.p2align	2
_pevent_list_events:                    ; @pevent_list_events
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_4
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19, #4]
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w1, [x19, #16]
	ldr	w8, [x19, #4]
	lsl	w2, w8, #3
	mov	x0, x21
	bl	_memcpy
	ldrsw	x8, [x19, #4]
	str	xzr, [x21, x8, lsl #3]
	str	x21, [x19, #8]
	cmp	w20, #130
	b.eq	LBB0_6
LBB0_4:
	sub	w8, w20, #128
	cmp	w8, #2
	b.hi	LBB0_7
; %bb.5:
Lloh0:
	adrp	x9, l_switch.table.pevent_list_events@PAGE
Lloh1:
	add	x9, x9, l_switch.table.pevent_list_events@PAGEOFF
	ldr	x3, [x9, w8, sxtw #3]
	ldrsw	x1, [x19, #4]
	mov	x0, x21
	mov	w2, #8
	bl	_qsort
LBB0_6:
	str	w20, [x19]
LBB0_7:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.pevent_list_events
l_switch.table.pevent_list_events:
	.quad	_events_system_cmp
	.quad	_events_name_cmp
	.quad	_events_id_cmp

.subsections_via_symbols
