	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_sgx_interrupt
_psb_sgx_interrupt:                     ## @psb_sgx_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	__PSB_CE_TWOD_COMPLETE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PSB_CR_2D_BLIT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSB_RSGX32
LBB0_2:
	movq	__PSB_CE2_BIF_REQUESTER_FAULT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.3:
	movq	_PSB_CR_BIF_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSB_RSGX32
	movl	%eax, %ebx
	movq	_PSB_CR_BIF_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSB_RSGX32
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.4:
	movl	%eax, %r15d
	movq	__PSB_CBI_STAT_PF_N_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	__PSB_CBI_STAT_FAULT_CACHE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_6:
	movq	__PSB_CBI_STAT_FAULT_TA@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_8:
	movq	__PSB_CBI_STAT_FAULT_VDM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_10:
	movq	__PSB_CBI_STAT_FAULT_2D@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_12:
	movq	__PSB_CBI_STAT_FAULT_PBE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_14:
	movq	__PSB_CBI_STAT_FAULT_TSP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_16:
	movq	__PSB_CBI_STAT_FAULT_ISP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_18:
	movq	__PSB_CBI_STAT_FAULT_USSEPDS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.19:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_20:
	movq	__PSB_CBI_STAT_FAULT_HOST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_22
## %bb.21:
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_22:
	leaq	L_.str.11(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_23:
	movq	_PSB_CR_EVENT_HOST_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_PSB_WSGX32
	movq	_PSB_CR_EVENT_HOST_CLEAR2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_PSB_WSGX32
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PSB_RSGX32                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__PSB_CE_TWOD_COMPLETE,4,2      ## @_PSB_CE_TWOD_COMPLETE
	.comm	_PSB_CR_2D_BLIT_STATUS,4,2      ## @PSB_CR_2D_BLIT_STATUS
	.comm	__PSB_CE2_BIF_REQUESTER_FAULT,4,2 ## @_PSB_CE2_BIF_REQUESTER_FAULT
	.comm	_PSB_CR_BIF_INT_STAT,4,2        ## @PSB_CR_BIF_INT_STAT
	.comm	_PSB_CR_BIF_FAULT,4,2           ## @PSB_CR_BIF_FAULT
	.comm	__PSB_CBI_STAT_PF_N_RW,4,2      ## @_PSB_CBI_STAT_PF_N_RW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SGX MMU page fault:"

L_.str.1:                               ## @.str.1
	.asciz	"SGX MMU read / write protection fault:"

	.comm	__PSB_CBI_STAT_FAULT_CACHE,4,2  ## @_PSB_CBI_STAT_FAULT_CACHE
L_.str.2:                               ## @.str.2
	.asciz	"\tCache requestor"

	.comm	__PSB_CBI_STAT_FAULT_TA,4,2     ## @_PSB_CBI_STAT_FAULT_TA
L_.str.3:                               ## @.str.3
	.asciz	"\tTA requestor"

	.comm	__PSB_CBI_STAT_FAULT_VDM,4,2    ## @_PSB_CBI_STAT_FAULT_VDM
L_.str.4:                               ## @.str.4
	.asciz	"\tVDM requestor"

	.comm	__PSB_CBI_STAT_FAULT_2D,4,2     ## @_PSB_CBI_STAT_FAULT_2D
L_.str.5:                               ## @.str.5
	.asciz	"\t2D requestor"

	.comm	__PSB_CBI_STAT_FAULT_PBE,4,2    ## @_PSB_CBI_STAT_FAULT_PBE
L_.str.6:                               ## @.str.6
	.asciz	"\tPBE requestor"

	.comm	__PSB_CBI_STAT_FAULT_TSP,4,2    ## @_PSB_CBI_STAT_FAULT_TSP
L_.str.7:                               ## @.str.7
	.asciz	"\tTSP requestor"

	.comm	__PSB_CBI_STAT_FAULT_ISP,4,2    ## @_PSB_CBI_STAT_FAULT_ISP
L_.str.8:                               ## @.str.8
	.asciz	"\tISP requestor"

	.comm	__PSB_CBI_STAT_FAULT_USSEPDS,4,2 ## @_PSB_CBI_STAT_FAULT_USSEPDS
L_.str.9:                               ## @.str.9
	.asciz	"\tUSSEPDS requestor"

	.comm	__PSB_CBI_STAT_FAULT_HOST,4,2   ## @_PSB_CBI_STAT_FAULT_HOST
L_.str.10:                              ## @.str.10
	.asciz	"\tHost requestor"

L_.str.11:                              ## @.str.11
	.asciz	"\tMMU failing address is 0x%08x.\n"

	.comm	_PSB_CR_EVENT_HOST_CLEAR,4,2    ## @PSB_CR_EVENT_HOST_CLEAR
	.comm	_PSB_CR_EVENT_HOST_CLEAR2,4,2   ## @PSB_CR_EVENT_HOST_CLEAR2
	.no_dead_strip	_psb_sgx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_sgx_interrupt
_psb_sgx_interrupt:                     ; @psb_sgx_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, __PSB_CE_TWOD_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PSB_CE_TWOD_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PSB_CR_2D_BLIT_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSB_CR_2D_BLIT_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PSB_RSGX32
LBB0_2:
Lloh6:
	adrp	x8, __PSB_CE2_BIF_REQUESTER_FAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, __PSB_CE2_BIF_REQUESTER_FAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_23
; %bb.3:
Lloh9:
	adrp	x8, _PSB_CR_BIF_INT_STAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PSB_CR_BIF_INT_STAT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_PSB_RSGX32
	mov	x22, x0
Lloh12:
	adrp	x8, _PSB_CR_BIF_FAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSB_CR_BIF_FAULT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_PSB_RSGX32
	cbz	w22, LBB0_23
; %bb.4:
	mov	x21, x0
Lloh15:
	adrp	x8, __PSB_CBI_STAT_PF_N_RW@GOTPAGE
Lloh16:
	ldr	x8, [x8, __PSB_CBI_STAT_PF_N_RW@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, l_.str@PAGE
Lloh19:
	add	x9, x9, l_.str@PAGEOFF
Lloh20:
	adrp	x10, l_.str.1@PAGE
Lloh21:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w22
	csel	x0, x10, x9, eq
	bl	_DRM_ERROR
Lloh22:
	adrp	x8, __PSB_CBI_STAT_FAULT_CACHE@GOTPAGE
Lloh23:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_CACHE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
Lloh27:
	adrp	x8, __PSB_CBI_STAT_FAULT_TA@GOTPAGE
Lloh28:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_TA@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
LBB0_8:
Lloh32:
	adrp	x8, __PSB_CBI_STAT_FAULT_VDM@GOTPAGE
Lloh33:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_VDM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_ERROR
LBB0_10:
Lloh37:
	adrp	x8, __PSB_CBI_STAT_FAULT_2D@GOTPAGE
Lloh38:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_2D@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
LBB0_12:
Lloh42:
	adrp	x8, __PSB_CBI_STAT_FAULT_PBE@GOTPAGE
Lloh43:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_PBE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
LBB0_14:
Lloh47:
	adrp	x8, __PSB_CBI_STAT_FAULT_TSP@GOTPAGE
Lloh48:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_TSP@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.15:
Lloh50:
	adrp	x0, l_.str.7@PAGE
Lloh51:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_ERROR
LBB0_16:
Lloh52:
	adrp	x8, __PSB_CBI_STAT_FAULT_ISP@GOTPAGE
Lloh53:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_ISP@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:
Lloh55:
	adrp	x0, l_.str.8@PAGE
Lloh56:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_ERROR
LBB0_18:
Lloh57:
	adrp	x8, __PSB_CBI_STAT_FAULT_USSEPDS@GOTPAGE
Lloh58:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_USSEPDS@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_20
; %bb.19:
Lloh60:
	adrp	x0, l_.str.9@PAGE
Lloh61:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DRM_ERROR
LBB0_20:
Lloh62:
	adrp	x8, __PSB_CBI_STAT_FAULT_HOST@GOTPAGE
Lloh63:
	ldr	x8, [x8, __PSB_CBI_STAT_FAULT_HOST@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_22
; %bb.21:
Lloh65:
	adrp	x0, l_.str.10@PAGE
Lloh66:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_ERROR
LBB0_22:
	str	x21, [sp]
Lloh67:
	adrp	x0, l_.str.11@PAGE
Lloh68:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_ERROR
LBB0_23:
Lloh69:
	adrp	x8, _PSB_CR_EVENT_HOST_CLEAR@GOTPAGE
Lloh70:
	ldr	x8, [x8, _PSB_CR_EVENT_HOST_CLEAR@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_PSB_WSGX32
Lloh72:
	adrp	x20, _PSB_CR_EVENT_HOST_CLEAR2@GOTPAGE
Lloh73:
	ldr	x20, [x20, _PSB_CR_EVENT_HOST_CLEAR2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_PSB_WSGX32
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PSB_RSGX32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	__PSB_CE_TWOD_COMPLETE,4,2      ; @_PSB_CE_TWOD_COMPLETE
	.comm	_PSB_CR_2D_BLIT_STATUS,4,2      ; @PSB_CR_2D_BLIT_STATUS
	.comm	__PSB_CE2_BIF_REQUESTER_FAULT,4,2 ; @_PSB_CE2_BIF_REQUESTER_FAULT
	.comm	_PSB_CR_BIF_INT_STAT,4,2        ; @PSB_CR_BIF_INT_STAT
	.comm	_PSB_CR_BIF_FAULT,4,2           ; @PSB_CR_BIF_FAULT
	.comm	__PSB_CBI_STAT_PF_N_RW,4,2      ; @_PSB_CBI_STAT_PF_N_RW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SGX MMU page fault:"

l_.str.1:                               ; @.str.1
	.asciz	"SGX MMU read / write protection fault:"

	.comm	__PSB_CBI_STAT_FAULT_CACHE,4,2  ; @_PSB_CBI_STAT_FAULT_CACHE
l_.str.2:                               ; @.str.2
	.asciz	"\tCache requestor"

	.comm	__PSB_CBI_STAT_FAULT_TA,4,2     ; @_PSB_CBI_STAT_FAULT_TA
l_.str.3:                               ; @.str.3
	.asciz	"\tTA requestor"

	.comm	__PSB_CBI_STAT_FAULT_VDM,4,2    ; @_PSB_CBI_STAT_FAULT_VDM
l_.str.4:                               ; @.str.4
	.asciz	"\tVDM requestor"

	.comm	__PSB_CBI_STAT_FAULT_2D,4,2     ; @_PSB_CBI_STAT_FAULT_2D
l_.str.5:                               ; @.str.5
	.asciz	"\t2D requestor"

	.comm	__PSB_CBI_STAT_FAULT_PBE,4,2    ; @_PSB_CBI_STAT_FAULT_PBE
l_.str.6:                               ; @.str.6
	.asciz	"\tPBE requestor"

	.comm	__PSB_CBI_STAT_FAULT_TSP,4,2    ; @_PSB_CBI_STAT_FAULT_TSP
l_.str.7:                               ; @.str.7
	.asciz	"\tTSP requestor"

	.comm	__PSB_CBI_STAT_FAULT_ISP,4,2    ; @_PSB_CBI_STAT_FAULT_ISP
l_.str.8:                               ; @.str.8
	.asciz	"\tISP requestor"

	.comm	__PSB_CBI_STAT_FAULT_USSEPDS,4,2 ; @_PSB_CBI_STAT_FAULT_USSEPDS
l_.str.9:                               ; @.str.9
	.asciz	"\tUSSEPDS requestor"

	.comm	__PSB_CBI_STAT_FAULT_HOST,4,2   ; @_PSB_CBI_STAT_FAULT_HOST
l_.str.10:                              ; @.str.10
	.asciz	"\tHost requestor"

l_.str.11:                              ; @.str.11
	.asciz	"\tMMU failing address is 0x%08x.\n"

	.comm	_PSB_CR_EVENT_HOST_CLEAR,4,2    ; @PSB_CR_EVENT_HOST_CLEAR
	.comm	_PSB_CR_EVENT_HOST_CLEAR2,4,2   ; @PSB_CR_EVENT_HOST_CLEAR2
	.no_dead_strip	_psb_sgx_interrupt
.subsections_via_symbols
