	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_events_record
_kvm_events_record:                     ## @kvm_events_record
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_record_args@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %edi
	addl	$3, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_STRDUP_FAIL_EXIT
	movq	%rax, (%r13,%rbx,8)
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_STRDUP_FAIL_EXIT
	leal	1(%rbx), %r12d
	movl	%ebx, %ecx
	movq	%rax, (%r13,%rcx,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_STRDUP_FAIL_EXIT
	leal	2(%rbx), %edi
	movq	%rax, (%r13,%r12,8)
	cmpl	$2, %r15d
	jb	LBB0_19
## %bb.4:
	movl	%r15d, %r10d
	leaq	-1(%r10), %r9
	movl	$1, %ecx
	cmpq	$4, %r9
	jae	LBB0_5
LBB0_15:
	movl	%r10d, %esi
	subl	%ecx, %esi
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r10, %rdx
	andq	$3, %rsi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rcx,8), %rax
	movl	%edi, %ebx
	movq	%rax, (%r13,%rbx,8)
	incq	%rcx
	incl	%edi
	decq	%rsi
	jne	LBB0_16
LBB0_17:
	cmpq	$3, %rdx
	jb	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rcx,8), %rax
	movl	%edi, %edx
	movq	%rax, (%r13,%rdx,8)
	leal	1(%rdi), %eax
	movq	8(%r14,%rcx,8), %rdx
	movq	%rdx, (%r13,%rax,8)
	leal	2(%rdi), %eax
	movq	16(%r14,%rcx,8), %rdx
	movq	%rdx, (%r13,%rax,8)
	leal	3(%rdi), %eax
	movq	24(%r14,%rcx,8), %rdx
	movq	%rdx, (%r13,%rax,8)
	addq	$4, %rcx
	addl	$4, %edi
	cmpq	%rcx, %r10
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-2(%r10), %rdx
	movl	$-3, %esi
	subl	%ebx, %esi
	cmpl	%edx, %esi
	jb	LBB0_15
## %bb.6:
	shrq	$32, %rdx
	jne	LBB0_15
## %bb.7:
	movq	%r9, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:
	movq	%r8, %rdx
	andq	$-2, %rdx
	addl	$6, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-4(%rbx), %eax
	movups	8(%r14,%rsi,8), %xmm0
	movups	24(%r14,%rsi,8), %xmm1
	movups	%xmm0, (%r13,%rax,8)
	movups	%xmm1, 16(%r13,%rax,8)
	movups	40(%r14,%rsi,8), %xmm0
	movups	56(%r14,%rsi,8), %xmm1
	movl	%ebx, %eax
	movups	%xmm0, (%r13,%rax,8)
	movups	%xmm1, 16(%r13,%rax,8)
	addq	$8, %rsi
	addl	$8, %ebx
	addq	$-2, %rdx
	jne	LBB0_10
## %bb.11:
	testb	$1, %r8b
	je	LBB0_13
LBB0_12:
	leal	(%rdi,%rsi), %eax
	shlq	$3, %rsi
	orq	$8, %rsi
	movups	(%r14,%rsi), %xmm0
	movups	16(%r14,%rsi), %xmm1
	movups	%xmm0, (%r13,%rax,8)
	movups	%xmm1, 16(%r13,%rax,8)
LBB0_13:
	addl	%ecx, %edi
	cmpq	%rcx, %r9
	jne	LBB0_14
LBB0_19:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cmd_record                     ## TAILCALL
LBB0_14:
	orq	$1, %rcx
	jmp	LBB0_15
LBB0_8:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_record_args,8,3                ## @record_args
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-o"

	.no_dead_strip	_kvm_events_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_events_record
_kvm_events_record:                     ; @kvm_events_record
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _record_args@GOTPAGE
Lloh1:
	ldr	x24, [x24, _record_args@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	w8, w21, w0
	add	w0, w8, #3
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_5
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	lsl	x25, x23, #3
	ldr	x0, [x8, x25]
	bl	_STRDUP_FAIL_EXIT
	str	x0, [x19, x25]
	add	x23, x23, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x23, w0, uxtw
	b.lo	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w23, #0
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_STRDUP_FAIL_EXIT
	add	w24, w23, #1
	str	x0, [x19, w23, uxtw #3]
	ldr	x0, [x22]
	bl	_STRDUP_FAIL_EXIT
	mov	x8, x0
	add	w0, w23, #2
	str	x8, [x19, w24, uxtw #3]
	cmp	w21, #2
	b.lo	LBB0_16
; %bb.7:
	mov	w8, w21
	sub	x10, x8, #1
	cmp	x10, #8
	b.hs	LBB0_9
; %bb.8:
	mov	w9, #1
	b	LBB0_14
LBB0_9:
	sub	x11, x8, #2
	mov	w12, #-3
	mov	w9, #1
	sub	w12, w12, w23
	cmp	w12, w11
	b.lo	LBB0_14
; %bb.10:
	lsr	x11, x11, #32
	cbnz	x11, LBB0_14
; %bb.11:
	and	x11, x10, #0xfffffffffffffff8
	orr	x9, x11, #0x1
	add	w0, w0, w11
	add	x12, x20, #40
	add	w13, w23, #2
	mov	x14, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x12, #-32]
	ldp	q2, q3, [x12], #64
	add	x15, x19, w13, uxtw #3
	stp	q0, q1, [x15]
	stp	q2, q3, [x15, #32]
	add	w13, w13, #8
	subs	x14, x14, #8
	b.ne	LBB0_12
; %bb.13:
	cmp	x10, x11
	b.eq	LBB0_16
LBB0_14:
	add	x10, x20, x9, lsl #3
	sub	x8, x8, x9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x10], #8
	str	x9, [x19, w0, uxtw #3]
	add	w0, w0, #1
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	mov	x1, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_cmd_record
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_record_args,8,3                ; @record_args
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-o"

	.no_dead_strip	_kvm_events_record
.subsections_via_symbols
