	.file	"extr_ps3_syscons.c_ps3fb_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"video"
.LC1:
	.string	"ps3fb:mode:%d"
.LC2:
	.string	"hw.ps3fb.height"
.LC3:
	.string	"hw.ps3fb.width"
	.text
	.p2align 4
	.type	ps3fb_init, @function
ps3fb_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 24
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rax, ps3fb_softc[rip]
	lea	r12, 16[rsp]
	mov	DWORD PTR 12[rsp], 0
	mov	QWORD PTR [rdi], rax
	mov	rdi, r12
	movabs	rax, 4638564679712
	mov	QWORD PTR ps3fb_softc[rip+4], rax
	mov	DWORD PTR ps3fb_softc[rip+12], 1920
	call	bzero@PLT
	mov	edx, 24
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	TUNABLE_STR_FETCH@PLT
	lea	rdx, 12[rsp]
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	sscanf@PLT
	cmp	DWORD PTR 12[rsp], 13
	ja	.L2
	mov	eax, DWORD PTR 12[rsp]
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L10-.L4
	.long	.L10-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L9-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	movabs	rax, 8246337209520
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rsi, ps3fb_softc[rip+8]
	lea	rdi, .LC2[rip]
	call	TUNABLE_INT_FETCH@PLT
	lea	rsi, ps3fb_softc[rip+12]
	lea	rdi, .LC3[rip]
	call	TUNABLE_INT_FETCH@PLT
	mov	eax, DWORD PTR ps3fb_softc[rip+12]
	push	0
	.cfi_def_cfa_offset 88
	mov	r9d, 8
	push	255
	.cfi_def_cfa_offset 96
	mov	ecx, 16
	mov	edx, 255
	mov	esi, DWORD PTR COLOR_FORMAT_RGB[rip]
	sal	eax, 2
	mov	edi, DWORD PTR ps3fb_softc[rip+36]
	mov	r8d, 255
	mov	DWORD PTR ps3fb_softc[rip+32], 16
	mov	DWORD PTR ps3fb_softc[rip+16], eax
	imul	eax, DWORD PTR ps3fb_softc[rip+8]
	mov	DWORD PTR ps3fb_softc[rip+20], eax
	mov	eax, DWORD PTR ps3fb_softc[rip+40]
	or	eax, DWORD PTR FB_FLAG_NOWRITE[rip]
	mov	DWORD PTR ps3fb_softc[rip+40], eax
	movabs	rax, 1152921504606847008
	mov	QWORD PTR ps3fb_softc[rip+24], rax
	call	vt_generate_cons_palette@PLT
	mov	esi, DWORD PTR L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	mov	edi, DWORD PTR ps3fb_softc[rip]
	xor	r8d, r8d
	xor	edx, edx
	call	lv1_gpu_context_attribute@PLT
	mov	esi, DWORD PTR L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP[rip]
	xor	ecx, ecx
	xor	r9d, r9d
	mov	edi, DWORD PTR ps3fb_softc[rip]
	xor	r8d, r8d
	mov	edx, 1
	call	lv1_gpu_context_attribute@PLT
	mov	rdi, rbp
	call	vt_fb_init@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR CN_INTERNAL[rip]
	jne	.L14
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movabs	rax, 8246337209400
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	movabs	rax, 3092376453696
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	movabs	rax, 3092376453600
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	movabs	rax, 5497558139600
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movabs	rax, 5497558139904
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	movabs	rax, 4398046511872
	mov	QWORD PTR ps3fb_softc[rip+8], rax
	jmp	.L2
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ps3fb_init, .-ps3fb_init
	.comm	ps3fb_softc,44,32
	.comm	L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,4,4
	.comm	FB_FLAG_NOWRITE,4,4
	.comm	COLOR_FORMAT_RGB,4,4
	.comm	CN_INTERNAL,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_ps3_syscons.c_ps3fb_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"video\000"
	.align	2
.LC1:
	.ascii	"ps3fb:mode:%d\000"
	.align	2
.LC2:
	.ascii	"hw.ps3fb.height\000"
	.align	2
.LC3:
	.ascii	"hw.ps3fb.width\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ps3fb_init, %function
ps3fb_init:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #32
	mov	r6, r0
	mov	r0, #0
	mov	r3, #1920
	ldr	r4, .L15
	ldr	ip, .L15+4
	sub	sp, sp, #48
	ldr	r2, .L15+8
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	str	r4, [r6]
	str	r0, [sp, #16]
	str	r1, [r4, #4]
	add	r0, sp, #20
	mov	r1, #24
	str	r3, [r4, #12]
	str	r2, [r4, #8]
	bl	bzero
	mov	r2, #24
	add	r1, sp, #20
	ldr	r0, .L15+12
	bl	TUNABLE_STR_FETCH
	ldr	r1, .L15+16
	add	r0, sp, #20
	add	r2, sp, #16
	bl	sscanf
	ldr	r3, [sp, #16]
	sub	r3, r3, #1
	cmp	r3, #12
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L10
	.word	.L10
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L9
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r2, #1200
	mov	r3, #1920
	str	r2, [r4, #8]
	str	r3, [r4, #12]
.L2:
	ldr	r7, .L15+20
	ldr	r0, .L15+24
	mov	r1, r7
	bl	TUNABLE_INT_FETCH
	add	r1, r7, #4
	ldr	r0, .L15+28
	bl	TUNABLE_INT_FETCH
	mov	r0, #8
	mov	r5, #0
	mov	r2, #255
	mov	r8, #32
	mov	lr, #268435456
	mov	r3, #16
	ldr	r1, [r4, #12]
	str	r0, [sp, #4]
	ldr	ip, [r4, #8]
	ldr	r0, .L15+32
	str	r2, [sp, #8]
	str	r2, [sp]
	lsl	r1, r1, #2
	str	r5, [sp, #12]
	mul	ip, r1, ip
	str	r1, [r4, #16]
	ldr	r1, [r0]
	ldr	r0, [r4, #40]
	str	r8, [r4, #24]
	orr	r0, r0, r1
	ldr	r1, .L15+36
	ldr	r8, .L15+40
	ldr	r1, [r1]
	str	r0, [r4, #40]
	ldr	r0, [r4, #36]
	str	ip, [r4, #20]
	str	lr, [r4, #28]
	str	r3, [r4, #32]
	bl	vt_generate_cons_palette
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r3, r5
	mov	r2, r5
	ldr	r1, [r8]
	ldr	r0, [r7, #-8]
	bl	lv1_gpu_context_attribute
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r3, r5
	mov	r2, #1
	ldr	r1, [r8]
	ldr	r0, [r7, #-8]
	bl	lv1_gpu_context_attribute
	mov	r0, r6
	bl	vt_fb_init
	ldr	r3, .L15+44
	ldr	r0, [r3]
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r2, #1920
	ldr	r3, .L15+8
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	b	.L2
.L9:
	mov	r2, #576
	mov	r3, #720
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	b	.L2
.L10:
	mov	r2, #480
	mov	r3, #720
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	b	.L2
.L8:
	mov	r2, #720
	mov	r3, #1280
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	b	.L2
.L5:
	mov	r2, #1024
	mov	r3, #1280
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	b	.L2
.L6:
	mov	r2, #768
	mov	r3, #1024
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	ps3fb_softc
	.word	.LC4
	.word	1080
	.word	.LC0
	.word	.LC1
	.word	ps3fb_softc+8
	.word	.LC2
	.word	.LC3
	.word	FB_FLAG_NOWRITE
	.word	COLOR_FORMAT_RGB
	.word	L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP
	.word	CN_INTERNAL
	.size	ps3fb_init, .-ps3fb_init
	.comm	ps3fb_softc,44,4
	.comm	L1GPU_CONTEXT_ATTRIBUTE_DISPLAY_FLIP,4,4
	.comm	FB_FLAG_NOWRITE,4,4
	.comm	COLOR_FORMAT_RGB,4,4
	.comm	CN_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
