	.file	"extr_aic7xxx_93cx6.c_send_seeprom_cmd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_seeprom_cmd, @function
send_seeprom_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	esi, DWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	r12d, DWORD PTR [rdi]
	xor	r12d, DWORD PTR 4[rdi]
	xor	esi, r12d
	call	SEEPROM_OUTB@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbx
	call	CLOCK_PULSE@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L1
	mov	rax, QWORD PTR 8[r13]
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	QWORD PTR [rax+rbp*8], 0
	lea	r14, 0[0+rbp*8]
	je	.L3
	xor	r12d, DWORD PTR 12[rbx]
.L3:
	mov	esi, r12d
	mov	rdi, rbx
	call	SEEPROM_OUTB@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbx
	call	CLOCK_PULSE@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbx
	xor	esi, r12d
	call	SEEPROM_OUTB@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbx
	call	CLOCK_PULSE@PLT
	mov	rax, QWORD PTR 8[r13]
	cmp	QWORD PTR [rax+r14], 0
	je	.L4
	xor	r12d, DWORD PTR 12[rbx]
.L4:
	add	rbp, 1
	cmp	DWORD PTR 0[r13], ebp
	jg	.L5
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	send_seeprom_cmd, .-send_seeprom_cmd
	.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_aic7xxx_93cx6.c_send_seeprom_cmd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_seeprom_cmd, %function
send_seeprom_cmd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r3, [r0, #4]
	ldr	r6, [r0]
	ldr	r1, [r0, #8]
	eor	r6, r6, r3
	eor	r1, r1, r6
	bl	SEEPROM_OUTB
	mov	r0, r4
	ldr	r1, [r4, #16]
	bl	CLOCK_PULSE
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r5, #0
	ldr	r3, [r7, #4]
.L5:
	ldr	r3, [r3, r5, lsl #2]
	mov	r0, r4
	cmp	r3, #0
	ldrne	r3, [r4, #12]
	lsl	r8, r5, #2
	eorne	r6, r6, r3
	mov	r1, r6
	bl	SEEPROM_OUTB
	ldr	r1, [r4, #16]
	mov	r0, r4
	bl	CLOCK_PULSE
	ldr	r1, [r4, #8]
	mov	r0, r4
	eor	r1, r1, r6
	bl	SEEPROM_OUTB
	mov	r0, r4
	ldr	r1, [r4, #16]
	bl	CLOCK_PULSE
	ldr	r3, [r7, #4]
	add	r5, r5, #1
	ldr	r2, [r3, r8]
	cmp	r2, #0
	ldrne	r2, [r4, #12]
	eorne	r6, r6, r2
	ldr	r2, [r7]
	cmp	r2, r5
	bgt	.L5
	pop	{r4, r5, r6, r7, r8, pc}
	.size	send_seeprom_cmd, .-send_seeprom_cmd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
