	.file	"extr_xenbus.c_xen_blkif_map.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"blkif-backend"
	.text
	.p2align 4
	.type	xen_blkif_map, @function
xen_blkif_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13d, DWORD PTR [rdi]
	test	r13d, r13d
	je	.L14
	xor	r13d, r13d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r14, QWORD PTR 40[rdi]
	mov	rbx, rdi
	mov	r12d, ecx
	lea	rcx, 32[rdi]
	mov	ebp, edx
	mov	rax, QWORD PTR 8[r14]
	mov	edi, DWORD PTR [rax]
	call	xenbus_map_ring_valloc@PLT
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR [r14]
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 128
	je	.L15
	xor	eax, eax
	call	BUG@PLT
.L7:
	mov	edi, DWORD PTR 16[r14]
	mov	edx, DWORD PTR xen_blkif_be_int[rip]
	mov	r9, rbx
	xor	ecx, ecx
	lea	r8, .LC0[rip]
	mov	esi, r12d
	call	bind_interdomain_evtchn_to_irqhandler@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L16
	mov	DWORD PTR [rbx], eax
	mov	eax, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r13d, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	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
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR XEN_PAGE_SIZE[rip]
	mov	rsi, QWORD PTR 32[rbx]
	lea	rdi, 16[rbx]
	imul	edx, ebp
	call	BACK_RING_INIT@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR XEN_PAGE_SIZE[rip]
	mov	rsi, QWORD PTR 32[rbx]
	lea	rdi, 24[rbx]
	imul	edx, ebp
	call	BACK_RING_INIT@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR XEN_PAGE_SIZE[rip]
	mov	rsi, QWORD PTR 32[rbx]
	lea	rdi, 20[rbx]
	imul	edx, ebp
	call	BACK_RING_INIT@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[r14]
	mov	rsi, QWORD PTR 32[rbx]
	mov	r13d, ebp
	mov	edi, DWORD PTR [rax]
	call	xenbus_unmap_ring_vfree@PLT
	mov	QWORD PTR 8[rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xen_blkif_map, .-xen_blkif_map
	.comm	xen_blkif_be_int,4,4
	.comm	XEN_PAGE_SIZE,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_xenbus.c_xen_blkif_map.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"blkif-backend\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xen_blkif_map, %function
xen_blkif_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	sub	sp, sp, #8
	cmp	r5, #0
	movne	r5, #0
	beq	.L14
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r8, [r0, #24]
	mov	r4, r0
	mov	r7, r3
	add	r3, r0, #20
	ldr	r0, [r8, #4]
	mov	r6, r2
	ldr	r0, [r0]
	bl	xenbus_map_ring_valloc
	cmp	r0, #0
	movlt	r5, r0
	blt	.L1
	ldr	r3, [r8]
	cmp	r3, #129
	beq	.L3
	cmp	r3, #130
	beq	.L4
	cmp	r3, #128
	beq	.L15
	bl	BUG
.L7:
	ldr	r3, .L16
	ldr	r2, .L16+4
	ldr	r0, [r8, #8]
	ldr	r2, [r2]
	mov	r1, r7
	stm	sp, {r3, r4}
	mov	r3, #0
	bl	bind_interdomain_evtchn_to_irqhandler
	subs	r6, r0, #0
	strge	r6, [r4]
	bge	.L1
	ldr	r3, [r8, #4]
	ldr	r1, [r4, #20]
	ldr	r0, [r3]
	bl	xenbus_unmap_ring_vfree
	mov	r3, #0
	mov	r5, r6
	str	r3, [r4, #4]
	b	.L1
.L15:
	ldr	r3, .L16+8
	ldr	r1, [r4, #20]
	ldr	r2, [r3]
	add	r0, r4, #8
	mul	r2, r6, r2
	bl	BACK_RING_INIT
	b	.L7
.L4:
	ldr	r3, .L16+8
	ldr	r1, [r4, #20]
	ldr	r2, [r3]
	add	r0, r4, #16
	mul	r2, r6, r2
	bl	BACK_RING_INIT
	b	.L7
.L3:
	ldr	r3, .L16+8
	ldr	r1, [r4, #20]
	ldr	r2, [r3]
	add	r0, r4, #12
	mul	r2, r6, r2
	bl	BACK_RING_INIT
	b	.L7
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	xen_blkif_be_int
	.word	XEN_PAGE_SIZE
	.size	xen_blkif_map, .-xen_blkif_map
	.comm	xen_blkif_be_int,4,4
	.comm	XEN_PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
