	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_LogSyscalls                 ## -- Begin function VM_LogSyscalls
	.p2align	4, 0x90
_VM_LogSyscalls:                        ## @VM_LogSyscalls
	.cfi_startproc
## %bb.0:
	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
	movq	%rdi, %rbx
	movq	_VM_LogSyscalls.f(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %rdi
	movq	%rax, _VM_LogSyscalls.f(%rip)
LBB0_2:
	movl	_VM_LogSyscalls.callnum(%rip), %edx
	incl	%edx
	movl	%edx, _VM_LogSyscalls.callnum(%rip)
	movq	_currentVM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rcx
	subq	(%rax), %rcx
	sarq	$2, %rcx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r10d
	movl	12(%rbx), %eax
	movl	16(%rbx), %ebx
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rsi
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	_fprintf
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_VM_LogSyscalls.callnum,4,2 ## @VM_LogSyscalls.callnum
.zerofill __DATA,__bss,_VM_LogSyscalls.f,8,3 ## @VM_LogSyscalls.f
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscalls.log"

L_.str.1:                               ## @.str.1
	.asciz	"w"

L_.str.2:                               ## @.str.2
	.asciz	"%i: %p (%i) = %i %i %i %i\n"

	.comm	_currentVM,8,3                  ## @currentVM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VM_LogSyscalls                 ; -- Begin function VM_LogSyscalls
	.p2align	2
_VM_LogSyscalls:                        ; @VM_LogSyscalls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	adrp	x20, _VM_LogSyscalls.f@PAGE
	ldr	x0, [x20, _VM_LogSyscalls.f@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	str	x0, [x20, _VM_LogSyscalls.f@PAGEOFF]
LBB0_2:
Lloh4:
	adrp	x8, _VM_LogSyscalls.callnum@PAGE
	ldr	w9, [x8, _VM_LogSyscalls.callnum@PAGEOFF]
	add	w2, w9, #1
	str	w2, [x8, _VM_LogSyscalls.callnum@PAGEOFF]
Lloh5:
	adrp	x8, _currentVM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _currentVM@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	sub	x8, x19, x8
	asr	x3, x8, #2
	ldp	w4, w5, [x19]
	ldp	w6, w7, [x19, #8]
	ldr	w8, [x19, #16]
	str	w8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_VM_LogSyscalls.callnum,4,2 ; @VM_LogSyscalls.callnum
.zerofill __DATA,__bss,_VM_LogSyscalls.f,8,3 ; @VM_LogSyscalls.f
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscalls.log"

l_.str.1:                               ; @.str.1
	.asciz	"w"

l_.str.2:                               ; @.str.2
	.asciz	"%i: %p (%i) = %i %i %i %i\n"

	.comm	_currentVM,8,3                  ; @currentVM
.subsections_via_symbols
