	.file	"244917.c"
	.intel_syntax noprefix
	.text
	.globl	expectedwidth
	.data
	.align 4
	.type	expectedwidth, @object
	.size	expectedwidth, 4
expectedwidth:
	.long	50
	.globl	global_vramPtr
	.align 8
	.type	global_vramPtr, @object
	.size	global_vramPtr, 8
global_vramPtr:
	.quad	40960
	.globl	global_bounds
	.align 8
	.type	global_bounds, @object
	.size	global_bounds, 8
global_bounds:
	.value	100
	.value	150
	.value	100
	.value	150
	.globl	global_saveRect
	.align 8
	.type	global_saveRect, @object
	.size	global_saveRect, 8
global_saveRect:
	.value	75
	.value	175
	.value	75
	.value	175
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR global_saveRect[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR global_bounds[rip]
	mov	QWORD PTR -8[rbp], rax
	movzx	edx, WORD PTR -16[rbp]
	movzx	eax, WORD PTR -8[rbp]
	cmp	dx, ax
	jge	.L2
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR -16[rbp], ax
.L2:
	movzx	edx, WORD PTR -14[rbp]
	movzx	eax, WORD PTR -6[rbp]
	cmp	dx, ax
	jle	.L3
	movzx	eax, WORD PTR -6[rbp]
	mov	WORD PTR -14[rbp], ax
.L3:
	mov	rcx, QWORD PTR global_vramPtr[rip]
	movzx	eax, WORD PTR -12[rbp]
	cwde
	movzx	edx, WORD PTR -4[rbp]
	movsx	edx, dx
	sub	eax, edx
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	movzx	eax, WORD PTR -14[rbp]
	cwde
	movzx	edx, WORD PTR -16[rbp]
	movsx	edx, dx
	sub	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR expectedwidth[rip]
	cmp	DWORD PTR -28[rbp], eax
	je	.L4
	call	abort@PLT
.L4:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"244917.c"
	.text
	.global	expectedwidth
	.data
	.align	2
	.type	expectedwidth, %object
	.size	expectedwidth, 4
expectedwidth:
	.word	50
	.global	global_vramPtr
	.align	2
	.type	global_vramPtr, %object
	.size	global_vramPtr, 4
global_vramPtr:
	.word	40960
	.global	global_bounds
	.align	2
	.type	global_bounds, %object
	.size	global_bounds, 8
global_bounds:
	.short	100
	.short	150
	.short	100
	.short	150
	.global	global_saveRect
	.align	2
	.type	global_saveRect, %object
	.size	global_saveRect, 8
global_saveRect:
	.short	75
	.short	175
	.short	75
	.short	175
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r2, .L5
	sub	r3, fp, #20
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L5+4
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldrsh	r2, [fp, #-20]
	ldrsh	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L2
	ldrsh	r3, [fp, #-12]
	strh	r3, [fp, #-20]	@ movhi
.L2:
	ldrsh	r2, [fp, #-18]
	ldrsh	r3, [fp, #-10]
	cmp	r2, r3
	ble	.L3
	ldrsh	r3, [fp, #-10]
	strh	r3, [fp, #-18]	@ movhi
.L3:
	ldr	r3, .L5+8
	ldr	r2, [r3]
	ldrsh	r3, [fp, #-16]
	mov	r1, r3
	ldrsh	r3, [fp, #-8]
	sub	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldrsh	r3, [fp, #-18]
	mov	r2, r3
	ldrsh	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L4
	bl	abort
.L4:
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	global_saveRect
	.word	global_bounds
	.word	global_vramPtr
	.word	expectedwidth
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
