	.file	"extr_i2c-ali1563.c_ali1563_block_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Transaction Never Finished "
.LC1:
	.string	"Device Error "
.LC2:
	.string	""
.LC3:
	.string	"No response or Bus Collision "
.LC4:
	.string	"Transaction Failed "
.LC5:
	.string	"Timeout "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"Block (pre): STS=%02x, CNTL1=%02x, CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n"
	.align 8
.LC7:
	.string	"ali1563: Trying to reset busy device\n"
	.align 8
.LC8:
	.string	"Block (post): STS=%02x, CNTL1=%02x, CNTL2=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\n"
	.section	.rodata.str1.1
.LC9:
	.string	"SMBus Error: %s%s%s%s%s\n"
	.text
	.p2align 4
	.type	ali1563_block_start, @function
ali1563_block_start:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR EIO[rip]
	mov	edi, DWORD PTR SMB_HST_DAT1[rip]
	mov	DWORD PTR 16[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_DAT0[rip]
	mov	DWORD PTR 12[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_ADD[rip]
	mov	r13d, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CMD[rip]
	mov	r15d, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL2[rip]
	mov	ebp, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL1[rip]
	mov	ebx, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	mov	r14d, eax
	call	inb_p@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r8d, ebx
	mov	r9d, ebp
	mov	esi, DWORD PTR 20[rsp]
	mov	edx, eax
	mov	ecx, r14d
	mov	rdi, r12
	push	rsi
	.cfi_def_cfa_offset 112
	lea	rsi, .LC6[rip]
	push	r13
	.cfi_def_cfa_offset 120
	push	r15
	.cfi_def_cfa_offset 128
	call	dev_dbg@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 96
	call	inb_p@PLT
	mov	ebx, eax
	test	DWORD PTR HST_STS_BAD[rip], eax
	je	.L2
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	call	dev_warn@PLT
	or	ebx, DWORD PTR HST_STS_BAD[rip]
	mov	esi, DWORD PTR SMB_HST_STS[rip]
	mov	edi, ebx
	call	outb_p@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	call	inb_p@PLT
	mov	r14d, DWORD PTR EBUSY[rip]
	mov	ebx, eax
	neg	r14d
	test	DWORD PTR HST_STS_BAD[rip], eax
	jne	.L1
.L2:
	mov	esi, DWORD PTR SMB_HST_STS[rip]
	or	ebx, DWORD PTR HST_STS_DONE[rip]
	mov	edi, ebx
	call	outb_p@PLT
	mov	ebp, DWORD PTR SMB_HST_CNTL2[rip]
	mov	edi, ebp
	call	inb_p@PLT
	or	eax, DWORD PTR HST_CNTL2_START[rip]
	mov	esi, ebp
	mov	edi, eax
	call	outb_p@PLT
	mov	ebp, DWORD PTR ALI1563_MAX_TIMEOUT[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	sub	ebp, 1
	je	.L33
.L5:
	mov	edi, 1
	call	msleep@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	call	inb_p@PLT
	mov	ebx, eax
	test	DWORD PTR HST_STS_DONE[rip], eax
	je	.L34
	mov	edi, DWORD PTR SMB_HST_DAT1[rip]
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_DAT0[rip]
	mov	DWORD PTR 28[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_ADD[rip]
	mov	DWORD PTR 24[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CMD[rip]
	mov	DWORD PTR 20[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL2[rip]
	mov	DWORD PTR 12[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL1[rip]
	mov	r15d, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	mov	r14d, eax
	call	inb_p@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r8d, r15d
	mov	ecx, r14d
	mov	r11d, DWORD PTR 36[rsp]
	mov	edx, eax
	mov	rdi, r12
	push	r11
	.cfi_def_cfa_offset 112
	mov	r10d, DWORD PTR 40[rsp]
	push	r10
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR 44[rsp]
	push	rsi
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 44[rsp]
	lea	rsi, .LC8[rip]
	call	dev_dbg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	test	ebp, ebp
	je	.L14
	mov	r14d, ebx
	and	r14d, DWORD PTR HST_STS_BAD[rip]
	je	.L1
	mov	r14d, DWORD PTR 16[rsp]
	neg	r14d
	test	DWORD PTR HST_STS_DEVERR[rip], ebx
	je	.L9
.L35:
	mov	r14d, DWORD PTR ENXIO[rip]
	lea	rax, .LC2[rip]
	lea	rdx, .LC0[rip]
	lea	r9, .LC1[rip]
	neg	r14d
	test	DWORD PTR HST_STS_DONE[rip], ebx
	cmove	rax, rdx
.L10:
	lea	rdx, .LC2[rip]
	test	DWORD PTR HST_STS_BUSERR[rip], ebx
	mov	rdi, r12
	lea	r8, .LC3[rip]
	lea	rcx, .LC4[rip]
	cmove	r8, rdx
	test	DWORD PTR HST_STS_FAIL[rip], ebx
	lea	rsi, .LC5[rip]
	cmove	rcx, rdx
	test	ebp, ebp
	cmove	rdx, rsi
	lea	rsi, .LC9[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	push	rax
	.cfi_def_cfa_offset 112
	call	dev_err@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L33:
	.cfi_restore_state
	mov	edi, DWORD PTR SMB_HST_DAT1[rip]
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_DAT0[rip]
	mov	DWORD PTR 16[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_ADD[rip]
	mov	DWORD PTR 12[rsp], eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CMD[rip]
	mov	r15d, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL2[rip]
	mov	r14d, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_CNTL1[rip]
	mov	ebp, eax
	call	inb_p@PLT
	mov	edi, DWORD PTR SMB_HST_STS[rip]
	mov	r13d, eax
	call	inb_p@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9d, r14d
	mov	r8d, ebp
	mov	esi, DWORD PTR 24[rsp]
	mov	edx, eax
	mov	rdi, r12
	push	rsi
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR 28[rsp]
	lea	rsi, .LC8[rip]
	push	rcx
	.cfi_def_cfa_offset 120
	mov	ecx, r13d
	push	r15
	.cfi_def_cfa_offset 128
	call	dev_dbg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
.L14:
	mov	r14d, DWORD PTR ETIMEDOUT[rip]
	xor	ebp, ebp
	neg	r14d
	test	DWORD PTR HST_STS_DEVERR[rip], ebx
	jne	.L35
.L9:
	lea	rax, .LC2[rip]
	test	DWORD PTR HST_STS_DONE[rip], ebx
	lea	rdx, .LC0[rip]
	mov	r9, rax
	cmove	rax, rdx
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ali1563_block_start, .-ali1563_block_start
	.comm	SMB_HST_STS,4,4
	.comm	SMB_HST_DAT1,4,4
	.comm	SMB_HST_DAT0,4,4
	.comm	SMB_HST_CNTL2,4,4
	.comm	SMB_HST_CNTL1,4,4
	.comm	SMB_HST_CMD,4,4
	.comm	SMB_HST_ADD,4,4
	.comm	HST_STS_FAIL,4,4
	.comm	HST_STS_DONE,4,4
	.comm	HST_STS_DEVERR,4,4
	.comm	HST_STS_BUSERR,4,4
	.comm	HST_STS_BAD,4,4
	.comm	HST_CNTL2_START,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENXIO,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.comm	ALI1563_MAX_TIMEOUT,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-ali1563.c_ali1563_block_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Timeout \000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Transaction Failed \000"
	.align	2
.LC3:
	.ascii	"No response or Bus Collision \000"
	.align	2
.LC4:
	.ascii	"Device Error \000"
	.align	2
.LC5:
	.ascii	"Transaction Never Finished \000"
	.align	2
.LC6:
	.ascii	"Block (pre): STS=%02x, CNTL1=%02x, CNTL2=%02x, CMD="
	.ascii	"%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\012\000"
	.align	2
.LC7:
	.ascii	"ali1563: Trying to reset busy device\012\000"
	.align	2
.LC8:
	.ascii	"Block (post): STS=%02x, CNTL1=%02x, CNTL2=%02x, CMD"
	.ascii	"=%02x, ADD=%02x, DAT0=%02x, DAT1=%02x\012\000"
	.align	2
.LC9:
	.ascii	"SMBus Error: %s%s%s%s%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ali1563_block_start, %function
ali1563_block_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L38
	ldr	r6, .L38+4
	ldr	r3, [r3]
	sub	sp, sp, #44
	mov	r8, r0
	ldr	r0, [r6]
	str	r3, [sp, #32]
	bl	inb_p
	ldr	fp, .L38+8
	mov	r4, r0
	ldr	r0, [fp]
	bl	inb_p
	ldr	r9, .L38+12
	mov	r5, r0
	ldr	r0, [r9]
	bl	inb_p
	ldr	r3, .L38+16
	str	r0, [sp, #28]
	ldr	r0, [r3]
	bl	inb_p
	ldr	r3, .L38+20
	mov	r7, r0
	ldr	r0, [r3]
	bl	inb_p
	ldr	r3, .L38+24
	mov	r10, r0
	ldr	r0, [r3]
	bl	inb_p
	ldr	r3, .L38+28
	str	r0, [sp, #24]
	ldr	r0, [r3]
	bl	inb_p
	ldr	r2, [sp, #28]
	ldr	r3, [sp, #24]
	stmib	sp, {r7, r10}
	ldr	r1, .L38+32
	str	r2, [sp]
	str	r3, [sp, #12]
	mov	r2, r4
	mov	r3, r5
	str	r0, [sp, #16]
	mov	r0, r8
	bl	dev_dbg
	ldr	r0, [r6]
	bl	inb_p
	ldr	r10, .L38+36
	mov	r4, r0
	ldr	r3, [r10]
	tst	r0, r3
	beq	.L2
	ldr	r1, .L38+40
	mov	r0, r8
	bl	dev_warn
	ldr	r0, [r10]
	ldr	r1, [r6]
	orr	r0, r4, r0
	bl	outb_p
	ldr	r0, [r6]
	bl	inb_p
	ldr	r3, [r10]
	mov	r4, r0
	tst	r0, r3
	bne	.L35
.L2:
	ldr	r7, .L38+44
	ldr	r1, [r6]
	ldr	r0, [r7]
	orr	r0, r4, r0
	bl	outb_p
	ldr	r0, [r9]
	bl	inb_p
	ldr	r3, .L38+48
	ldr	r1, [r9]
	ldr	r3, [r3]
	orr	r0, r0, r3
	bl	outb_p
	ldr	r3, .L38+52
	ldr	r5, [r3]
	b	.L5
.L37:
	subs	r5, r5, #1
	beq	.L36
.L5:
	mov	r0, #1
	bl	msleep
	ldr	r0, [r6]
	bl	inb_p
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L37
	mov	r4, r0
	ldr	r0, [r6]
	bl	inb_p
	mov	r6, r0
	ldr	r0, [fp]
	bl	inb_p
	mov	r3, r0
	ldr	r0, [r9]
	mov	r9, r3
	bl	inb_p
	ldr	r3, .L38+16
	mov	fp, r0
	ldr	r0, [r3]
	bl	inb_p
	mov	r3, r0
	ldr	r2, .L38+20
	str	r3, [sp, #36]
	ldr	r0, [r2]
	bl	inb_p
	mov	r2, r0
	ldr	r3, .L38+24
	str	r2, [sp, #28]
	ldr	r0, [r3]
	bl	inb_p
	mov	r1, r0
	ldr	r3, .L38+28
	str	r1, [sp, #24]
	ldr	r0, [r3]
	bl	inb_p
	ldr	r1, [sp, #24]
	ldr	r2, [sp, #28]
	ldr	r3, [sp, #36]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	str	r0, [sp, #16]
	mov	r3, r9
	mov	r2, r6
	mov	r0, r8
	ldr	r1, .L38+56
	str	fp, [sp]
	bl	dev_dbg
	cmp	r5, #0
	beq	.L15
	ldr	r5, [r10]
	ands	r5, r4, r5
	beq	.L1
	ldr	r3, .L38+60
	ldr	r1, [r3]
	ands	r1, r4, r1
	ldreq	r3, [sp, #32]
	ldreq	r2, .L38+64
	rsbeq	r5, r3, #0
.L16:
	ldrne	r3, .L38+68
	ldrne	r2, .L38+64
	ldrne	r5, [r3]
	rsbne	r5, r5, #0
.L9:
	ldr	r3, .L38+72
	ldr	r0, .L38+76
	ldr	lr, [r3]
	ldr	ip, [r0]
	ldr	r0, .L38+64
	tst	r4, lr
	ldr	r6, [r7]
	ldr	r3, .L38+80
	moveq	r3, r0
	tst	r4, ip
	ldr	ip, .L38+84
	ldr	lr, .L38+88
	moveq	lr, r0
	cmp	r1, #0
	moveq	r1, r0
	movne	r1, ip
	tst	r4, r6
	ldr	ip, .L38+92
	movne	ip, r0
	str	lr, [sp]
	stmib	sp, {r1, ip}
	mov	r0, r8
	ldr	r1, .L38+96
	bl	dev_err
.L1:
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	mov	r4, r0
	ldr	r0, [r6]
	bl	inb_p
	mov	r5, r0
	ldr	r0, [fp]
	bl	inb_p
	mov	r6, r0
	ldr	r0, [r9]
	bl	inb_p
	ldr	r3, .L38+16
	mov	r9, r0
	ldr	r0, [r3]
	bl	inb_p
	ldr	r3, .L38+20
	mov	r10, r0
	ldr	r0, [r3]
	bl	inb_p
	ldr	r3, .L38+24
	mov	fp, r0
	ldr	r0, [r3]
	bl	inb_p
	mov	r3, r0
	ldr	r2, .L38+28
	str	r3, [sp, #24]
	ldr	r0, [r2]
	bl	inb_p
	ldr	r3, [sp, #24]
	str	r0, [sp, #16]
	str	r3, [sp, #12]
	mov	r2, r5
	mov	r3, r6
	mov	r0, r8
	stm	sp, {r9, r10, fp}
	ldr	r1, .L38+56
	bl	dev_dbg
.L15:
	ldr	r3, .L38+60
	ldr	r1, [r3]
	ands	r1, r4, r1
	bne	.L8
	ldr	r3, .L38+100
	ldr	r2, .L38+104
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L9
.L8:
	ldr	r3, .L38+68
	ldr	r2, .L38+104
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L9
.L35:
	ldr	r3, .L38+108
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	.align	2
.L38:
	.word	EIO
	.word	SMB_HST_STS
	.word	SMB_HST_CNTL1
	.word	SMB_HST_CNTL2
	.word	SMB_HST_CMD
	.word	SMB_HST_ADD
	.word	SMB_HST_DAT0
	.word	SMB_HST_DAT1
	.word	.LC6
	.word	HST_STS_BAD
	.word	.LC7
	.word	HST_STS_DONE
	.word	HST_CNTL2_START
	.word	ALI1563_MAX_TIMEOUT
	.word	.LC8
	.word	HST_STS_DEVERR
	.word	.LC1
	.word	ENXIO
	.word	HST_STS_FAIL
	.word	HST_STS_BUSERR
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.word	.LC5
	.word	.LC9
	.word	ETIMEDOUT
	.word	.LC0
	.word	EBUSY
	.size	ali1563_block_start, .-ali1563_block_start
	.comm	SMB_HST_STS,4,4
	.comm	SMB_HST_DAT1,4,4
	.comm	SMB_HST_DAT0,4,4
	.comm	SMB_HST_CNTL2,4,4
	.comm	SMB_HST_CNTL1,4,4
	.comm	SMB_HST_CMD,4,4
	.comm	SMB_HST_ADD,4,4
	.comm	HST_STS_FAIL,4,4
	.comm	HST_STS_DONE,4,4
	.comm	HST_STS_DEVERR,4,4
	.comm	HST_STS_BUSERR,4,4
	.comm	HST_STS_BAD,4,4
	.comm	HST_CNTL2_START,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENXIO,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.comm	ALI1563_MAX_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
