	.file	"extr_ocfb.c_ocfb_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No valid video modes found\n"
.LC1:
	.string	"I/O resource request failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Frame buffer memory allocation failed\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Color map allocation failed\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Framebuffer registration failed\n"
	.text
	.p2align 4
	.type	ocfb_probe, @function
ocfb_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 96
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L15
	mov	rsi, rax
	mov	rdi, rbp
	mov	rbx, rax
	call	platform_set_drvdata@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	QWORD PTR 64[rbx], rbp
	xor	ecx, ecx
	mov	QWORD PTR 56[rbx], rbx
	lea	r13, 16[rbx]
	lea	rdi, 48[rbx]
	xor	r8d, r8d
	lea	rax, ocfb_ops[rip]
	mov	edx, DWORD PTR mode_option[rip]
	lea	r9, default_mode[rip]
	mov	rsi, r13
	mov	QWORD PTR 72[rbx], rax
	push	16
	.cfi_def_cfa_offset 80
	call	fb_find_mode@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	je	.L17
	mov	rdi, rbx
	call	ocfb_init_var@PLT
	mov	rdi, rbx
	call	ocfb_init_fix@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L18
	mov	rdi, rbp
	call	devm_ioremap_resource@PLT
	mov	DWORD PTR 92[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
	mov	r14d, DWORD PTR 40[rbx]
	mov	r12d, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r14d
	call	PAGE_ALIGN@PLT
	mov	rdi, rbp
	mov	ecx, r12d
	mov	rdx, rbx
	mov	esi, eax
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L20
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 32[rbx], rdi
	xor	esi, esi
	mov	edx, r14d
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR 88[rbx]
	mov	DWORD PTR 24[rbx], eax
	call	memset_io@PLT
	mov	rdi, rbx
	call	ocfb_setupfb@PLT
	cmp	QWORD PTR 80[rbx], 0
	je	.L8
	mov	eax, DWORD PTR FBINFO_FOREIGN_ENDIAN[rip]
	or	DWORD PTR 20[rbx], eax
.L8:
	mov	esi, DWORD PTR PALETTE_SIZE[rip]
	xor	edx, edx
	mov	rdi, r13
	call	fb_alloc_cmap@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	mov	rdi, r13
	call	register_framebuffer@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	dev_err@PLT
	mov	rdi, r13
	call	fb_dealloc_cmap@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L15:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR 92[rbx]
	add	rsp, 8
	.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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L10:
	mov	r15d, DWORD PTR [rbx]
	mov	r13, QWORD PTR 8[rbx]
	mov	edi, r14d
	call	PAGE_ALIGN@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	ecx, r15d
	mov	rdx, r13
	call	dma_free_coherent@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ocfb_probe, .-ocfb_probe
	.comm	ocfb_ops,4,4
	.comm	mode_option,4,4
	.comm	default_mode,4,4
	.comm	PALETTE_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FBINFO_FOREIGN_ENDIAN,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_ocfb.c_ocfb_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No valid video modes found\012\000"
	.align	2
.LC1:
	.ascii	"I/O resource request failed\012\000"
	.align	2
.LC2:
	.ascii	"Frame buffer memory allocation failed\012\000"
	.align	2
.LC3:
	.ascii	"Color map allocation failed\012\000"
	.align	2
.LC4:
	.ascii	"Framebuffer registration failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfb_probe, %function
ocfb_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r7, .L25
	mov	r1, #60
	ldr	r2, [r7]
	sub	sp, sp, #20
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L18
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r5, #0
	mov	r0, #16
	ldr	r3, .L25+4
	ldr	r1, .L25+8
	ldr	r2, .L25+12
	str	r3, [r4, #44]
	str	r6, [r4, #40]
	str	r4, [r4, #36]
	add	r8, r4, #8
	str	r0, [sp, #8]
	str	r5, [sp]
	ldr	r2, [r2]
	mov	r3, r5
	str	r1, [sp, #4]
	add	r0, r4, #32
	mov	r1, r8
	bl	fb_find_mode
	cmp	r0, r5
	beq	.L20
	mov	r0, r4
	bl	ocfb_init_var
	mov	r0, r4
	bl	ocfb_init_fix
	ldr	r3, .L25+16
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource
	subs	r1, r0, #0
	mov	r0, r6
	beq	.L21
	bl	devm_ioremap_resource
	str	r0, [r4, #56]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L22
	ldr	r9, [r4, #24]
	mov	r0, r9
	bl	PAGE_ALIGN
	mov	r2, r4
	mov	r1, r0
	ldr	r3, [r7]
	mov	r0, r6
	bl	dma_alloc_coherent
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L23
	ldr	r3, [r4, #52]
	ldr	r2, [r4]
	mov	r1, r5
	str	r3, [r4, #16]
	str	r2, [r4, #28]
	str	r0, [r4, #20]
	mov	r2, r9
	bl	memset_io
	mov	r0, r4
	bl	ocfb_setupfb
	ldr	r3, [r4, #48]
	mov	r0, r8
	cmp	r3, #0
	ldrne	r2, .L25+20
	ldrne	r3, [r4, #12]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r4, #12]
	ldr	r3, .L25+24
	mov	r2, #0
	ldr	r1, [r3]
	bl	fb_alloc_cmap
	subs	r5, r0, #0
	bne	.L24
	mov	r0, r8
	bl	register_framebuffer
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r6
	ldr	r1, .L25+28
	bl	dev_err
	mov	r0, r8
	bl	fb_dealloc_cmap
	b	.L10
.L20:
	mov	r0, r6
	ldr	r1, .L25+32
	bl	dev_err
	ldr	r3, .L25+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L23:
	mov	r0, r6
	ldr	r1, .L25+40
	bl	dev_err
.L18:
	ldr	r3, .L25+44
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L22:
	ldr	r0, [r4, #56]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L21:
	ldr	r1, .L25+48
	bl	dev_err
	ldr	r3, .L25+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L24:
	mov	r0, r6
	ldr	r1, .L25+56
	bl	dev_err
.L10:
	mov	r0, r9
	bl	PAGE_ALIGN
	ldr	r3, [r4]
	mov	r1, r0
	ldr	r2, [r4, #4]
	mov	r0, r6
	bl	dma_free_coherent
	b	.L1
.L26:
	.align	2
.L25:
	.word	GFP_KERNEL
	.word	ocfb_ops
	.word	default_mode
	.word	mode_option
	.word	IORESOURCE_MEM
	.word	FBINFO_FOREIGN_ENDIAN
	.word	PALETTE_SIZE
	.word	.LC4
	.word	.LC0
	.word	EINVAL
	.word	.LC2
	.word	ENOMEM
	.word	.LC1
	.word	ENXIO
	.word	.LC3
	.size	ocfb_probe, .-ocfb_probe
	.comm	ocfb_ops,4,4
	.comm	mode_option,4,4
	.comm	default_mode,4,4
	.comm	PALETTE_SIZE,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FBINFO_FOREIGN_ENDIAN,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
