	.file	"extr_mmpfb.c_mmpfb_set_win.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmpfb_set_win, @function
mmpfb_set_win:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 32
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r12, rsp
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 4[rbp]
	mov	DWORD PTR 20[rsp], eax
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR 8[rsp], edi
	mov	DWORD PTR 12[rsp], eax
	mov	DWORD PTR 16[rsp], eax
	call	pixfmt_to_stride@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rcx, QWORD PTR [rsp]
	imul	edx, eax
	mov	DWORD PTR [rcx], edx
	xor	edx, edx
	cmp	eax, 1
	jne	.L2
	mov	edx, DWORD PTR [rbx]
	sar	edx
.L2:
	mov	DWORD PTR 8[rcx], edx
	mov	rsi, r12
	mov	DWORD PTR 4[rcx], edx
	mov	edi, DWORD PTR 0[rbp]
	call	mmp_overlay_set_win@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mmpfb_set_win, .-mmpfb_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_mmpfb.c_mmpfb_set_win.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmpfb_set_win, %function
mmpfb_set_win:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	sub	sp, sp, #32
	ldr	r6, [r0, #4]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	str	r4, [sp, #4]
	ldr	r2, [r6, #12]
	ldr	r3, [r6, #8]
	mov	r5, r0
	ldr	r1, .L8
	ldr	r0, [r6, #4]
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	str	r2, [sp, #20]
	str	r2, [sp, #24]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r0, [sp, #8]
	bl	pixfmt_to_stride
	ldr	r3, [r5]
	cmp	r0, #1
	mul	r0, r3, r0
	ldr	r3, [sp, #4]
	add	r1, sp, #4
	str	r0, [r3]
	ldreq	r4, [r5]
	asreq	r4, r4, #1
	str	r4, [r3, #8]
	str	r4, [r3, #4]
	ldr	r0, [r6]
	bl	mmp_overlay_set_win
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	mmpfb_set_win, .-mmpfb_set_win
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
