	.file	"extr_videomode.c_VIDEOMODE_SetCustomVerticalArea.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	VIDEOMODE_SetCustomVerticalArea
	.type	VIDEOMODE_SetCustomVerticalArea, @function
VIDEOMODE_SetCustomVerticalArea:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR VIDEOMODE_MIN_VERTICAL_AREA[rip], edi
	ja	.L10
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR VIDEOMODE_MAX_VERTICAL_AREA[rip], edi
	mov	ebx, DWORD PTR VIDEOMODE_custom_vertical_area[rip]
	cmovbe	edi, DWORD PTR VIDEOMODE_MAX_VERTICAL_AREA[rip]
	mov	ebp, DWORD PTR VIDEOMODE_vertical_area[rip]
	mov	eax, DWORD PTR VIDEOMODE_VERTICAL_CUSTOM[rip]
	cmp	ebx, edi
	jne	.L4
	cmp	ebp, eax
	je	.L5
.L4:
	mov	DWORD PTR VIDEOMODE_vertical_area[rip], eax
	xor	eax, eax
	mov	DWORD PTR VIDEOMODE_custom_vertical_area[rip], edi
	call	VIDEOMODE_Update@PLT
	test	eax, eax
	je	.L11
.L5:
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR FALSE[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	DWORD PTR VIDEOMODE_custom_vertical_area[rip], ebx
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR VIDEOMODE_vertical_area[rip], ebp
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	VIDEOMODE_SetCustomVerticalArea, .-VIDEOMODE_SetCustomVerticalArea
	.comm	VIDEOMODE_vertical_area,4,4
	.comm	VIDEOMODE_custom_vertical_area,4,4
	.comm	VIDEOMODE_VERTICAL_CUSTOM,4,4
	.comm	VIDEOMODE_MIN_VERTICAL_AREA,4,4
	.comm	VIDEOMODE_MAX_VERTICAL_AREA,4,4
	.comm	TRUE,4,4
	.comm	FALSE,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_videomode.c_VIDEOMODE_SetCustomVerticalArea.c"
	.text
	.align	2
	.global	VIDEOMODE_SetCustomVerticalArea
	.syntax unified
	.arm
	.fpu softvfp
	.type	VIDEOMODE_SetCustomVerticalArea, %function
VIDEOMODE_SetCustomVerticalArea:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r0
	bhi	.L10
	ldr	r3, .L12+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r5, .L12+8
	cmp	r0, r3
	movcs	r0, r3
	ldr	r6, [r5]
	ldr	r4, .L12+12
	ldr	r3, .L12+16
	cmp	r6, r0
	ldr	r7, [r4]
	ldr	r3, [r3]
	bne	.L4
	cmp	r7, r3
	beq	.L5
.L4:
	str	r0, [r5]
	str	r3, [r4]
	bl	VIDEOMODE_Update
	cmp	r0, #0
	beq	.L11
.L5:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+24
	ldr	r0, [r3]
	bx	lr
.L11:
	ldr	r3, .L12+24
	str	r6, [r5]
	str	r7, [r4]
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	VIDEOMODE_MIN_VERTICAL_AREA
	.word	VIDEOMODE_MAX_VERTICAL_AREA
	.word	VIDEOMODE_custom_vertical_area
	.word	VIDEOMODE_vertical_area
	.word	VIDEOMODE_VERTICAL_CUSTOM
	.word	TRUE
	.word	FALSE
	.size	VIDEOMODE_SetCustomVerticalArea, .-VIDEOMODE_SetCustomVerticalArea
	.comm	VIDEOMODE_vertical_area,4,4
	.comm	VIDEOMODE_custom_vertical_area,4,4
	.comm	VIDEOMODE_VERTICAL_CUSTOM,4,4
	.comm	VIDEOMODE_MIN_VERTICAL_AREA,4,4
	.comm	VIDEOMODE_MAX_VERTICAL_AREA,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
