	.file	"extr_privcmd.c_privcmd_mmap_single.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	privcmd_mmap_single, @function
privcmd_mmap_single:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edi, 32
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, DWORD PTR M_PRIVCMD[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	mov	edx, DWORD PTR M_WAITOK[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	or	edx, DWORD PTR M_ZERO[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, r8d
	call	malloc@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	OFF_TO_IDX@PLT
	mov	QWORD PTR 16[rbp], 0
	lea	rsi, 16[rbp]
	mov	edx, r12d
	mov	DWORD PTR 28[rbp], eax
	mov	edi, DWORD PTR privcmd_dev[rip]
	call	xenmem_alloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	call	rman_get_start@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	ecx, r12d
	mov	r8d, ebx
	mov	DWORD PTR 24[rbp], eax
	mov	esi, DWORD PTR OBJT_MGTDEVICE[rip]
	lea	rdx, privcmd_pg_ops[rip]
	mov	rdi, rbp
	push	0
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR 0[r13]
	call	cdev_pager_allocate@PLT
	mov	QWORD PTR 0[rbp], rax
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	je	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r14], rax
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR privcmd_dev[rip]
	call	xenmem_free@PLT
.L6:
	mov	esi, DWORD PTR M_PRIVCMD[rip]
	mov	rdi, rbp
	call	free@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	privcmd_mmap_single, .-privcmd_mmap_single
	.comm	privcmd_pg_ops,4,4
	.comm	privcmd_dev,4,4
	.comm	OBJT_MGTDEVICE,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_PRIVCMD,4,4
	.comm	ENOMEM,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_privcmd.c_privcmd_mmap_single.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	privcmd_mmap_single, %function
privcmd_mmap_single:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r7, r1
	ldr	r2, .L9
	ldr	r1, .L9+4
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r9, .L9+8
	orr	r2, r1, r2
	sub	sp, sp, #16
	ldr	r1, [r9]
	mov	r0, #20
	mov	r8, r3
	bl	malloc
	mov	r4, r0
	mov	r0, r5
	bl	OFF_TO_IDX
	mov	r6, #0
	mov	r1, r4
	ldr	r10, .L9+12
	str	r0, [r4, #16]
	mov	r2, r5
	ldr	r0, [r10]
	str	r6, [r1, #8]!
	bl	xenmem_alloc
	cmp	r0, r6
	str	r0, [r4, #4]
	beq	.L6
	bl	rman_get_start
	str	r0, [r4, #12]
	ldr	r3, [r7]
	ldr	r2, .L9+16
	stmib	sp, {r3, r6}
	ldr	r3, [sp, #48]
	mov	r0, r4
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r3, r5
	ldr	r2, .L9+20
	bl	cdev_pager_allocate
	mov	r3, r0
	cmp	r0, #0
	str	r0, [r4]
	movne	r0, r6
	strne	r3, [r8]
	beq	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r0, [r10]
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	bl	xenmem_free
.L6:
	mov	r0, r4
	ldr	r1, [r9]
	bl	free
	ldr	r3, .L9+24
	ldr	r0, [r3]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	M_ZERO
	.word	M_WAITOK
	.word	M_PRIVCMD
	.word	privcmd_dev
	.word	OBJT_MGTDEVICE
	.word	privcmd_pg_ops
	.word	ENOMEM
	.size	privcmd_mmap_single, .-privcmd_mmap_single
	.comm	privcmd_pg_ops,4,4
	.comm	privcmd_dev,4,4
	.comm	OBJT_MGTDEVICE,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_PRIVCMD,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
