	.file	"extr_sonypi.c_sonypi_ec_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sonypi_ec_write, @function
sonypi_ec_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, DWORD PTR ITERATIONS_LONG[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	mov	edi, DWORD PTR SONYPI_CST_IOPORT[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	call	inb_p@PLT
	mov	edx, r13d
	mov	edi, 1
	and	eax, 3
	mov	esi, eax
	call	wait_on_command@PLT
	mov	esi, DWORD PTR SONYPI_CST_IOPORT[rip]
	mov	edi, 129
	call	outb_p@PLT
	mov	edi, DWORD PTR SONYPI_CST_IOPORT[rip]
	mov	r13d, DWORD PTR ITERATIONS_LONG[rip]
	call	inb_p@PLT
	mov	edx, r13d
	xor	edi, edi
	and	eax, 2
	mov	esi, eax
	call	wait_on_command@PLT
	mov	esi, DWORD PTR SONYPI_DATA_IOPORT[rip]
	mov	edi, r12d
	call	outb_p@PLT
	mov	edi, DWORD PTR SONYPI_CST_IOPORT[rip]
	mov	r12d, DWORD PTR ITERATIONS_LONG[rip]
	call	inb_p@PLT
	mov	edx, r12d
	xor	edi, edi
	and	eax, 2
	mov	esi, eax
	call	wait_on_command@PLT
	mov	esi, DWORD PTR SONYPI_DATA_IOPORT[rip]
	mov	edi, ebp
	call	outb_p@PLT
	mov	edi, DWORD PTR SONYPI_CST_IOPORT[rip]
	mov	r12d, DWORD PTR ITERATIONS_LONG[rip]
	call	inb_p@PLT
	mov	edx, r12d
	xor	edi, edi
	and	eax, 2
	mov	esi, eax
	call	wait_on_command@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sonypi_ec_write, .-sonypi_ec_write
	.comm	SONYPI_DATA_IOPORT,4,4
	.comm	SONYPI_CST_IOPORT,4,4
	.comm	SONYPI_ACPI_ACTIVE,8,8
	.comm	ITERATIONS_LONG,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_sonypi.c_sonypi_ec_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sonypi_ec_write, %function
sonypi_ec_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L4
	mov	r7, r0
	ldr	r0, [r4]
	mov	r6, r1
	bl	inb_p
	ldr	r5, .L4+4
	and	r1, r0, #3
	ldr	r2, [r5]
	mov	r0, #1
	bl	wait_on_command
	ldr	r1, [r4]
	mov	r0, #129
	bl	outb_p
	ldr	r0, [r4]
	bl	inb_p
	ldr	r8, .L4+8
	ldr	r2, [r5]
	and	r1, r0, #2
	mov	r0, #0
	bl	wait_on_command
	ldr	r1, [r8]
	mov	r0, r7
	bl	outb_p
	ldr	r0, [r4]
	bl	inb_p
	ldr	r2, [r5]
	and	r1, r0, #2
	mov	r0, #0
	bl	wait_on_command
	ldr	r1, [r8]
	mov	r0, r6
	bl	outb_p
	ldr	r0, [r4]
	bl	inb_p
	ldr	r2, [r5]
	and	r1, r0, #2
	mov	r0, #0
	bl	wait_on_command
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	SONYPI_CST_IOPORT
	.word	ITERATIONS_LONG
	.word	SONYPI_DATA_IOPORT
	.size	sonypi_ec_write, .-sonypi_ec_write
	.comm	SONYPI_DATA_IOPORT,4,4
	.comm	SONYPI_CST_IOPORT,4,4
	.comm	SONYPI_ACPI_ACTIVE,4,4
	.comm	ITERATIONS_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
