	.file	"extr_scx200_acb.c_scx200_acb_smbus_xfer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"zero length read\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"size=%d, address=0x%x, command=0x%x, len=%d, read=%d\n"
	.text
	.p2align 4
	.type	scx200_acb_smbus_xfer, @function
scx200_acb_smbus_xfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 112[rsp]
	mov	DWORD PTR 28[rsp], r8d
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	i2c_get_adapdata@PLT
	mov	r14, rax
	lea	eax, -128[rbp]
	cmp	eax, 4
	ja	.L38
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	movsx	r13d, r12b
	xor	r9d, r9d
	mov	edx, 129
	push	r13
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 44[rsp]
	xor	eax, eax
	mov	ecx, ebx
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	dev_dbg@PLT
	cmp	BYTE PTR I2C_SMBUS_READ[rip], r12b
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	je	.L20
	mov	QWORD PTR 8[rsp], 0
	xor	r9d, r9d
.L19:
	lea	r15, 32[r14]
	mov	DWORD PTR 24[rsp], r9d
	add	ebx, ebx
	mov	rdi, r15
	or	r13d, ebx
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR [r14], r13d
	mov	r9d, DWORD PTR 24[rsp]
	mov	r13d, DWORD PTR ACBCTL1[rip]
	mov	QWORD PTR 40[r14], 0
	mov	DWORD PTR 4[r14], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 16[r14], r9d
	mov	edi, r13d
	mov	QWORD PTR 8[r14], rax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR 20[r14], eax
	call	inb@PLT
	or	eax, DWORD PTR ACBCTL1_START[rip]
	mov	esi, r13d
	mov	edi, eax
	call	outb@PLT
	cmp	ebp, 129
	je	.L24
	mov	rax, QWORD PTR state_address[rip]
	cmp	ebp, 132
	je	.L24
.L17:
	cmp	QWORD PTR state_idle[rip], rax
	mov	QWORD PTR 24[r14], rax
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r14
	call	scx200_acb_poll@PLT
	mov	rax, QWORD PTR state_idle[rip]
	cmp	QWORD PTR 24[r14], rax
	jne	.L15
.L16:
	cmp	QWORD PTR 40[r14], 0
	jne	.L40
.L18:
	mov	r13d, DWORD PTR 20[r14]
	mov	rdi, r15
	call	mutex_unlock@PLT
	test	r13d, r13d
	jne	.L1
	cmp	ebp, 128
	jne	.L1
	cmp	BYTE PTR I2C_SMBUS_READ[rip], r12b
	je	.L41
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	r9d, 1
	mov	QWORD PTR 8[rsp], rax
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	movsx	r13d, r12b
	mov	ecx, ebx
	mov	edx, ebp
	push	r13
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 44[rsp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	rdi, r15
	mov	DWORD PTR 40[rsp], r9d
	call	dev_dbg@PLT
	pop	rcx
	.cfi_def_cfa_offset 120
	pop	rsi
	.cfi_def_cfa_offset 112
	mov	r9d, DWORD PTR 24[rsp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rax, QWORD PTR state_quick[rip]
	jmp	.L17
.L20:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dev_dbg@PLT
.L38:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r14
	call	scx200_acb_reset@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_le16@PLT
	mov	r9d, 2
	mov	DWORD PTR 36[rsp], eax
	lea	rax, 36[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	test	r12b, r12b
	jne	.L5
	lea	rax, 28[rsp]
	mov	r9d, 1
	mov	QWORD PTR 8[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	mov	r9d, DWORD PTR [rax]
	test	r9d, r9d
	je	.L38
	add	rax, 4
	cmp	DWORD PTR I2C_SMBUS_BLOCK_MAX[rip], r9d
	mov	QWORD PTR 8[rsp], rax
	jge	.L9
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR 36[rsp]
	call	le16_to_cpu@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scx200_acb_smbus_xfer, .-scx200_acb_smbus_xfer
	.comm	state_quick,8,8
	.comm	state_idle,8,8
	.comm	state_address,8,8
	.comm	I2C_SMBUS_READ,1,1
	.comm	I2C_SMBUS_BLOCK_MAX,4,4
	.comm	EINVAL,4,4
	.comm	ACBCTL1_START,4,4
	.comm	ACBCTL1,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_scx200_acb.c_scx200_acb_smbus_xfer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"zero length read\012\000"
	.align	2
.LC1:
	.ascii	"size=%d, address=0x%x, command=0x%x, len=%d, read=%"
	.ascii	"d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scx200_acb_smbus_xfer, %function
scx200_acb_smbus_xfer:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	ldr	r3, .L40
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [sp, #68]
	mov	r5, r1
	mov	r8, r0
	ldr	r9, [sp, #72]
	bl	i2c_get_adapdata
	sub	r3, r7, #128
	mov	r4, r0
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	mov	r10, #0
	ldr	r3, [sp, #64]
	mov	r2, #129
	stm	sp, {r3, r10}
	mov	r0, r8
	mov	r3, r5
	ldr	r1, .L40+4
	str	r6, [sp, #8]
	bl	dev_dbg
	ldr	r3, .L40+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	beq	.L19
	mov	fp, r10
.L18:
	add	r8, r4, #24
	mov	r0, r8
	bl	mutex_lock
	mov	r0, #0
	ldr	r3, .L40+12
	orr	r5, r6, r5, lsl #1
	ldr	r3, [r3]
	ldr	r2, [sp, #64]
	str	r5, [r4]
	ldr	r5, .L40+16
	rsb	r3, r3, #0
	str	r3, [r4, #16]
	str	r0, [r4, #28]
	str	r2, [r4, #4]
	ldr	r0, [r5]
	str	r10, [r4, #8]
	str	fp, [r4, #12]
	bl	inb
	ldr	r3, .L40+20
	ldr	r1, [r5]
	ldr	r3, [r3]
	orr	r0, r0, r3
	bl	outb
	cmp	r7, #132
	cmpne	r7, #129
	bne	.L13
	ldr	r3, .L40+24
	ldr	r3, [r3]
.L16:
	ldr	r5, .L40+28
	str	r3, [r4, #20]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L15
.L14:
	mov	r0, r4
	bl	scx200_acb_poll
	ldr	r1, [r4, #20]
	ldr	r2, [r5]
	cmp	r1, r2
	bne	.L14
.L15:
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L37
.L17:
	ldr	r4, [r4, #16]
	mov	r0, r8
	bl	mutex_unlock
	cmp	r4, #0
	cmpeq	r7, #128
	bne	.L1
	ldr	r3, .L40+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, r6
	movne	r4, #0
	beq	.L38
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	cmp	r6, #0
	moveq	fp, #1
	addeq	r10, sp, #64
	beq	.L9
.L5:
	mov	r10, r9
	mov	fp, #1
.L9:
	ldr	r3, [sp, #64]
	mov	r0, r8
	str	r3, [sp]
	mov	r2, r7
	mov	r3, r5
	ldr	r1, .L40+4
	str	r6, [sp, #8]
	str	fp, [sp, #4]
	bl	dev_dbg
	b	.L18
.L13:
	ldr	r3, .L40+32
	ldr	r3, [r3]
	b	.L16
.L37:
	mov	r0, r4
	bl	scx200_acb_reset
	b	.L17
.L8:
	ldr	r0, [r9]
	bl	cpu_to_le16
	mov	fp, #2
	add	r10, sp, #16
	str	r0, [sp, #16]
	b	.L9
.L6:
	ldr	r10, [r9]
	ldr	fp, [r10]
	cmp	fp, #0
	beq	.L35
	ldr	r3, .L40+36
	ldr	r3, [r3]
	cmp	r3, fp
	addge	r10, r10, #4
	bge	.L9
.L35:
	ldr	r3, .L40+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L38:
	ldr	r0, [sp, #16]
	bl	le16_to_cpu
	mov	r4, #0
	str	r0, [r9]
	b	.L1
.L19:
	mov	r0, r8
	ldr	r1, .L40+40
	bl	dev_dbg
	b	.L35
.L39:
	bl	__stack_chk_fail
.L41:
	.align	2
.L40:
	.word	.LC2
	.word	.LC1
	.word	I2C_SMBUS_READ
	.word	EINVAL
	.word	ACBCTL1
	.word	ACBCTL1_START
	.word	state_quick
	.word	state_idle
	.word	state_address
	.word	I2C_SMBUS_BLOCK_MAX
	.word	.LC0
	.size	scx200_acb_smbus_xfer, .-scx200_acb_smbus_xfer
	.comm	state_quick,4,4
	.comm	state_idle,4,4
	.comm	state_address,4,4
	.comm	I2C_SMBUS_READ,1,1
	.comm	I2C_SMBUS_BLOCK_MAX,4,4
	.comm	EINVAL,4,4
	.comm	ACBCTL1_START,4,4
	.comm	ACBCTL1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
