	.file	"extr_sis_main.c_sisfb_getheapstart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sisfb_getheapstart, @function
sisfb_getheapstart:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	mov	esi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR SIS_300_VGA[rip]
	mov	ecx, esi
	sal	edx, 10
	sub	ecx, DWORD PTR 8[rdi]
	sub	ecx, DWORD PTR 12[rdi]
	cmp	QWORD PTR 16[rdi], rax
	je	.L11
	cmp	QWORD PTR 40[rdi], 0
	jne	.L12
.L4:
	lea	eax, -32768[rcx]
.L3:
	test	edx, edx
	je	.L1
	cmp	edx, ecx
	jg	.L1
	cmp	QWORD PTR 24[rdi], 0
	cmove	eax, edx
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	cmp	QWORD PTR 32[rdi], 0
	je	.L4
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, 12582912
	cmp	esi, 16777216
	jg	.L3
	cmp	esi, 8388608
	mov	eax, 8388608
	mov	esi, 4194304
	cmovle	eax, esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sisfb_getheapstart, .-sisfb_getheapstart
	.comm	SIS_300_VGA,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_sis_main.c_sisfb_getheapstart.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sisfb_getheapstart, %function
sisfb_getheapstart:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	ldr	r1, .L16
	str	lr, [sp, #-4]!
	ldr	r1, [r1]
	ldr	lr, [r2, #16]
	ldr	r0, [r0, #4]
	ldr	r3, [r2, #8]
	ldr	ip, [r2, #12]
	cmp	lr, r1
	ldr	r1, [r2]
	sub	r3, r0, r3
	sub	r3, r3, ip
	lsl	r1, r1, #10
	beq	.L14
	ldr	r0, [r2, #28]
	cmp	r0, #0
	bne	.L15
.L4:
	sub	r0, r3, #32768
.L3:
	cmp	r1, r3
	movle	r3, #0
	movgt	r3, #1
	cmp	r1, #0
	moveq	r3, #1
	cmp	r3, #0
	ldrne	pc, [sp], #4
	ldr	r3, [r2, #20]
	cmp	r3, #0
	moveq	r0, r1
	ldr	pc, [sp], #4
.L15:
	ldr	r0, [r2, #24]
	cmp	r0, #0
	beq	.L4
	mov	r0, #0
	ldr	pc, [sp], #4
.L14:
	cmp	r0, #16777216
	movgt	r0, #12582912
	bgt	.L3
	cmp	r0, #8388608
	movgt	r0, #8388608
	movle	r0, #4194304
	b	.L3
.L17:
	.align	2
.L16:
	.word	SIS_300_VGA
	.size	sisfb_getheapstart, .-sisfb_getheapstart
	.comm	SIS_300_VGA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
