	.file	"extr_i2c-digicolor.c_dc_i2c_xfer_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc_i2c_xfer_msg, @function
dc_i2c_xfer_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	r15, 16[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR TIMEOUT_MS[rip]
	call	msecs_to_jiffies@PLT
	xor	r8d, r8d
	mov	rdi, r15
	mov	rsi, r8
	mov	rbp, rax
	call	spin_lock_irqsave@PLT
	mov	DWORD PTR [rbx], r13d
	lea	r13, 12[rbx]
	mov	QWORD PTR 32[rbx], r14
	mov	rdi, r13
	mov	QWORD PTR 24[rbx], 0
	mov	DWORD PTR 4[rbx], 0
	call	reinit_completion@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	dc_i2c_set_irq@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	dc_i2c_start_msg@PLT
	xor	r8d, r8d
	mov	rdi, r15
	mov	rsi, r8
	call	spin_unlock_irqrestore@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	wait_for_completion_timeout@PLT
	xor	esi, esi
	mov	rdi, rbx
	mov	rbp, rax
	call	dc_i2c_set_irq@PLT
	test	rbp, rbp
	je	.L6
	mov	eax, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR STATE_IDLE[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dc_i2c_xfer_msg, .-dc_i2c_xfer_msg
	.comm	TIMEOUT_MS,4,4
	.comm	STATE_IDLE,4,4
	.comm	ETIMEDOUT,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_i2c-digicolor.c_dc_i2c_xfer_msg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc_i2c_xfer_msg, %function
dc_i2c_xfer_msg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L6
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [ip]
	mov	r7, r2
	mov	r9, r1
	mov	r8, r3
	bl	msecs_to_jiffies
	mov	fp, #0
	mov	r5, r0
	add	r3, r4, #16
	mov	r0, r3
	mov	r1, fp
	add	r10, r4, #12
	str	r3, [sp, #4]
	bl	spin_lock_irqsave
	mov	r0, r10
	str	r9, [r4, #24]
	str	r8, [r4]
	str	fp, [r4, #20]
	str	fp, [r4, #4]
	bl	reinit_completion
	mov	r0, r4
	mov	r1, #1
	bl	dc_i2c_set_irq
	mov	r1, r7
	mov	r0, r4
	bl	dc_i2c_start_msg
	ldr	r3, [sp, #4]
	mov	r1, fp
	mov	r0, r3
	bl	spin_unlock_irqrestore
	mov	r1, r5
	mov	r0, r10
	bl	wait_for_completion_timeout
	mov	r5, r0
	mov	r1, fp
	mov	r0, r4
	bl	dc_i2c_set_irq
	cmp	r5, fp
	ldreq	r2, .L6+4
	ldreq	r3, .L6+8
	ldreq	r0, [r2]
	ldreq	r3, [r3]
	ldrne	r0, [r4, #4]
	rsbeq	r0, r0, #0
	streq	r3, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	.align	2
.L6:
	.word	TIMEOUT_MS
	.word	ETIMEDOUT
	.word	STATE_IDLE
	.size	dc_i2c_xfer_msg, .-dc_i2c_xfer_msg
	.comm	TIMEOUT_MS,4,4
	.comm	STATE_IDLE,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
