	.file	"extr_dce_i2c_sw.c_dce_i2c_sw_engine_submit_payload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dce_i2c_sw_engine_submit_payload
	.type	dce_i2c_sw_engine_submit_payload, @function
dce_i2c_sw_engine_submit_payload:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 56
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR 12[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	jne	.L2
	mov	eax, DWORD PTR DCE_I2C_TRANSACTION_ACTION_I2C_READ_MOT[rip]
	test	edx, edx
	cmove	eax, DWORD PTR DCE_I2C_TRANSACTION_ACTION_I2C_READ[rip]
	mov	DWORD PTR 24[rsp], eax
.L5:
	mov	eax, DWORD PTR [rsi]
	xor	edx, edx
	add	eax, eax
	test	ecx, ecx
	sete	dl
	or	eax, edx
	cdqe
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 4[rsi]
	mov	rsi, rsp
	mov	QWORD PTR 8[rsp], rax
	call	dce_i2c_sw_engine_submit_channel_request@PLT
	mov	rax, QWORD PTR [rsp]
	xor	r8d, r8d
	cmp	rax, QWORD PTR I2C_CHANNEL_OPERATION_ENGINE_BUSY[rip]
	je	.L1
	xor	r8d, r8d
	cmp	QWORD PTR I2C_CHANNEL_OPERATION_FAILED[rip], rax
	setne	r8b
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	mov	eax, r8d
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR DCE_I2C_TRANSACTION_ACTION_I2C_WRITE_MOT[rip]
	test	edx, edx
	cmove	eax, DWORD PTR DCE_I2C_TRANSACTION_ACTION_I2C_WRITE[rip]
	mov	DWORD PTR 24[rsp], eax
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dce_i2c_sw_engine_submit_payload, .-dce_i2c_sw_engine_submit_payload
	.comm	I2C_CHANNEL_OPERATION_FAILED,8,8
	.comm	I2C_CHANNEL_OPERATION_ENGINE_BUSY,8,8
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE_MOT,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_READ_MOT,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_READ,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_dce_i2c_sw.c_dce_i2c_sw_engine_submit_payload.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dce_i2c_sw_engine_submit_payload
	.syntax unified
	.arm
	.fpu softvfp
	.type	dce_i2c_sw_engine_submit_payload, %function
dce_i2c_sw_engine_submit_payload:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, [r1, #12]
	ldr	ip, .L14
	sub	sp, sp, #28
	cmp	r3, #0
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bne	.L2
	cmp	r2, #0
	ldrne	r2, .L14+4
	ldreq	r2, .L14+8
	ldr	r2, [r2]
.L7:
	clz	r3, r3
	ldr	lr, [r1]
	lsr	r3, r3, #5
	orr	r3, r3, lr, lsl #1
	str	r2, [sp, #16]
	ldmib	r1, {r2, ip}
	mov	r1, sp
	stmib	sp, {r2, ip}
	str	r3, [sp, #12]
	bl	dce_i2c_sw_engine_submit_channel_request
	ldr	r2, .L14+12
	ldr	r3, [sp]
	ldr	r2, [r2]
	cmp	r3, r2
	moveq	r0, #0
	beq	.L1
	ldr	r2, .L14+16
	ldr	r0, [r2]
	subs	r0, r0, r3
	movne	r0, #1
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #28
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	cmp	r2, #0
	ldrne	r2, .L14+20
	ldreq	r2, .L14+24
	ldr	r2, [r2]
	b	.L7
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	DCE_I2C_TRANSACTION_ACTION_I2C_READ_MOT
	.word	DCE_I2C_TRANSACTION_ACTION_I2C_READ
	.word	I2C_CHANNEL_OPERATION_ENGINE_BUSY
	.word	I2C_CHANNEL_OPERATION_FAILED
	.word	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE_MOT
	.word	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE
	.size	dce_i2c_sw_engine_submit_payload, .-dce_i2c_sw_engine_submit_payload
	.comm	I2C_CHANNEL_OPERATION_FAILED,4,4
	.comm	I2C_CHANNEL_OPERATION_ENGINE_BUSY,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE_MOT,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_WRITE,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_READ_MOT,4,4
	.comm	DCE_I2C_TRANSACTION_ACTION_I2C_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
