	.file	"extr_mdfld_dsi_dpi.c_mdfld_mipi_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mdfld_mipi_config, @function
mdfld_mipi_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR [rdi]
	xor	edi, edi
	test	esi, esi
	je	.L2
	call	MIPI_PORT_CONTROL@PLT
	mov	esi, 2
	mov	edi, eax
	call	REG_WRITE@PLT
	mov	edi, 2
	call	MIPI_PORT_CONTROL@PLT
	mov	esi, -2147483648
	mov	edi, eax
	call	REG_WRITE@PLT
.L3:
	mov	edi, ebp
	or	bh, 2
	call	MIPI_DPHY_PARAM_REG@PLT
	mov	esi, 353001487
	mov	edi, eax
	call	REG_WRITE@PLT
	mov	edi, ebp
	call	MIPI_VIDEO_MODE_FORMAT_REG@PLT
	mov	esi, 15
	mov	edi, eax
	call	REG_WRITE@PLT
	mov	edi, ebp
	call	MIPI_DSI_FUNC_PRG_REG@PLT
	mov	esi, ebx
	mov	edi, eax
	call	REG_WRITE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mdfld_mipi_set_video_timing@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	MIPI_PORT_CONTROL@PLT
	mov	esi, -2147418112
	mov	edi, eax
	call	REG_WRITE@PLT
	mov	edi, 2
	call	MIPI_PORT_CONTROL@PLT
	xor	esi, esi
	mov	edi, eax
	call	REG_WRITE@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mdfld_mipi_config, .-mdfld_mipi_config
	.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_mdfld_dsi_dpi.c_mdfld_mipi_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdfld_mipi_config, %function
mdfld_mipi_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	mov	r5, r0
	ldr	r6, [r0]
	beq	.L2
	mov	r0, #0
	bl	MIPI_PORT_CONTROL
	mov	r1, #2
	bl	REG_WRITE
	mov	r0, #2
	bl	MIPI_PORT_CONTROL
	mov	r1, #-2147483648
	bl	REG_WRITE
.L3:
	mov	r0, r4
	bl	MIPI_DPHY_PARAM_REG
	ldr	r1, .L6
	bl	REG_WRITE
	mov	r0, r4
	bl	MIPI_VIDEO_MODE_FORMAT_REG
	mov	r1, #15
	bl	REG_WRITE
	mov	r0, r4
	bl	MIPI_DSI_FUNC_PRG_REG
	orr	r1, r6, #512
	bl	REG_WRITE
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mdfld_mipi_set_video_timing
.L2:
	mov	r0, r4
	bl	MIPI_PORT_CONTROL
	ldr	r1, .L6+4
	bl	REG_WRITE
	mov	r0, #2
	bl	MIPI_PORT_CONTROL
	mov	r1, r4
	bl	REG_WRITE
	b	.L3
.L7:
	.align	2
.L6:
	.word	353001487
	.word	-2147418112
	.size	mdfld_mipi_config, .-mdfld_mipi_config
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
