	.file	"extr_terasic_mtl_vt.c_terasic_mtl_fbd_panel_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"panel-size"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"rejecting invalid panel params width=%u height=%u\n"
	.text
	.p2align 4
	.type	terasic_mtl_fbd_panel_info, @function
terasic_mtl_fbd_panel_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ofw_bus_get_node@PLT
	cmp	eax, -1
	je	.L11
	lea	rsi, .LC0[rip]
	mov	edi, eax
	mov	ebp, eax
	call	OF_getproplen@PLT
	cmp	eax, 16
	je	.L4
.L11:
	mov	eax, DWORD PTR ENXIO[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L4:
	.cfi_restore_state
	mov	rdx, rsp
	mov	ecx, 16
	lea	rsi, .LC0[rip]
	mov	edi, ebp
	call	OF_getencprop@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	movabs	rax, 137438953504
	cmp	edx, DWORD PTR TERASIC_MTL_FB_WIDTH[rip]
	mov	QWORD PTR 4[r12], rax
	lea	esi, 0[0+rdx*4]
	mov	DWORD PTR [r12], edx
	mov	QWORD PTR 16[r12], rcx
	mov	DWORD PTR 12[r12], esi
	jne	.L5
	cmp	QWORD PTR TERASIC_MTL_FB_HEIGHT[rip], rcx
	jne	.L5
	xor	eax, eax
	cmp	esi, 3200
	je	.L1
.L5:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	terasic_mtl_fbd_panel_info, .-terasic_mtl_fbd_panel_info
	.comm	TERASIC_MTL_FB_WIDTH,4,4
	.comm	TERASIC_MTL_FB_HEIGHT,8,8
	.comm	ENXIO,4,4
	.comm	EINVAL,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_terasic_mtl_vt.c_terasic_mtl_fbd_panel_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"panel-size\000"
	.align	2
.LC1:
	.ascii	"rejecting invalid panel params width=%u height=%u\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	terasic_mtl_fbd_panel_info, %function
terasic_mtl_fbd_panel_info:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	ofw_bus_get_node
	cmn	r0, #1
	beq	.L9
	ldr	r1, .L12+4
	mov	r4, r0
	bl	OF_getproplen
	cmp	r0, #8
	beq	.L4
.L9:
	ldr	r3, .L12+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r3, r0
	ldr	r1, .L12+4
	add	r2, sp, #4
	mov	r0, r4
	bl	OF_getencprop
	mov	r0, #32
	ldr	r3, .L12+12
	ldr	r2, [sp, #4]
	ldr	r1, [r3]
	ldr	r3, [sp, #8]
	cmp	r2, r1
	lsl	r1, r2, #2
	str	r2, [r6]
	str	r1, [r6, #12]
	str	r0, [r6, #8]
	str	r0, [r6, #4]
	str	r3, [r6, #16]
	bne	.L5
	ldr	r0, .L12+16
	ldr	r0, [r0]
	cmp	r1, #3200
	cmpeq	r0, r3
	movne	r0, #1
	moveq	r0, #0
	beq	.L1
.L5:
	ldr	r0, [r5]
	ldr	r1, .L12+20
	bl	device_printf
	ldr	r3, .L12+24
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	ENXIO
	.word	TERASIC_MTL_FB_WIDTH
	.word	TERASIC_MTL_FB_HEIGHT
	.word	.LC1
	.word	EINVAL
	.size	terasic_mtl_fbd_panel_info, .-terasic_mtl_fbd_panel_info
	.comm	TERASIC_MTL_FB_WIDTH,4,4
	.comm	TERASIC_MTL_FB_HEIGHT,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
