	.file	"extr_s5p_mfc.c_s5p_mfc_alloc_memdev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s:%s"
	.text
	.p2align 4
	.type	s5p_mfc_alloc_memdev, @function
s5p_mfc_alloc_memdev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, 24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	device_initialize@PLT
	mov	rdi, rbx
	call	dev_name@PLT
	mov	rcx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	mov	edx, eax
	call	dev_set_name@PLT
	mov	eax, DWORD PTR 12[rbx]
	mov	QWORD PTR 16[r12], rbx
	mov	rdi, r12
	mov	esi, DWORD PTR [rbx]
	mov	edx, 1
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR s5p_mfc_memdev_release[rip]
	mov	DWORD PTR 4[r12], eax
	call	of_dma_configure@PLT
	mov	rdi, r12
	call	device_add@PLT
	test	rax, rax
	jne	.L3
	mov	esi, DWORD PTR [rbx]
	mov	edx, r14d
	mov	rdi, r12
	call	of_reserved_mem_device_init_by_idx@PLT
	test	eax, eax
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	mov	rdi, r12
	call	device_del@PLT
.L3:
	mov	rdi, r12
	xor	r12d, r12d
	call	put_device@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	s5p_mfc_alloc_memdev, .-s5p_mfc_alloc_memdev
	.comm	s5p_mfc_memdev_release,4,4
	.comm	GFP_KERNEL,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_s5p_mfc.c_s5p_mfc_alloc_memdev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s:%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_mfc_alloc_memdev, %function
s5p_mfc_alloc_memdev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	ldr	r2, .L13
	mov	r5, r1
	ldr	r2, [r2]
	mov	r1, #20
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L1
	bl	device_initialize
	mov	r0, r6
	bl	dev_name
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L13+4
	mov	r0, r4
	bl	dev_set_name
	ldr	r3, .L13+8
	ldr	r1, [r6, #12]
	ldr	r2, [r3]
	ldr	r3, [r6, #8]
	mov	r0, r4
	stmib	r4, {r2, r3}
	str	r1, [r4, #12]
	mov	r2, #1
	ldr	r1, [r6]
	str	r6, [r4, #16]
	bl	of_dma_configure
	mov	r0, r4
	bl	device_add
	cmp	r0, #0
	bne	.L3
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r6]
	bl	of_reserved_mem_device_init_by_idx
	cmp	r0, #0
	bne	.L12
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r4
	bl	device_del
.L3:
	mov	r0, r4
	mov	r4, #0
	bl	put_device
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	GFP_KERNEL
	.word	.LC0
	.word	s5p_mfc_memdev_release
	.size	s5p_mfc_alloc_memdev, .-s5p_mfc_alloc_memdev
	.comm	s5p_mfc_memdev_release,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
