	.file	"extr_gfxhub_v1_0.c_gfxhub_v1_0_set_fault_enable_default.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gfxhub_v1_0_set_fault_enable_default
	.type	gfxhub_v1_0_set_fault_enable_default, @function
gfxhub_v1_0_set_fault_enable_default:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR mmVM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	edi, DWORD PTR GC[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, esi
	xor	esi, esi
	call	RREG32_SOC15@PLT
	mov	edx, DWORD PTR RANGE_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR PDE0_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR PDE1_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR PDE2_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR NACK_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR VALID_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR READ_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR WRITE_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, ebx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	r8d, eax
	test	ebx, ebx
	je	.L5
.L2:
	mov	edx, DWORD PTR mmVM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, r8d
	xor	esi, esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	edi, DWORD PTR GC[rip]
	jmp	WREG32_SOC15@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR CRASH_ON_NO_RETRY_FAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR CRASH_ON_RETRY_FAULT[rip]
	mov	esi, DWORD PTR VM_L2_PROTECTION_FAULT_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	r8d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gfxhub_v1_0_set_fault_enable_default, .-gfxhub_v1_0_set_fault_enable_default
	.comm	mmVM_L2_PROTECTION_FAULT_CNTL,4,4
	.comm	WRITE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	VM_L2_PROTECTION_FAULT_CNTL,4,4
	.comm	VALID_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	READ_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	RANGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE2_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE1_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE0_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	NACK_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	GC,4,4
	.comm	EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	CRASH_ON_RETRY_FAULT,4,4
	.comm	CRASH_ON_NO_RETRY_FAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gfxhub_v1_0.c_gfxhub_v1_0_set_fault_enable_default.c"
	.text
	.align	2
	.global	gfxhub_v1_0_set_fault_enable_default
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfxhub_v1_0_set_fault_enable_default, %function
gfxhub_v1_0_set_fault_enable_default:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r7, .L7
	ldr	r6, .L7+4
	mov	r1, #0
	ldr	r2, [r7]
	ldr	r0, [r6]
	ldr	r5, .L7+8
	bl	RREG32_SOC15
	ldr	r2, .L7+12
	mov	r3, r4
	ldr	r2, [r2]
	ldr	r1, [r5]
	bl	REG_SET_FIELD
	ldr	r2, .L7+16
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+20
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+24
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+28
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+32
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+36
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+40
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+44
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+48
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r2, .L7+52
	mov	r3, r4
	ldr	r1, [r5]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	cmp	r4, #0
	movne	r3, r0
	beq	.L6
.L2:
	ldr	r2, [r7]
	ldr	r0, [r6]
	mov	r1, #0
	pop	{r4, r5, r6, r7, r8, lr}
	b	WREG32_SOC15
.L6:
	ldr	r2, .L7+56
	mov	r3, #1
	ldr	r2, [r2]
	ldr	r1, [r5]
	bl	REG_SET_FIELD
	ldr	r3, .L7+60
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	mov	r3, r0
	b	.L2
.L8:
	.align	2
.L7:
	.word	mmVM_L2_PROTECTION_FAULT_CNTL
	.word	GC
	.word	VM_L2_PROTECTION_FAULT_CNTL
	.word	RANGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	PDE0_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	PDE1_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	PDE2_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	NACK_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	VALID_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	READ_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	WRITE_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT
	.word	CRASH_ON_NO_RETRY_FAULT
	.word	CRASH_ON_RETRY_FAULT
	.size	gfxhub_v1_0_set_fault_enable_default, .-gfxhub_v1_0_set_fault_enable_default
	.comm	mmVM_L2_PROTECTION_FAULT_CNTL,4,4
	.comm	WRITE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	VM_L2_PROTECTION_FAULT_CNTL,4,4
	.comm	VALID_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	TRANSLATE_FURTHER_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	READ_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	RANGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE2_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE1_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	PDE0_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	NACK_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	GC,4,4
	.comm	EXECUTE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	DUMMY_PAGE_PROTECTION_FAULT_ENABLE_DEFAULT,4,4
	.comm	CRASH_ON_RETRY_FAULT,4,4
	.comm	CRASH_ON_NO_RETRY_FAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
