	.file	"extr_vpif_display.c_initialize_vpif.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	initialize_vpif, @function
initialize_vpif:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR VPIF_DISPLAY_MAX_DEVICES[rip]
	test	ecx, ecx
	jle	.L2
	mov	rax, QWORD PTR vpif_obj[rip]
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR VPIF_DISPLAY_MAX_DEVICES[rip], ebx
	jle	.L2
.L6:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	lea	rbp, [rax+rbx*4]
	call	kzalloc@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR vpif_obj[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	test	edx, edx
	jne	.L3
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	ebx, ebx
	je	.L1
	lea	ebp, -1[rbx]
	xor	ebx, ebx
	sal	rbp, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR vpif_obj[rip]
	add	rbx, 4
.L5:
	mov	edi, DWORD PTR [rax+rbx]
	call	kfree@PLT
	cmp	rbx, rbp
	jne	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	xor	r13d, r13d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	initialize_vpif, .-initialize_vpif
	.comm	vpif_obj,8,8
	.comm	VPIF_DISPLAY_MAX_DEVICES,4,4
	.comm	GFP_KERNEL,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_vpif_display.c_initialize_vpif.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	initialize_vpif, %function
initialize_vpif:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L13
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L2
	ldr	r7, .L13+4
	mov	r4, #0
	ldr	r9, .L13+8
	ldr	r5, [r7]
	b	.L6
.L3:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L6:
	mov	r0, #4
	ldr	r1, [r9]
	bl	kzalloc
	str	r0, [r5, r4, lsl #2]
	ldr	r5, [r7]
	ldr	r6, [r5, r4, lsl #2]
	cmp	r6, #0
	bne	.L3
	ldr	r3, .L13+12
	cmp	r4, #0
	ldr	r8, [r3]
	rsb	r8, r8, #0
	bne	.L4
	b	.L1
.L12:
	ldr	r5, [r7]
.L4:
	ldr	r0, [r5, r6, lsl #2]
	add	r6, r6, #1
	bl	kfree
	cmp	r6, r4
	bne	.L12
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r8, #0
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	VPIF_DISPLAY_MAX_DEVICES
	.word	vpif_obj
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	initialize_vpif, .-initialize_vpif
	.comm	vpif_obj,4,4
	.comm	VPIF_DISPLAY_MAX_DEVICES,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
