	.file	"extr_amdgpu_fb.c_amdgpu_fbdev_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	amdgpu_fbdev_init
	.type	amdgpu_fbdev_init, @function
amdgpu_fbdev_init:
.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	eax, DWORD PTR 16[rdi]
	test	eax, eax
	jne	.L2
.L4:
	xor	r12d, r12d
.L1:
	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
	mov	rbx, rdi
	mov	rdi, QWORD PTR [rdi]
	call	list_empty@PLT
	test	rax, rax
	jne	.L4
	mov	edx, 32
	mov	eax, 8
	mov	edi, 16
	cmp	DWORD PTR 24[rbx], 33554432
	cmovg	eax, edx
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r13d, eax
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 8[rax], rbx
	mov	rdi, QWORD PTR [rbx]
	lea	rdx, amdgpu_fb_helper_funcs[rip]
	mov	rsi, rax
	mov	QWORD PTR 8[rbx], rax
	call	drm_fb_helper_prepare@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, DWORD PTR AMDGPUFB_CONN_LIMIT[rip]
	mov	rsi, rbp
	call	drm_fb_helper_init@PLT
	mov	rdi, rbp
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	call	drm_fb_helper_single_add_all_connectors@PLT
	mov	rdi, rbx
	call	amdgpu_device_has_dc_support@PLT
	test	eax, eax
	je	.L13
.L8:
	mov	esi, r13d
	mov	rdi, rbp
	call	drm_fb_helper_initial_config@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
.L12:
	.cfi_restore_state
	call	kfree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR [rbx]
	call	drm_helper_disable_unused_functions@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	amdgpu_fbdev_init, .-amdgpu_fbdev_init
	.comm	amdgpu_fb_helper_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	AMDGPUFB_CONN_LIMIT,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_amdgpu_fb.c_amdgpu_fbdev_init.c"
	.text
	.align	2
	.global	amdgpu_fbdev_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_fbdev_init, %function
amdgpu_fbdev_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	bne	.L2
.L4:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r0
	ldr	r0, [r0]
	bl	list_empty
	cmp	r0, #0
	bne	.L4
	mov	r0, #8
	ldr	r2, [r4, #12]
	ldr	r3, .L15
	cmp	r2, #33554432
	ldr	r1, [r3]
	movgt	r7, #32
	movle	r7, r0
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L12
	mov	r1, r6
	ldr	r2, .L15+4
	str	r4, [r6, #4]
	ldr	r0, [r4]
	str	r6, [r4, #4]
	bl	drm_fb_helper_prepare
	ldr	r3, .L15+8
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	drm_fb_helper_init
	subs	r5, r0, #0
	mov	r0, r6
	bne	.L13
	bl	drm_fb_helper_single_add_all_connectors
	mov	r0, r4
	bl	amdgpu_device_has_dc_support
	cmp	r0, #0
	beq	.L14
.L8:
	mov	r1, r7
	mov	r0, r6
	bl	drm_fb_helper_initial_config
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	kfree
	b	.L1
.L12:
	ldr	r3, .L15+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L14:
	ldr	r0, [r4]
	bl	drm_helper_disable_unused_functions
	b	.L8
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	amdgpu_fb_helper_funcs
	.word	AMDGPUFB_CONN_LIMIT
	.word	ENOMEM
	.size	amdgpu_fbdev_init, .-amdgpu_fbdev_init
	.comm	amdgpu_fb_helper_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	AMDGPUFB_CONN_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
