	.file	"extr_gaccess.c_ipte_unlock_siif.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipte_unlock_siif, @function
ipte_unlock_siif:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movabs	r13, -4294967296
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	lea	rdi, 4[rax]
	call	read_lock@PLT
	mov	rdi, QWORD PTR [r14]
	call	kvm_s390_get_ipte_control@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	call	READ_ONCE@PLT
	mov	r8, r12
	mov	rdi, rbp
	mov	rbx, rax
	lea	ecx, -1[rax]
	and	rax, r13
	or	rax, rcx
	test	ecx, ecx
	mov	rsi, rbx
	cmovne	r8, rax
	mov	rdx, r8
	mov	r15, r8
	call	cmpxchg@PLT
	cmp	rax, rbx
	jne	.L4
	mov	rax, QWORD PTR [r14]
	lea	rdi, 4[rax]
	call	read_unlock@PLT
	test	r15d, r15d
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r14]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	wake_up@PLT
	.cfi_endproc
.LFE0:
	.size	ipte_unlock_siif, .-ipte_unlock_siif
	.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_gaccess.c_ipte_unlock_siif.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipte_unlock_siif, %function
ipte_unlock_siif:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r0]
	add	r0, r0, #4
	bl	read_lock
	ldr	r0, [r7]
	bl	kvm_s390_get_ipte_control
	mov	r5, r0
.L2:
	ldr	r0, [r5]
	bl	READ_ONCE
	sub	r6, r0, #1
	mov	r4, r0
	mov	r1, r0
	mov	r2, r6
	mov	r0, r5
	bl	cmpxchg
	cmp	r0, r4
	bne	.L2
	ldr	r0, [r7]
	add	r0, r0, #4
	bl	read_unlock
	cmp	r6, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	wake_up
	.size	ipte_unlock_siif, .-ipte_unlock_siif
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
