	.file	"extr_kmmio.c_register_kmmio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"kmmio: Unable to set page fault.\n"
	.text
	.p2align 4
	.globl	register_kmmio_probe
	.type	register_kmmio_probe, @function
register_kmmio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	r12, QWORD PTR 8[rdi]
	lea	rdi, kmmio_lock[rip]
	mov	rbx, QWORD PTR PAGE_MASK[rip]
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	get_kmmio_probe@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR EEXIST[rip]
	neg	r12d
.L3:
	xor	esi, esi
	lea	rdi, kmmio_lock[rip]
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	not	rbx
	lea	rdi, 16[rbp]
	lea	rsi, kmmio_probes[rip]
	add	DWORD PTR kmmio_count[rip], 1
	and	rbx, r12
	lea	r12, [rbx+r13]
	call	list_add_rcu@PLT
	test	r12, r12
	je	.L4
	xor	ebx, ebx
	lea	r13, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, QWORD PTR PAGE_SIZE[rip]
	cmp	r12, rbx
	jbe	.L4
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, rbx
	call	add_kmmio_fault_page@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r13
	call	pr_err@PLT
	add	rbx, QWORD PTR PAGE_SIZE[rip]
	cmp	r12, rbx
	ja	.L6
.L4:
	xor	r12d, r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	register_kmmio_probe, .-register_kmmio_probe
	.comm	kmmio_probes,4,4
	.comm	kmmio_lock,4,4
	.comm	kmmio_count,4,4
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_MASK,8,8
	.comm	EEXIST,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_kmmio.c_register_kmmio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"kmmio: Unable to set page fault.\012\000"
	.text
	.align	2
	.global	register_kmmio_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_kmmio_probe, %function
register_kmmio_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r3, .L16
	mov	r1, #0
	ldr	r0, .L16+4
	ldr	r8, [r3]
	ldr	r6, [r5]
	ldr	r4, [r5, #4]
	bl	spin_lock_irqsave
	ldr	r0, [r5, #4]
	bl	get_kmmio_probe
	subs	r7, r0, #0
	beq	.L2
	ldr	r3, .L16+8
	ldr	r7, [r3]
	rsb	r7, r7, #0
.L3:
	mov	r1, #0
	ldr	r0, .L16+4
	bl	spin_unlock_irqrestore
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r2, .L16+12
	bic	r4, r4, r8
	ldr	r3, [r2]
	ldr	r1, .L16+16
	add	r3, r3, #1
	add	r6, r4, r6
	add	r0, r5, #8
	str	r3, [r2]
	bl	list_add_rcu
	cmp	r6, #0
	beq	.L3
	mov	r4, r7
	ldr	r8, .L16+20
	ldr	r9, .L16+24
	b	.L6
.L5:
	ldr	r3, [r8]
	add	r4, r4, r3
	cmp	r6, r4
	bls	.L3
.L6:
	ldr	r0, [r5, #4]
	add	r0, r4, r0
	bl	add_kmmio_fault_page
	cmp	r0, #0
	beq	.L5
	mov	r0, r9
	bl	pr_err
	b	.L5
.L17:
	.align	2
.L16:
	.word	PAGE_MASK
	.word	kmmio_lock
	.word	EEXIST
	.word	kmmio_count
	.word	kmmio_probes
	.word	PAGE_SIZE
	.word	.LC0
	.size	register_kmmio_probe, .-register_kmmio_probe
	.comm	kmmio_probes,4,4
	.comm	kmmio_lock,4,4
	.comm	kmmio_count,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_MASK,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
