	.file	"extr_dsi.c_dsi_configure_pins.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dsi_configure_pins, @function
dsi_configure_pins:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	to_dsi_data@PLT
	mov	rsi, rsp
	mov	rbx, rax
	movsx	rax, DWORD PTR DSI_MAX_NR_LANES[rip]
	mov	rdx, rax
	sal	rax, 4
	mov	rcx, rax
	and	rcx, -4096
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L24
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L25
	mov	r8d, DWORD PTR [r12]
	mov	r11, rsp
	cmp	r8d, 3
	jle	.L12
.L29:
	mov	eax, DWORD PTR [rbx]
	lea	esi, [rax+rax]
	cmp	esi, r8d
	jl	.L12
	test	r8b, 1
	jne	.L12
	mov	r9, QWORD PTR 8[r12]
	test	edx, edx
	jle	.L7
	sub	edx, 1
	mov	ecx, DWORD PTR DSI_LANE_UNUSED[rip]
	mov	rax, r11
	add	rdx, 1
	sal	rdx, 4
	add	rdx, r11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rax], ecx
	add	rax, 16
	cmp	rdx, rax
	jne	.L9
.L7:
	sub	r8d, 1
	xor	edx, edx
	lea	r12, functions.1950[rip]
	shr	r8d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L27:
	lea	r13d, -1[rax]
	cmp	r13d, r10d
	jne	.L12
	mov	r10d, 1
.L14:
	sar	eax
	sar	ecx
	lea	r13d, 1[rdi]
	cdqe
	movsx	rcx, ecx
	mov	ecx, DWORD PTR [r12+rcx*4]
	sal	rax, 4
	add	rax, r11
	mov	DWORD PTR [rax], ecx
	mov	QWORD PTR 8[rax], r10
	lea	rax, 1[rdx]
	cmp	r8, rdx
	je	.L26
	mov	rdx, rax
.L15:
	mov	eax, DWORD PTR [r9+rdx*8]
	mov	r10d, DWORD PTR 4[r9+rdx*8]
	mov	edi, edx
	lea	ecx, [rdx+rdx]
	cmp	esi, eax
	jle	.L12
	test	eax, eax
	js	.L12
	test	r10d, r10d
	js	.L12
	cmp	esi, r10d
	jle	.L12
	test	al, 1
	jne	.L27
	lea	r13d, 1[rax]
	cmp	r13d, r10d
	jne	.L12
	xor	r10d, r10d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rax], 0
	mov	r8d, DWORD PTR [r12]
	mov	r11, rsp
	cmp	r8d, 3
	jg	.L29
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, 4
	mov	rsi, r11
	call	memcpy@PLT
	mov	DWORD PTR 4[rbx], r13d
	xor	eax, eax
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsi_configure_pins, .-dsi_configure_pins
	.section	.rodata
	.align 16
	.type	functions.1950, @object
	.size	functions.1950, 20
functions.1950:
	.long	132
	.long	131
	.long	130
	.long	129
	.long	128
	.comm	EINVAL,4,4
	.comm	DSI_MAX_NR_LANES,4,4
	.comm	DSI_LANE_UNUSED,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_configure_pins.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsi_configure_pins, %function
dsi_configure_pins:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L20
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	to_dsi_data
	ldr	r3, .L20+4
	ldr	r2, [r6]
	ldr	r4, [r3]
	mov	r3, sp
	cmp	r2, #3
	sub	r3, r3, r4, lsl #3
	mov	sp, r3
	ble	.L8
	ldr	ip, [r0]
	mov	r5, r0
	cmp	r2, ip, lsl #1
	lsl	ip, ip, #1
	bgt	.L8
	ands	r3, r2, #1
	bne	.L8
	cmp	r4, #0
	mov	r0, sp
	ldr	lr, [r6, #4]
	ble	.L4
	ldr	r1, .L20+8
	ldr	r1, [r1]
.L6:
	str	r1, [r0, r3, lsl #3]
	add	r3, r3, #1
	cmp	r4, r3
	bne	.L6
.L4:
	sub	r1, r2, #1
	lsr	r1, r1, #1
	mov	r4, #0
	ldr	r7, .L20+12
	add	r1, r1, #1
	add	r8, lr, #4
	b	.L11
.L18:
	sub	r9, r3, #1
	cmp	r9, r2
	bne	.L8
	mov	r2, #1
.L10:
	ldr	r9, [r7, r6, lsl #1]
	asr	r3, r3, #1
	add	r4, r4, #1
	add	r6, r0, r3, lsl #3
	cmp	r4, r1
	str	r9, [r0, r3, lsl #3]
	str	r2, [r6, #4]
	beq	.L17
.L11:
	ldr	r3, [lr, r4, lsl #3]
	lsl	r6, r4, #1
	cmp	ip, r3
	movgt	r2, #0
	movle	r2, #1
	orrs	r2, r2, r3, lsr #31
	ldr	r2, [r8, r4, lsl #3]
	bne	.L8
	cmp	ip, r2
	movgt	r9, #0
	movle	r9, #1
	orrs	r9, r9, r2, lsr #31
	bne	.L8
	ands	r9, r3, #1
	bne	.L18
	add	r10, r3, #1
	cmp	r10, r2
	moveq	r2, r9
	beq	.L10
.L8:
	ldr	r3, .L20+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r1, r0
	mov	r2, #4
	ldr	r0, [r5, #8]
	bl	memcpy
	mov	r0, #0
	str	r4, [r5, #4]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	DSI_MAX_NR_LANES
	.word	DSI_LANE_UNUSED
	.word	.LANCHOR0
	.word	EINVAL
	.size	dsi_configure_pins, .-dsi_configure_pins
	.comm	EINVAL,4,4
	.comm	DSI_MAX_NR_LANES,4,4
	.comm	DSI_LANE_UNUSED,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	functions.4234, %object
	.size	functions.4234, 20
functions.4234:
	.word	132
	.word	131
	.word	130
	.word	129
	.word	128
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
