	.file	"extr_enlighten_pv.c_xen_convert_trap_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xen_convert_trap_info, @function
xen_convert_trap_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	xor	edi, edi
	lea	ebx, 1[rax]
	movsx	rbx, ebx
	shr	rbx, 2
	cmp	ebx, 256
	seta	dil
	call	BUG_ON@PLT
	test	ebx, ebx
	je	.L5
	lea	eax, -1[rbx]
	xor	r14d, r14d
	xor	ebx, ebx
	xor	r12d, r12d
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbx, rax
.L4:
	mov	rax, QWORD PTR 8[r15]
	lea	rbp, 0[r13+r12*8]
	mov	edi, ebx
	mov	rdx, rbp
	lea	rsi, [rax+rbx*4]
	call	cvt_gate_to_trap@PLT
	test	rax, rax
	je	.L3
	lea	r12d, 1[r14]
	mov	r14, r12
	lea	rbp, 0[r13+r12*8]
.L3:
	lea	rax, 1[rbx]
	cmp	QWORD PTR 8[rsp], rbx
	jne	.L6
.L2:
	mov	QWORD PTR 0[rbp], 0
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	mov	rbp, r13
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	xen_convert_trap_info, .-xen_convert_trap_info
	.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_enlighten_pv.c_xen_convert_trap_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xen_convert_trap_info, %function
xen_convert_trap_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	ldr	r0, .L12
	add	r3, r3, #1
	cmp	r3, r0
	movls	r0, #0
	movhi	r0, #1
	lsr	r8, r3, #2
	mov	r7, r1
	bl	BUG_ON
	cmp	r8, #0
	beq	.L5
	mov	r5, #0
	mov	r4, r5
.L4:
	ldr	r1, [r9, #4]
	add	r6, r7, r5, lsl #2
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, r4, lsl #2
	bl	cvt_gate_to_trap
	lsl	r2, r5, #2
	cmp	r0, #0
	addne	r2, r2, #4
	add	r4, r4, #1
	addne	r6, r7, r2
	addne	r5, r5, #1
	cmp	r8, r4
	bne	.L4
.L2:
	mov	r3, #0
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r6, r7
	b	.L2
.L13:
	.align	2
.L12:
	.word	1027
	.size	xen_convert_trap_info, .-xen_convert_trap_info
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
