	.file	"extr_dsi.c_dsi_if_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dsi_if_enable(%d)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to set dsi_if_enable to %d\n"
	.text
	.p2align 4
	.type	dsi_if_enable, @function
dsi_if_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	DSSDBG@PLT
	test	ebx, ebx
	mov	esi, DWORD PTR DSI_CTRL[rip]
	mov	rdi, rbp
	setne	r12b
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, r12d
	call	REG_FLD_MOD@PLT
	mov	esi, DWORD PTR DSI_CTRL[rip]
	mov	ecx, r12d
	xor	edx, edx
	mov	rdi, rbp
	call	wait_for_bit_change@PLT
	mov	r8d, eax
	xor	eax, eax
	test	r8d, r8d
	je	.L7
	pop	rbx
	.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
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	DSSERR@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	dsi_if_enable, .-dsi_if_enable
	.comm	EIO,4,4
	.comm	DSI_CTRL,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_dsi.c_dsi_if_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dsi_if_enable(%d)\012\000"
	.align	2
.LC1:
	.ascii	"Failed to set dsi_if_enable to %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsi_if_enable, %function
dsi_if_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	subs	r4, r1, #0
	movne	r4, #1
	mov	r5, #0
	mov	r6, r0
	ldr	r7, .L7
	sub	sp, sp, #12
	ldr	r0, .L7+4
	bl	DSSDBG
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [r7]
	mov	r0, r6
	str	r5, [sp]
	bl	REG_FLD_MOD
	mov	r3, r4
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r7]
	bl	wait_for_bit_change
	cmp	r0, r5
	movne	r0, r5
	beq	.L6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r1, r4
	ldr	r0, .L7+8
	bl	DSSERR
	ldr	r3, .L7+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	DSI_CTRL
	.word	.LC0
	.word	.LC1
	.word	EIO
	.size	dsi_if_enable, .-dsi_if_enable
	.comm	EIO,4,4
	.comm	DSI_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
