	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_syscall                  ## -- Begin function amd64_syscall
	.p2align	4, 0x90
_amd64_syscall:                         ## @amd64_syscall
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_syscallenter
	movl	%r14d, %edi
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PSL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%rbx), %rcx
	andl	%eax, 8(%rcx)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_ksiginfo_init_trap
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_TRAP_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_trapsignal
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_PCB_USER_FPU
	movl	%eax, %r14d
	movl	28(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_syscallname
	movslq	%eax, %rsi
	movl	%r14d, %edi
	callq	_KASSERT
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_get_pcb_user_save_td
	xorl	%r14d, %r14d
	cmpq	%rax, %r15
	sete	%r14b
	movl	28(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_syscallname
	movslq	%eax, %rsi
	movl	%r14d, %edi
	callq	_KASSERT
	xorl	%eax, %eax
	callq	_pmap_not_in_di
	movl	%eax, %r14d
	movl	28(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_syscallname
	movslq	24(%rbx), %rsi
	movl	%r14d, %edi
	callq	_KASSERT
	movq	%rbx, %rdi
	callq	_syscallret
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rdi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
LBB0_4:
	movl	(%rbx), %edi
	callq	_amd64_syscall_ret_flush_l1d_inline
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSL_T,4,2                      ## @PSL_T
	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_TRAP_TRACE,4,2                 ## @TRAP_TRACE
	.comm	_VM_MAXUSER_ADDRESS,8,3         ## @VM_MAXUSER_ADDRESS
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amd64_syscall                  ; -- Begin function amd64_syscall
	.p2align	2
_amd64_syscall:                         ; @amd64_syscall
	.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	x20, x1
	mov	x19, x0
	bl	_syscallenter
	mov	x0, x20
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PSL_T@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSL_T@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldr	w10, [x9, #8]
	bic	w8, w10, w8
	str	w8, [x9, #8]
	mov	x0, sp
	bl	_ksiginfo_init_trap
Lloh3:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TRAP_TRACE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRAP_TRACE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_trapsignal
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_PCB_USER_FPU
	mov	x20, x0
	ldp	w1, w0, [x19, #28]
	bl	_syscallname
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x20
	bl	_KASSERT
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_get_pcb_user_save_td
	cmp	x20, x0
	cset	w20, eq
	ldp	w1, w0, [x19, #28]
	bl	_syscallname
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	x0, x20
	bl	_KASSERT
	bl	_pmap_not_in_di
	mov	x20, x0
	ldp	w1, w0, [x19, #28]
	bl	_syscallname
	ldrsw	x1, [x19, #24]
	mov	x0, x20
	bl	_KASSERT
	mov	x0, x19
	bl	_syscallret
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	___predict_false
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_set_pcb_flags
LBB0_4:
	ldr	w0, [x19]
	bl	_amd64_syscall_ret_flush_l1d_inline
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PSL_T,4,2                      ; @PSL_T
	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_TRAP_TRACE,4,2                 ; @TRAP_TRACE
	.comm	_VM_MAXUSER_ADDRESS,8,3         ; @VM_MAXUSER_ADDRESS
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
.subsections_via_symbols
