	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trap                           ## -- Begin function trap
	.p2align	4, 0x90
_trap:                                  ## @trap
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_KTR_TRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_trap_msg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_T_KERNEL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %r15
	callq	_TRAPF_USERMODE
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_pil@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdpr
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_CTR4
	movq	_v_trap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VM_CNT_INC
	movq	_TSTATE_PRIV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_3
## %bb.1:
	movq	_T_KERNEL@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%edi, %edi
	andq	(%r13), %rax
	setne	%dil
	leaq	L_.str.8(%rip), %rsi
	callq	_KASSERT
	movq	_kdb_active@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kdb_reenter                    ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	setne	%dil
	leaq	L_.str.4(%rip), %rsi
	callq	_KASSERT
	movq	24(%r14), %rbx
	movq	$0, 16(%r14)
	movq	%r13, 8(%r14)
	movq	(%r13), %rsi
	movq	16(%r13), %r12
	movl	%esi, -48(%rbp)
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_thread_cow_update
	movq	(%r13), %rsi
LBB0_5:
	leaq	-129(%rsi), %rax
	cmpq	$12, %rax
	ja	LBB0_21
## %bb.6:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	24(%r13), %r12
LBB0_8:
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_trap_pfault
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	$0, -44(%rbp)
	jmp	LBB0_48
LBB0_10:
	movq	%r13, %rax
	movq	(%r13), %rdi
	movq	(%r15), %rax
	notq	%rax
	andq	%rdi, %rax
	addq	$-131, %rax
	cmpq	$10, %rax
	movq	_KTR_TRAP@GOTPCREL(%rip), %r12
	ja	LBB0_32
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_trap_pfault
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	testl	%ebx, %ebx
	jne	LBB0_32
	jmp	LBB0_49
LBB0_13:
	movl	-44(%rbp), %eax
	jmp	LBB0_40
LBB0_14:
	movl	32(%r13), %edi
	movq	_MMU_SFSR_FV@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_32
## %bb.15:
	callq	_MMU_SFSR_GET_ASI
	movq	_ASI_AIUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_32
## %bb.16:
	movq	16(%r13), %rax
	movq	_copy_nofault_begin@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_50
## %bb.17:
	movq	_copy_nofault_end@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_50
## %bb.18:
	movq	_copy_fault@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_19:
	xorl	%esi, %esi
	movq	%r13, %r15
	movq	%r13, %rdx
	callq	_kdb_trap
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	%r13, %rdi
	movq	_T_KERNEL@GOTPCREL(%rip), %r15
	callq	_TF_DONE
	testl	%ebx, %ebx
	jne	LBB0_32
	jmp	LBB0_49
LBB0_20:
	movq	%r14, %rdi
	callq	_rwindow_save
	jmp	LBB0_39
LBB0_21:
	movq	_T_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jbe	LBB0_35
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_37
LBB0_23:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	jmp	LBB0_25
LBB0_24:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
LBB0_25:
	callq	_rwindow_load
	jmp	LBB0_39
LBB0_26:
	xorl	%eax, %eax
	callq	_trap_cecc
	jmp	LBB0_39
LBB0_27:
	movq	_SIGTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_TRAP_BRKPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	jmp	LBB0_40
LBB0_28:
	movq	16(%r13), %rax
	movq	_fas_nofault_begin@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_32
## %bb.29:
	movq	_fas_nofault_end@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_32
## %bb.30:
	xorl	%eax, %eax
	callq	_cache_flush
	movq	_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	%eax, %edi
	callq	_cache_enable
	movq	_fas_fault@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_31:
	xorl	%eax, %eax
	callq	_trap_cecc
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_49
LBB0_32:
	movq	(%r15), %rsi
	notq	%rsi
	andq	(%r13), %rsi
	movq	%rsi, (%r13)
	movq	_T_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jbe	LBB0_34
## %bb.33:
	leaq	L_.str.9(%rip), %rdi
	callq	_panic
	movq	(%r13), %rsi
LBB0_34:
	movq	_trap_msg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rsi
	leaq	L_.str.10(%rip), %rdi
	callq	_panic
	jmp	LBB0_49
LBB0_35:
	movq	_trap_sig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$-1, (%rax,%rsi,4)
	jne	LBB0_38
## %bb.36:
	movq	_trap_msg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rsi
	leaq	L_.str.6(%rip), %rdi
LBB0_37:
	callq	_panic
LBB0_38:
	movq	_trap_sig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_39:
	movl	%eax, -44(%rbp)
LBB0_40:
	testl	%eax, %eax
	je	LBB0_48
## %bb.41:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_43
## %bb.42:
	movq	(%r13), %rsi
	movl	%eax, %edi
	callq	*%rcx
	movl	%eax, -44(%rbp)
LBB0_43:
	movq	_debugger_on_signal@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_47
## %bb.44:
	cmpl	$11, %eax
	ja	LBB0_47
## %bb.45:
	movl	$3088, %ecx                     ## imm = 0xC10
	btl	%eax, %ecx
	jae	LBB0_47
## %bb.46:
	movq	_KDB_WHY_TRAPSIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_kdb_enter
LBB0_47:
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ksiginfo_init_trap
	movl	-44(%rbp), %eax
	movl	%eax, -72(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -68(%rbp)
	movq	%r12, -56(%rbp)
	movl	(%r13), %eax
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trapsignal
LBB0_48:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_userret
	movq	_KTR_TRAP@GOTPCREL(%rip), %r12
LBB0_49:
	movl	(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdx
	callq	_CTR1
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	movq	_fs_nofault_begin@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_32
## %bb.51:
	movq	_fs_nofault_end@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_32
## %bb.52:
	movq	_fs_fault@GOTPCREL(%rip), %rax
LBB0_53:
	movslq	(%rax), %rax
	movq	%rax, 16(%r13)
	addl	$4, %eax
	movl	%eax, 36(%r13)
	jmp	LBB0_49
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_32
	.long	L0_0_set_32
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_28
	.long	L0_0_set_31
	.long	L0_0_set_19
.set L0_1_set_20, LBB0_20-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_23, LBB0_23-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
.set L0_1_set_7, LBB0_7-LJTI0_1
.set L0_1_set_26, LBB0_26-LJTI0_1
.set L0_1_set_27, LBB0_27-LJTI0_1
LJTI0_1:
	.long	L0_1_set_20
	.long	L0_1_set_21
	.long	L0_1_set_21
	.long	L0_1_set_21
	.long	L0_1_set_8
	.long	L0_1_set_23
	.long	L0_1_set_24
	.long	L0_1_set_7
	.long	L0_1_set_7
	.long	L0_1_set_21
	.long	L0_1_set_21
	.long	L0_1_set_26
	.long	L0_1_set_27
	.end_data_region
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_KTR_TRAP,4,2                   ## @KTR_TRAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trap: %p type=%s (%s) pil=%#lx"

	.comm	_trap_msg,8,3                   ## @trap_msg
	.comm	_T_KERNEL,8,3                   ## @T_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"user"

L_.str.2:                               ## @.str.2
	.asciz	"kernel"

	.comm	_pil,4,2                        ## @pil
	.comm	_v_trap,4,2                     ## @v_trap
	.comm	_TSTATE_PRIV,4,2                ## @TSTATE_PRIV
L_.str.3:                               ## @.str.3
	.asciz	"trap: curthread NULL"

L_.str.4:                               ## @.str.4
	.asciz	"trap: curproc NULL"

	.comm	_SIGTRAP,4,2                    ## @SIGTRAP
	.comm	_TRAP_BRKPT,4,2                 ## @TRAP_BRKPT
	.comm	_T_MAX,8,3                      ## @T_MAX
L_.str.5:                               ## @.str.5
	.asciz	"trap: bad trap type %#lx (user)"

	.comm	_trap_sig,8,3                   ## @trap_sig
L_.str.6:                               ## @.str.6
	.asciz	"trap: %s (user)"

	.comm	_debugger_on_signal,8,3         ## @debugger_on_signal
	.comm	_KDB_WHY_TRAPSIG,4,2            ## @KDB_WHY_TRAPSIG
L_.str.7:                               ## @.str.7
	.asciz	"trapsig"

L_.str.8:                               ## @.str.8
	.asciz	"trap: kernel trap isn't"

	.comm	_kdb_active,8,3                 ## @kdb_active
	.comm	_MMU_SFSR_FV,4,2                ## @MMU_SFSR_FV
	.comm	_ASI_AIUP,4,2                   ## @ASI_AIUP
	.comm	_copy_nofault_begin,4,2         ## @copy_nofault_begin
	.comm	_copy_nofault_end,4,2           ## @copy_nofault_end
	.comm	_copy_fault,4,2                 ## @copy_fault
	.comm	_fs_nofault_begin,4,2           ## @fs_nofault_begin
	.comm	_fs_nofault_end,4,2             ## @fs_nofault_end
	.comm	_fs_fault,4,2                   ## @fs_fault
	.comm	_fas_nofault_begin,4,2          ## @fas_nofault_begin
	.comm	_fas_nofault_end,4,2            ## @fas_nofault_end
	.comm	_impl,4,2                       ## @impl
	.comm	_fas_fault,4,2                  ## @fas_fault
L_.str.9:                               ## @.str.9
	.asciz	"trap: bad trap type %#lx (kernel)"

L_.str.10:                              ## @.str.10
	.asciz	"trap: %s (kernel)"

L_.str.11:                              ## @.str.11
	.asciz	"trap: td=%p return"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_trap                           ; -- Begin function trap
	.p2align	2
_trap:                                  ; @trap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	adrp	x24, _KTR_TRAP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _KTR_TRAP@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	ldr	w21, [x24]
Lloh5:
	adrp	x25, _trap_msg@GOTPAGE
Lloh6:
	ldr	x25, [x25, _trap_msg@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x9, [x0]
Lloh7:
	adrp	x26, _T_KERNEL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _T_KERNEL@GOTPAGEOFF]
	ldr	x10, [x26]
	bic	x9, x9, x10
	ldr	x22, [x8, x9, lsl #3]
	bl	_TRAPF_USERMODE
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x23, x9, x8, eq
Lloh13:
	adrp	x8, _pil@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pil@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_rdpr
	mov	x5, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	bl	_CTR4
Lloh18:
	adrp	x8, _v_trap@GOTPAGE
Lloh19:
	ldr	x8, [x8, _v_trap@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_VM_CNT_INC
	ldr	w8, [x20, #8]
Lloh21:
	adrp	x9, _TSTATE_PRIV@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TSTATE_PRIV@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x26]
	tst	x9, x8
	cset	w0, ne
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_KASSERT
Lloh26:
	adrp	x8, _kdb_active@GOTPAGE
Lloh27:
	ldr	x8, [x8, _kdb_active@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kdb_reenter
LBB0_3:
	cmp	x19, #0
	cset	w0, ne
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, ne
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_KASSERT
	ldr	x22, [x19, #24]
	stp	x20, xzr, [x19, #8]
	ldr	x21, [x20, #16]
	ldr	x1, [x20]
	str	w1, [sp, #24]
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_thread_cow_update
	ldr	x1, [x20]
LBB0_5:
	sub	x8, x1, #129
	cmp	x8, #12
	b.hi	LBB0_21
; %bb.6:
Lloh33:
	adrp	x9, lJTI0_1@PAGE
Lloh34:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x21, [x20, #24]
LBB0_8:
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_trap_pfault
	cbz	w0, LBB0_13
; %bb.9:
	str	wzr, [sp, #28]
	b	LBB0_48
LBB0_10:
	ldr	x0, [x20]
	ldr	x8, [x26]
	bic	x8, x0, x8
	sub	x8, x8, #131
	cmp	x8, #10
	b.hi	LBB0_32
; %bb.11:
Lloh35:
	adrp	x9, lJTI0_0@PAGE
Lloh36:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x20
	bl	_trap_pfault
	cmp	w0, #0
	cset	w21, eq
	cbnz	w21, LBB0_32
	b	LBB0_49
LBB0_13:
	ldr	w0, [sp, #28]
	b	LBB0_40
LBB0_14:
	ldr	w0, [x20, #32]
Lloh37:
	adrp	x8, _MMU_SFSR_FV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MMU_SFSR_FV@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_32
; %bb.15:
	bl	_MMU_SFSR_GET_ASI
Lloh40:
	adrp	x8, _ASI_AIUP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ASI_AIUP@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_32
; %bb.16:
	ldr	x8, [x20, #16]
Lloh43:
	adrp	x9, _copy_nofault_begin@GOTPAGE
Lloh44:
	ldr	x9, [x9, _copy_nofault_begin@GOTPAGEOFF]
Lloh45:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_50
; %bb.17:
Lloh46:
	adrp	x9, _copy_nofault_end@GOTPAGE
Lloh47:
	ldr	x9, [x9, _copy_nofault_end@GOTPAGEOFF]
Lloh48:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_50
; %bb.18:
Lloh49:
	adrp	x8, _copy_fault@GOTPAGE
Lloh50:
	ldr	x8, [x8, _copy_fault@GOTPAGEOFF]
	b	LBB0_53
LBB0_19:
	mov	w1, #0
	mov	x2, x20
	bl	_kdb_trap
	cmp	w0, #0
	cset	w21, eq
	mov	x0, x20
	bl	_TF_DONE
	cbnz	w21, LBB0_32
	b	LBB0_49
LBB0_20:
	mov	x0, x19
	bl	_rwindow_save
	b	LBB0_39
LBB0_21:
Lloh51:
	adrp	x8, _T_MAX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _T_MAX@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x23, _trap_sig@GOTPAGE
Lloh55:
	ldr	x23, [x23, _trap_sig@GOTPAGEOFF]
	cmp	x1, x8
	b.ls	LBB0_35
; %bb.22:
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_37
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	b	LBB0_25
LBB0_24:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
LBB0_25:
	bl	_rwindow_load
	b	LBB0_39
LBB0_26:
	bl	_trap_cecc
	b	LBB0_39
LBB0_27:
Lloh58:
	adrp	x8, _SIGTRAP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SIGTRAP@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	str	w0, [sp, #28]
Lloh61:
	adrp	x8, _TRAP_BRKPT@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TRAP_BRKPT@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	b	LBB0_40
LBB0_28:
	ldr	x8, [x20, #16]
Lloh64:
	adrp	x9, _fas_nofault_begin@GOTPAGE
Lloh65:
	ldr	x9, [x9, _fas_nofault_begin@GOTPAGEOFF]
Lloh66:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_32
; %bb.29:
Lloh67:
	adrp	x9, _fas_nofault_end@GOTPAGE
Lloh68:
	ldr	x9, [x9, _fas_nofault_end@GOTPAGEOFF]
Lloh69:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_32
; %bb.30:
	bl	_cache_flush
Lloh70:
	adrp	x8, _impl@GOTPAGE
Lloh71:
	ldr	x8, [x8, _impl@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	bl	_PCPU_GET
	bl	_cache_enable
Lloh73:
	adrp	x8, _fas_fault@GOTPAGE
Lloh74:
	ldr	x8, [x8, _fas_fault@GOTPAGEOFF]
	b	LBB0_53
LBB0_31:
	bl	_trap_cecc
	mov	x21, x0
	cbz	w21, LBB0_49
LBB0_32:
	ldr	x8, [x26]
	ldr	x9, [x20]
	bic	x1, x9, x8
	str	x1, [x20]
Lloh75:
	adrp	x8, _T_MAX@GOTPAGE
Lloh76:
	ldr	x8, [x8, _T_MAX@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ls	LBB0_34
; %bb.33:
Lloh78:
	adrp	x0, l_.str.9@PAGE
Lloh79:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_panic
	ldr	x1, [x20]
LBB0_34:
	ldr	x8, [x25]
	ldr	x1, [x8, x1, lsl #3]
Lloh80:
	adrp	x0, l_.str.10@PAGE
Lloh81:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_panic
	b	LBB0_49
LBB0_35:
	ldr	x8, [x23]
	ldr	w8, [x8, x1, lsl #2]
	cmn	w8, #1
	b.ne	LBB0_38
; %bb.36:
	ldr	x8, [x25]
	ldr	x1, [x8, x1, lsl #3]
Lloh82:
	adrp	x0, l_.str.6@PAGE
Lloh83:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_37:
	bl	_panic
LBB0_38:
	ldr	x8, [x23]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
LBB0_39:
	str	w0, [sp, #28]
LBB0_40:
	cbz	w0, LBB0_48
; %bb.41:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_43
; %bb.42:
	ldr	x1, [x20]
	blr	x8
	str	w0, [sp, #28]
LBB0_43:
Lloh84:
	adrp	x8, _debugger_on_signal@GOTPAGE
Lloh85:
	ldr	x8, [x8, _debugger_on_signal@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	cbz	x8, LBB0_47
; %bb.44:
	cmp	w0, #11
	b.hi	LBB0_47
; %bb.45:
	mov	w8, #1
	lsl	w8, w8, w0
	mov	w9, #3088
	tst	w8, w9
	b.eq	LBB0_47
; %bb.46:
Lloh87:
	adrp	x8, _KDB_WHY_TRAPSIG@GOTPAGE
Lloh88:
	ldr	x8, [x8, _KDB_WHY_TRAPSIG@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
Lloh90:
	adrp	x1, l_.str.7@PAGE
Lloh91:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_kdb_enter
LBB0_47:
	mov	x0, sp
	bl	_ksiginfo_init_trap
	ldp	w9, w8, [sp, #24]
	stp	w8, w9, [sp]
	str	x21, [sp, #16]
	ldr	x8, [x20]
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	_trapsignal
LBB0_48:
	mov	x0, x19
	mov	x1, x20
	bl	_userret
LBB0_49:
	ldr	w0, [x24]
Lloh92:
	adrp	x1, l_.str.11@PAGE
Lloh93:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x19
	bl	_CTR1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_50:
Lloh94:
	adrp	x9, _fs_nofault_begin@GOTPAGE
Lloh95:
	ldr	x9, [x9, _fs_nofault_begin@GOTPAGEOFF]
Lloh96:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_32
; %bb.51:
Lloh97:
	adrp	x9, _fs_nofault_end@GOTPAGE
Lloh98:
	ldr	x9, [x9, _fs_nofault_end@GOTPAGEOFF]
Lloh99:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_32
; %bb.52:
Lloh100:
	adrp	x8, _fs_fault@GOTPAGE
Lloh101:
	ldr	x8, [x8, _fs_fault@GOTPAGEOFF]
LBB0_53:
	ldrsw	x8, [x8]
	str	x8, [x20, #16]
	add	w8, w8, #4
	str	w8, [x20, #36]
	b	LBB0_49
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh100, Lloh101
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_32-LBB0_12)>>2
	.byte	(LBB0_32-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_28-LBB0_12)>>2
	.byte	(LBB0_31-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
lJTI0_1:
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_23-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_27-LBB0_7)>>2
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_KTR_TRAP,4,2                   ; @KTR_TRAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trap: %p type=%s (%s) pil=%#lx"

	.comm	_trap_msg,8,3                   ; @trap_msg
	.comm	_T_KERNEL,8,3                   ; @T_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"user"

l_.str.2:                               ; @.str.2
	.asciz	"kernel"

	.comm	_pil,4,2                        ; @pil
	.comm	_v_trap,4,2                     ; @v_trap
	.comm	_TSTATE_PRIV,4,2                ; @TSTATE_PRIV
l_.str.3:                               ; @.str.3
	.asciz	"trap: curthread NULL"

l_.str.4:                               ; @.str.4
	.asciz	"trap: curproc NULL"

	.comm	_SIGTRAP,4,2                    ; @SIGTRAP
	.comm	_TRAP_BRKPT,4,2                 ; @TRAP_BRKPT
	.comm	_T_MAX,8,3                      ; @T_MAX
l_.str.5:                               ; @.str.5
	.asciz	"trap: bad trap type %#lx (user)"

	.comm	_trap_sig,8,3                   ; @trap_sig
l_.str.6:                               ; @.str.6
	.asciz	"trap: %s (user)"

	.comm	_debugger_on_signal,8,3         ; @debugger_on_signal
	.comm	_KDB_WHY_TRAPSIG,4,2            ; @KDB_WHY_TRAPSIG
l_.str.7:                               ; @.str.7
	.asciz	"trapsig"

l_.str.8:                               ; @.str.8
	.asciz	"trap: kernel trap isn't"

	.comm	_kdb_active,8,3                 ; @kdb_active
	.comm	_MMU_SFSR_FV,4,2                ; @MMU_SFSR_FV
	.comm	_ASI_AIUP,4,2                   ; @ASI_AIUP
	.comm	_copy_nofault_begin,4,2         ; @copy_nofault_begin
	.comm	_copy_nofault_end,4,2           ; @copy_nofault_end
	.comm	_copy_fault,4,2                 ; @copy_fault
	.comm	_fs_nofault_begin,4,2           ; @fs_nofault_begin
	.comm	_fs_nofault_end,4,2             ; @fs_nofault_end
	.comm	_fs_fault,4,2                   ; @fs_fault
	.comm	_fas_nofault_begin,4,2          ; @fas_nofault_begin
	.comm	_fas_nofault_end,4,2            ; @fas_nofault_end
	.comm	_impl,4,2                       ; @impl
	.comm	_fas_fault,4,2                  ; @fas_fault
l_.str.9:                               ; @.str.9
	.asciz	"trap: bad trap type %#lx (kernel)"

l_.str.10:                              ; @.str.10
	.asciz	"trap: %s (kernel)"

l_.str.11:                              ; @.str.11
	.asciz	"trap: td=%p return"

.subsections_via_symbols
