	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syscallenter
_syscallenter:                          ## @syscallenter
	.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	%rdi, %r15
	movq	_v_syscall@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VM_CNT_INC
	movq	(%r15), %rax
	movq	32(%r15), %r14
	movq	$0, 40(%r15)
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_thread_cow_update
LBB0_2:
	movq	_P_TRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	8(%r14), %ebx
	jne	LBB0_4
## %bb.3:
	movq	_TDB_USERWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_TDB_USERWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r15), %eax
	movl	%eax, 8(%r15)
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_TDB_SCE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
LBB0_6:
	movq	%r14, %rdi
	callq	_PROC_UNLOCK
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	movq	_KTR_SYSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	48(%r15), %esi
	movq	%r14, %rdi
	callq	_syscallname
	movq	32(%r15), %rcx
	movq	64(%r15), %rdx
	movl	24(%rcx), %r9d
	movl	(%rdx), %r10d
	movl	4(%rdx), %r11d
	movl	8(%rdx), %r13d
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movl	%r12d, %edi
	movl	%eax, %edx
	movq	%r15, %rcx
	pushq	%r13
	leaq	L_.str.4(%rip), %rax
	pushq	%rax
	pushq	%r11
	leaq	L_.str.3(%rip), %rax
	pushq	%rax
	pushq	%r10
	leaq	L_.str.2(%rip), %rax
	pushq	%rax
	callq	_KTR_START4
	addq	$48, %rsp
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movl	%ebx, 12(%r15)
	jmp	LBB0_20
LBB0_9:
	movq	_S_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	72(%r15), %edx
	movq	%r14, %rdi
	callq	_STOPEVENT
	movq	_P_TRACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_PTRACE_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	je	LBB0_12
## %bb.11:
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ptracestop
LBB0_12:
	movq	%r14, %rdi
	callq	_PROC_UNLOCK
LBB0_13:
	movq	_TDB_USERWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_16
## %bb.14:
	movq	16(%r14), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_15
LBB0_16:
	movq	56(%r15), %rsi
	movq	%r15, %rdi
	callq	_syscall_thread_enter
	testl	%eax, %eax
	je	LBB0_17
LBB0_15:
	movl	%eax, %ebx
	movl	%eax, 12(%r15)
	jmp	LBB0_20
LBB0_17:
	movq	_TDP_NERRNO@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, 16(%r15)
	movl	48(%r15), %edi
	movq	%r15, %rsi
	callq	_AUDIT_SYSCALL_ENTER
	movq	56(%r15), %rax
	movq	64(%r15), %rsi
	movq	%r15, %rdi
	callq	*16(%rax)
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_AUDIT_SYSCALL_EXIT
	movl	(%r12), %eax
	testl	%eax, 16(%r15)
	jne	LBB0_19
## %bb.18:
	movl	%ebx, 12(%r15)
LBB0_19:
	movq	56(%r15), %rsi
	movq	%r15, %rdi
	callq	_syscall_thread_exit
LBB0_20:
	movq	_KTR_SYSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	48(%r15), %esi
	movq	%r14, %rdi
	callq	_syscallname
	movq	24(%r15), %rcx
	movq	32(%r15), %rdx
	movl	24(%rdx), %r9d
	movl	(%rcx), %r10d
	movl	4(%rcx), %r11d
	leaq	L_.str.7(%rip), %r13
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movl	%r12d, %edi
	movl	%eax, %edx
	movq	%r15, %rcx
	pushq	%r11
	pushq	%r13
	pushq	%r10
	leaq	L_.str.6(%rip), %rax
	pushq	%rax
	pushq	%rbx
	leaq	L_.str.5(%rip), %rax
	pushq	%rax
	callq	_KTR_STOP4
	addq	$48, %rsp
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	callq	_PROC_LOCK
	movq	_TDB_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_PROC_UNLOCK
LBB0_22:
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_v_syscall,4,2                  ## @v_syscall
	.comm	_P_TRACED,4,2                   ## @P_TRACED
	.comm	_TDB_USERWR,4,2                 ## @TDB_USERWR
	.comm	_TDB_SCE,4,2                    ## @TDB_SCE
	.comm	_KTR_SYSC,4,2                   ## @KTR_SYSC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscall"

L_.str.1:                               ## @.str.1
	.asciz	"pid:%d"

L_.str.2:                               ## @.str.2
	.asciz	"arg0:%p"

L_.str.3:                               ## @.str.3
	.asciz	"arg1:%p"

L_.str.4:                               ## @.str.4
	.asciz	"arg2:%p"

	.comm	_S_SCE,4,2                      ## @S_SCE
	.comm	_PTRACE_SCE,4,2                 ## @PTRACE_SCE
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_TDP_NERRNO,4,2                 ## @TDP_NERRNO
L_.str.5:                               ## @.str.5
	.asciz	"error:%d"

L_.str.6:                               ## @.str.6
	.asciz	"retval0:%#lx"

L_.str.7:                               ## @.str.7
	.asciz	"retval1:%#lx"

	.comm	_ECAPMODE,4,2                   ## @ECAPMODE
	.comm	_KTR_SYSCALL,4,2                ## @KTR_SYSCALL
	.comm	_SYF_CAPENABLED,4,2             ## @SYF_CAPENABLED
	.comm	_SYSTRACE_ENTRY,4,2             ## @SYSTRACE_ENTRY
	.comm	_SYSTRACE_RETURN,4,2            ## @SYSTRACE_RETURN
	.comm	_systrace_enabled,8,3           ## @systrace_enabled
	.no_dead_strip	_syscallenter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syscallenter
_syscallenter:                          ; @syscallenter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _v_syscall@GOTPAGE
Lloh1:
	ldr	x8, [x8, _v_syscall@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_VM_CNT_INC
	ldr	x20, [x19, #32]
	str	xzr, [x19, #40]
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_thread_cow_update
LBB0_2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x27, _P_TRACED@GOTPAGE
Lloh4:
	ldr	x27, [x27, _P_TRACED@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh5:
	adrp	x23, _TDB_SCE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TDB_SCE@GOTPAGEOFF]
Lloh7:
	adrp	x26, _TDB_USERWR@GOTPAGE
Lloh8:
	ldr	x26, [x26, _TDB_USERWR@GOTPAGEOFF]
	ands	w24, w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_PROC_LOCK
	ldr	w8, [x26]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	cbz	w24, LBB0_6
; %bb.5:
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_6:
	mov	x0, x20
	bl	_PROC_UNLOCK
LBB0_7:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
Lloh9:
	adrp	x25, _KTR_SYSC@GOTPAGE
Lloh10:
	ldr	x25, [x25, _KTR_SYSC@GOTPAGEOFF]
	ldr	w22, [x25]
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_syscallname
	mov	x2, x0
	ldr	x8, [x19, #32]
	ldr	w5, [x8, #24]
	ldr	x8, [x19, #64]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #24]
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp, #16]
	str	w9, [sp, #8]
Lloh13:
	adrp	x8, l_.str.3@PAGE
Lloh14:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
Lloh19:
	adrp	x6, l_.str.2@PAGE
Lloh20:
	add	x6, x6, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_KTR_START4
	cbz	w21, LBB0_9
; %bb.8:
	str	w21, [x19, #12]
	b	LBB0_20
LBB0_9:
Lloh21:
	adrp	x8, _S_SCE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_SCE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w2, [x19, #72]
	mov	x0, x20
	bl	_STOPEVENT
	ldr	w8, [x20, #8]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_PROC_LOCK
	ldr	w8, [x20, #12]
Lloh24:
	adrp	x9, _PTRACE_SCE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PTRACE_SCE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh27:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ptracestop
LBB0_12:
	mov	x0, x20
	bl	_PROC_UNLOCK
LBB0_13:
	ldr	w8, [x19, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_16
LBB0_15:
	ldr	x1, [x19, #56]
	mov	x0, x19
	bl	_syscall_thread_enter
	cbz	w0, LBB0_17
LBB0_16:
	mov	x21, x0
	str	w0, [x19, #12]
	b	LBB0_20
LBB0_17:
Lloh30:
	adrp	x22, _TDP_NERRNO@GOTPAGE
Lloh31:
	ldr	x22, [x22, _TDP_NERRNO@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w0, [x19, #48]
	mov	x1, x19
	bl	_AUDIT_SYSCALL_ENTER
	ldp	x8, x1, [x19, #56]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x1, x19
	bl	_AUDIT_SYSCALL_EXIT
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.18:
	str	w21, [x19, #12]
LBB0_19:
	ldr	x1, [x19, #56]
	mov	x0, x19
	bl	_syscall_thread_exit
LBB0_20:
	ldr	w22, [x25]
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_syscallname
	mov	x2, x0
	ldp	x9, x8, [x19, #24]
	ldr	w5, [x8, #24]
	ldp	w8, w9, [x9]
	str	w9, [sp, #24]
Lloh32:
	adrp	x9, l_.str.7@PAGE
Lloh33:
	add	x9, x9, l_.str.7@PAGEOFF
	str	x9, [sp, #16]
	str	w8, [sp, #8]
Lloh34:
	adrp	x8, l_.str.6@PAGE
Lloh35:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
Lloh38:
	adrp	x4, l_.str.1@PAGE
Lloh39:
	add	x4, x4, l_.str.1@PAGEOFF
Lloh40:
	adrp	x6, l_.str.5@PAGE
Lloh41:
	add	x6, x6, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	mov	x7, x21
	bl	_KTR_STOP4
	cbz	w24, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_PROC_LOCK
	ldr	w8, [x23]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_PROC_UNLOCK
LBB0_22:
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_v_syscall,4,2                  ; @v_syscall
	.comm	_P_TRACED,4,2                   ; @P_TRACED
	.comm	_TDB_USERWR,4,2                 ; @TDB_USERWR
	.comm	_TDB_SCE,4,2                    ; @TDB_SCE
	.comm	_KTR_SYSC,4,2                   ; @KTR_SYSC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscall"

l_.str.1:                               ; @.str.1
	.asciz	"pid:%d"

l_.str.2:                               ; @.str.2
	.asciz	"arg0:%p"

l_.str.3:                               ; @.str.3
	.asciz	"arg1:%p"

l_.str.4:                               ; @.str.4
	.asciz	"arg2:%p"

	.comm	_S_SCE,4,2                      ; @S_SCE
	.comm	_PTRACE_SCE,4,2                 ; @PTRACE_SCE
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_TDP_NERRNO,4,2                 ; @TDP_NERRNO
l_.str.5:                               ; @.str.5
	.asciz	"error:%d"

l_.str.6:                               ; @.str.6
	.asciz	"retval0:%#lx"

l_.str.7:                               ; @.str.7
	.asciz	"retval1:%#lx"

	.comm	_ECAPMODE,4,2                   ; @ECAPMODE
	.comm	_KTR_SYSCALL,4,2                ; @KTR_SYSCALL
	.comm	_SYF_CAPENABLED,4,2             ; @SYF_CAPENABLED
	.comm	_SYSTRACE_ENTRY,4,2             ; @SYSTRACE_ENTRY
	.comm	_SYSTRACE_RETURN,4,2            ; @SYSTRACE_RETURN
	.comm	_systrace_enabled,8,3           ; @systrace_enabled
	.no_dead_strip	_syscallenter
.subsections_via_symbols
