	.file	"extr_book3s_64_mmu_radix.c_kvmppc_mmu_radix_xlate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvmppc_mmu_radix_xlate
	.type	kvmppc_mmu_radix_xlate, @function
kvmppc_mmu_radix_xlate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	ecx, 62
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, esi
	sar	eax, cl
	test	eax, eax
	je	.L2
	cmp	eax, 3
	je	.L12
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	r8d, r8d
.L3:
	mov	rax, QWORD PTR 24[rbx]
	lea	r9, 4[rsp]
	mov	rdx, rbp
	mov	rdi, rbx
	mov	ecx, DWORD PTR [rax]
	call	kvmppc_mmu_radix_translate_table@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbx
	call	kvmppc_get_msr@PLT
	test	DWORD PTR MSR_PR[rip], eax
	mov	eax, DWORD PTR 4[rsp]
	je	.L6
	test	DWORD PTR _PAGE_PRIVILEGED[rip], eax
	je	.L1
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 8[rbp], 0
	mov	QWORD PTR 0[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r8d, DWORD PTR 16[rdi]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	test	DWORD PTR _PAGE_PRIVILEGED[rip], eax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	bt	rax, 62
	jnc	.L9
	mov	QWORD PTR 16[rbp], 0
.L9:
	test	rax, rax
	js	.L23
.L10:
	test	BYTE PTR 15[rbx], 64
	je	.L1
	mov	QWORD PTR 0[rbp], 0
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	QWORD PTR 8[rbp], 0
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kvmppc_mmu_radix_xlate, .-kvmppc_mmu_radix_xlate
	.comm	_PAGE_PRIVILEGED,4,4
	.comm	MSR_PR,4,4
	.comm	EINVAL,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_book3s_64_mmu_radix.c_kvmppc_mmu_radix_xlate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kvmppc_mmu_radix_xlate
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_mmu_radix_xlate, %function
kvmppc_mmu_radix_xlate:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #62
	push	{r4, r5, r6, lr}
	mov	r6, r2
	ldr	r2, .L16
	sub	sp, sp, #16
	asrs	r3, r1, r3
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	beq	.L2
	cmp	r3, #3
	beq	.L7
	ldr	r3, .L16+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r2, #0
.L3:
	ldr	r3, [r4, #12]
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r2, [sp]
	str	r0, [sp, #4]
	mov	r2, r6
	mov	r0, r4
	bl	kvmppc_mmu_radix_translate_table
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	kvmppc_get_msr
	ldr	r3, .L16+8
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L1
	ldr	r3, .L16+12
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	strne	r5, [r6, #8]
	strne	r5, [r6, #4]
	strne	r5, [r6]
	b	.L1
.L2:
	ldr	r2, [r0, #8]
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	EINVAL
	.word	MSR_PR
	.word	_PAGE_PRIVILEGED
	.size	kvmppc_mmu_radix_xlate, .-kvmppc_mmu_radix_xlate
	.comm	_PAGE_PRIVILEGED,4,4
	.comm	MSR_PR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
