	.file	"extr_mmp_ctrl.c_overlay_set_win.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	overlay_set_win, @function
overlay_set_win:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 8[rdi]
	mov	rbx, rsi
	call	path_regs@PLT
	lea	rdi, 4[rbp]
	mov	edx, 32
	mov	rsi, rbx
	mov	r12, rax
	call	memcpy@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	overlay_is_vid@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 32[r12]
	mov	edi, DWORD PTR [rax]
	call	writel_relaxed@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 28[r12]
	mov	edi, DWORD PTR 8[rax]
	sal	edi, 16
	or	edi, DWORD PTR 4[rax]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, 24[r12]
	sal	edi, 16
	or	edi, DWORD PTR 12[rbx]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, 20[r12]
	sal	edi, 16
	or	edi, DWORD PTR 20[rbx]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 24[rbx]
	lea	rsi, 16[r12]
	sal	edi, 16
	or	edi, DWORD PTR 28[rbx]
	call	writel_relaxed@PLT
.L3:
	mov	rdi, rbp
	call	dmafetch_set_fmt@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 12[r12]
	mov	edi, DWORD PTR [rax]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, 8[r12]
	sal	edi, 16
	or	edi, DWORD PTR 12[rbx]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, 4[r12]
	sal	edi, 16
	or	edi, DWORD PTR 20[rbx]
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	rsi, r12
	sal	edi, 16
	or	edi, DWORD PTR 28[rbx]
	call	writel_relaxed@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	overlay_set_win, .-overlay_set_win
	.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_mmp_ctrl.c_overlay_set_win.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	overlay_set_win, %function
overlay_set_win:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	mov	r4, r1
	bl	path_regs
	mov	r1, r4
	mov	r2, #28
	mov	r6, r0
	add	r0, r5, #4
	bl	memcpy
	mov	r0, r5
	bl	mutex_lock
	mov	r0, r5
	bl	overlay_is_vid
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L2
	ldr	r0, [r3]
	add	r1, r6, #32
	bl	writel_relaxed
	ldr	r3, [r4]
	add	r1, r6, #28
	ldr	r0, [r3, #8]
	ldr	r3, [r3, #4]
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	ldmib	r4, {r0, r3}
	add	r1, r6, #24
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	ldr	r3, [r4, #16]
	ldr	r0, [r4, #12]
	add	r1, r6, #20
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	ldr	r0, [r4, #20]
	ldr	r3, [r4, #24]
	add	r1, r6, #16
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
.L3:
	mov	r0, r5
	bl	dmafetch_set_fmt
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L2:
	add	r1, r6, #12
	ldr	r0, [r3]
	bl	writel_relaxed
	ldmib	r4, {r0, r3}
	add	r1, r6, #8
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	ldr	r3, [r4, #16]
	ldr	r0, [r4, #12]
	add	r1, r6, #4
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	ldr	r0, [r4, #20]
	ldr	r3, [r4, #24]
	mov	r1, r6
	orr	r0, r3, r0, lsl #16
	bl	writel_relaxed
	b	.L3
	.size	overlay_set_win, .-overlay_set_win
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
