	.file	"extr_i2c-ali1563.c_ali1563_block.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ali1563_block, @function
ali1563_block:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, 32
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR SMB_HST_CNTL1[rip]
	mov	edi, DWORD PTR HST_CNTL1_LAST[rip]
	call	outb_p@PLT
	cmp	QWORD PTR I2C_SMBUS_WRITE[rip], r12
	je	.L12
.L2:
	mov	r15d, DWORD PTR SMB_HST_CNTL2[rip]
	xor	ebx, ebx
	mov	edi, r15d
	call	inb_p@PLT
	or	eax, DWORD PTR HST_CNTL2_BLOCK[rip]
	mov	esi, r15d
	mov	edi, eax
	call	outb_p@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r14
	call	ali1563_block_start@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L4
	test	rbx, rbx
	je	.L13
.L6:
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR SMB_BLK_DAT[rip]
	add	rbx, 1
	lea	r15, [rax+rbx*4]
	call	inb_p@PLT
	mov	DWORD PTR [r15], eax
.L5:
	cmp	ebp, ebx
	jle	.L14
.L7:
	cmp	QWORD PTR I2C_SMBUS_WRITE[rip], r12
	jne	.L3
	mov	rax, QWORD PTR 0[r13]
	add	rbx, 1
	mov	esi, DWORD PTR SMB_BLK_DAT[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	outb_p@PLT
	mov	rdi, r14
	call	ali1563_block_start@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L5
.L4:
	mov	esi, DWORD PTR SMB_HST_CNTL1[rip]
	mov	edi, DWORD PTR HST_CNTL1_LAST[rip]
	mov	DWORD PTR 12[rsp], r8d
	call	outb_p@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR SMB_HST_DAT0[rip]
	mov	ebp, 32
	call	inb_p@PLT
	cmp	eax, 32
	cmovle	ebp, eax
	mov	eax, 1
	test	ebp, ebp
	cmovle	ebp, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r8d, r8d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR SMB_HST_DAT0[rip]
	cmp	DWORD PTR [rax], 32
	cmovle	ebp, DWORD PTR [rax]
	mov	eax, 1
	test	ebp, ebp
	cmovle	ebp, eax
	mov	edi, ebp
	call	outb_p@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR SMB_BLK_DAT[rip]
	mov	edi, DWORD PTR 4[rax]
	call	outb_p@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ali1563_block, .-ali1563_block
	.comm	SMB_HST_DAT0,4,4
	.comm	SMB_HST_CNTL2,4,4
	.comm	SMB_HST_CNTL1,4,4
	.comm	SMB_BLK_DAT,4,4
	.comm	I2C_SMBUS_WRITE,8,8
	.comm	HST_CNTL2_BLOCK,4,4
	.comm	HST_CNTL1_LAST,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.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ali1563_block, %function
ali1563_block:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	ldr	r3, .L15
	mov	r7, r1
	ldr	r1, [r3]
	ldr	r3, .L15+4
	ldr	r9, .L15+8
	mov	r8, r0
	sub	sp, sp, #12
	ldr	r0, [r3]
	bl	outb_p
	ldr	r3, [r9]
	cmp	r3, r6
	movne	r5, #32
	beq	.L12
.L2:
	ldr	r4, .L15+12
	mov	fp, #0
	ldr	r0, [r4]
	bl	inb_p
	ldr	r2, .L15+16
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r10, .L15+20
	orr	r0, r0, r2
	bl	outb_p
	b	.L7
.L3:
	mov	r0, r8
	bl	ali1563_block_start
	subs	r2, r0, #0
	bne	.L4
	cmp	fp, #0
	beq	.L13
.L6:
	ldr	r0, [r10]
	ldr	fp, [r7]
	bl	inb_p
	str	r0, [fp, r4, lsl #2]
.L5:
	cmp	r5, r4
	mov	fp, r4
	ble	.L14
.L7:
	ldr	r2, [r9]
	add	r4, fp, #1
	cmp	r2, r6
	bne	.L3
	ldr	r2, [r7]
	ldr	r1, [r10]
	ldr	r0, [r2, r4, lsl #2]
	bl	outb_p
	mov	r0, r8
	bl	ali1563_block_start
	subs	r2, r0, #0
	beq	.L5
.L4:
	ldr	r3, .L15
	str	r2, [sp, #4]
	ldr	r1, [r3]
	ldr	r3, .L15+4
	ldr	r0, [r3]
	bl	outb_p
	ldr	r2, [sp, #4]
	mov	r0, r2
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L15+24
	ldr	r0, [r3]
	bl	inb_p
	cmp	r0, #32
	movlt	r5, r0
	movge	r5, #32
	cmp	r5, #1
	movlt	r5, #1
	b	.L6
.L14:
	mov	r2, #0
	b	.L4
.L12:
	ldr	r2, [r7]
	ldr	r3, .L15+24
	ldr	r5, [r2]
	ldr	r1, [r3]
	cmp	r5, #32
	movge	r5, #32
	cmp	r5, #1
	movlt	r5, #1
	mov	r0, r5
	bl	outb_p
	ldr	r2, .L15+20
	ldr	r3, [r7]
	ldr	r1, [r2]
	ldr	r0, [r3, #4]
	bl	outb_p
	b	.L2
.L16:
	.align	2
.L15:
	.word	SMB_HST_CNTL1
	.word	HST_CNTL1_LAST
	.word	I2C_SMBUS_WRITE
	.word	SMB_HST_CNTL2
	.word	HST_CNTL2_BLOCK
	.word	SMB_BLK_DAT
	.word	SMB_HST_DAT0
	.size	ali1563_block, .-ali1563_block
	.comm	SMB_HST_DAT0,4,4
	.comm	SMB_HST_CNTL2,4,4
	.comm	SMB_HST_CNTL1,4,4
	.comm	SMB_BLK_DAT,4,4
	.comm	I2C_SMBUS_WRITE,4,4
	.comm	HST_CNTL2_BLOCK,4,4
	.comm	HST_CNTL1_LAST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
