	.file	"extr_dpu_encoder.c_dpu_encoder_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to create encoder\n"
.LC1:
	.string	"created\n"
	.text
	.p2align 4
	.globl	dpu_encoder_setup
	.type	dpu_encoder_setup, @function
dpu_encoder_setup:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rsi
	mov	edi, DWORD PTR [rax]
	call	to_dpu_kms@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	to_dpu_encoder_virt@PLT
	mov	rbp, rax
	lea	rdi, 32[rax]
	call	mutex_init@PLT
	mov	rsi, r13
	mov	rdx, r12
	mov	rdi, rbp
	call	dpu_encoder_setup_display@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L7
	lea	rdi, 28[rbp]
	xor	esi, esi
	call	atomic_set@PLT
	mov	esi, DWORD PTR dpu_encoder_frame_done_timeout[rip]
	lea	rdi, 24[rbp]
	xor	edx, edx
	call	timer_setup@PLT
	mov	rax, QWORD PTR DRM_MODE_ENCODER_DSI[rip]
	cmp	QWORD PTR [r12], rax
	je	.L8
.L4:
	lea	rdi, 16[rbp]
	call	mutex_init@PLT
	mov	esi, DWORD PTR dpu_encoder_off_work[rip]
	lea	rdi, 12[rbp]
	call	INIT_DELAYED_WORK@PLT
	mov	eax, DWORD PTR IDLE_TIMEOUT[rip]
	mov	esi, DWORD PTR dpu_encoder_vsync_event_work_handler[rip]
	lea	rdi, 4[rbp]
	mov	DWORD PTR 8[rbp], eax
	call	kthread_init_work@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	edx, 8
	call	memcpy@PLT
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	DPU_DEBUG_ENC@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	DPU_ERROR@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR dpu_encoder_vsync_event_handler[rip]
	lea	rdi, 20[rbp]
	xor	edx, edx
	call	timer_setup@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dpu_encoder_setup, .-dpu_encoder_setup
	.comm	dpu_encoder_vsync_event_work_handler,4,4
	.comm	dpu_encoder_vsync_event_handler,4,4
	.comm	dpu_encoder_off_work,4,4
	.comm	dpu_encoder_frame_done_timeout,4,4
	.comm	IDLE_TIMEOUT,4,4
	.comm	DRM_MODE_ENCODER_DSI,8,8
	.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_dpu_encoder.c_dpu_encoder_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to create encoder\012\000"
	.align	2
.LC1:
	.ascii	"created\012\000"
	.text
	.align	2
	.global	dpu_encoder_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpu_encoder_setup, %function
dpu_encoder_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	mov	r4, r1
	mov	r6, r2
	bl	to_dpu_kms
	mov	r5, r0
	mov	r0, r4
	bl	to_dpu_encoder_virt
	mov	r4, r0
	add	r0, r0, #32
	bl	mutex_init
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	dpu_encoder_setup_display
	subs	r5, r0, #0
	bne	.L7
	mov	r1, r5
	add	r0, r4, #28
	bl	atomic_set
	ldr	r3, .L9
	mov	r2, r5
	ldr	r1, [r3]
	add	r0, r4, #24
	bl	timer_setup
	ldr	r3, .L9+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
.L4:
	add	r0, r4, #16
	bl	mutex_init
	ldr	r3, .L9+8
	add	r0, r4, #12
	ldr	r1, [r3]
	bl	INIT_DELAYED_WORK
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r4, #8]
	add	r0, r4, #4
	bl	kthread_init_work
	mov	r1, r6
	mov	r2, #4
	mov	r0, r4
	bl	memcpy
	mov	r0, r4
	ldr	r1, .L9+20
	bl	DPU_DEBUG_ENC
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+24
	bl	DPU_ERROR
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+28
	mov	r2, r5
	ldr	r1, [r3]
	add	r0, r4, #20
	bl	timer_setup
	b	.L4
.L10:
	.align	2
.L9:
	.word	dpu_encoder_frame_done_timeout
	.word	DRM_MODE_ENCODER_DSI
	.word	dpu_encoder_off_work
	.word	IDLE_TIMEOUT
	.word	dpu_encoder_vsync_event_work_handler
	.word	.LC1
	.word	.LC0
	.word	dpu_encoder_vsync_event_handler
	.size	dpu_encoder_setup, .-dpu_encoder_setup
	.comm	dpu_encoder_vsync_event_work_handler,4,4
	.comm	dpu_encoder_vsync_event_handler,4,4
	.comm	dpu_encoder_off_work,4,4
	.comm	dpu_encoder_frame_done_timeout,4,4
	.comm	IDLE_TIMEOUT,4,4
	.comm	DRM_MODE_ENCODER_DSI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
