	.file	"extr_ps3fb.c_ps3fb_cmp_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ps3fb_cmp_mode, @function
ps3fb_cmp_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR [rsi]
	cmp	rdi, QWORD PTR [rbx]
	jg	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	rbp, rsi
	cmp	QWORD PTR 8[rsi], rax
	jg	.L4
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR 16[rsi], rax
	jg	.L4
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR 24[rsi], rax
	jg	.L4
	mov	rax, QWORD PTR 32[rbx]
	cmp	QWORD PTR 32[rsi], rax
	jg	.L4
	mov	eax, DWORD PTR 40[rsi]
	and	eax, DWORD PTR FB_VMODE_MASK[rip]
	cmp	eax, DWORD PTR 40[rbx]
	jne	.L4
	mov	esi, 1
	call	max@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, 1
	mov	r14, rax
	call	max@PLT
	mov	esi, DWORD PTR 44[rbx]
	mov	rdi, QWORD PTR 48[rbp]
	mov	r13, rax
	call	max@PLT
	mov	esi, DWORD PTR 48[rbx]
	mov	rdi, QWORD PTR 56[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	max@PLT
	mov	esi, DWORD PTR 52[rbx]
	mov	rdi, QWORD PTR 64[rbp]
	mov	r15, rax
	call	max@PLT
	mov	esi, DWORD PTR 56[rbx]
	mov	rdi, QWORD PTR 72[rbp]
	mov	r12, rax
	call	max@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR 44[rbx]
	mov	edx, DWORD PTR 48[rbx]
	add	rsi, rdi
	add	rsi, rdx
	mov	rdx, QWORD PTR 8[rsp]
	add	rdx, r14
	add	rdx, r15
	sub	rsi, rdx
	js	.L4
	mov	r8, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR 52[rbx]
	add	r12, r13
	mov	r9d, DWORD PTR 56[rbx]
	add	rax, r12
	add	rdx, r8
	add	rdx, r9
	sub	rdx, rax
	js	.L4
	xor	eax, eax
	or	rsi, rdx
	je	.L1
	sub	rdi, r14
	sub	r8, r13
	mov	eax, edi
	imul	eax, r8d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ps3fb_cmp_mode, .-ps3fb_cmp_mode
	.comm	FB_VMODE_MASK,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_ps3fb.c_ps3fb_cmp_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps3fb_cmp_mode, %function
ps3fb_cmp_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r1]
	cmp	r0, r3
	bgt	.L4
	ldr	r2, [r1, #4]
	ldr	r3, [r4, #4]
	mov	r5, r1
	cmp	r2, r3
	bgt	.L4
	ldr	r2, [r1, #8]
	ldr	r3, [r4, #8]
	cmp	r2, r3
	bgt	.L4
	ldr	r2, [r1, #12]
	ldr	r3, [r4, #12]
	cmp	r2, r3
	bgt	.L4
	ldr	r2, [r1, #16]
	ldr	r3, [r4, #16]
	cmp	r2, r3
	bgt	.L4
	ldr	r2, .L10
	ldr	r3, [r1, #20]
	ldr	r1, [r2]
	ldr	r2, [r4, #20]
	and	r3, r3, r1
	cmp	r3, r2
	bne	.L4
	mov	r1, #1
	bl	max
	mov	r1, #1
	mov	r7, r0
	ldr	r0, [r5, #4]
	bl	max
	ldr	r1, [r4, #24]
	mov	r8, r0
	ldr	r0, [r5, #24]
	bl	max
	ldr	r1, [r4, #28]
	mov	r6, r0
	ldr	r0, [r5, #28]
	bl	max
	ldr	r1, [r4, #32]
	mov	r9, r0
	ldr	r0, [r5, #32]
	bl	max
	mov	r3, r0
	ldr	r1, [r4, #36]
	ldr	r0, [r5, #36]
	mov	r5, r3
	bl	max
	ldr	ip, [r4]
	ldr	r1, [r4, #24]
	ldr	r3, [r4, #28]
	add	r6, r7, r6
	add	r1, ip, r1
	add	r2, r6, r9
	add	r1, r1, r3
	subs	r1, r1, r2
	bmi	.L4
	ldr	lr, [r4, #4]
	ldr	r2, [r4, #32]
	ldr	r3, [r4, #36]
	add	r5, r8, r5
	add	r2, lr, r2
	add	r0, r5, r0
	add	r3, r2, r3
	subs	r3, r3, r0
	bmi	.L4
	orrs	r0, r1, r3
	subne	r3, ip, r7
	subne	r1, lr, r8
	mulne	r0, r1, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	FB_VMODE_MASK
	.size	ps3fb_cmp_mode, .-ps3fb_cmp_mode
	.comm	FB_VMODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
