	.file	"extr_ata-intel.c_ata_intel_sata_cscr_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ata_intel_sata_cscr_read, @function
ata_intel_sata_cscr_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	add	r15d, -128
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	device_get_parent@PLT
	mov	edi, eax
	mov	r12d, eax
	call	device_get_softc@PLT
	mov	edi, ebp
	mov	r13, rax
	call	device_get_softc@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	ATA_INTEL_SMAP@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR EINVAL[rip]
	cmp	r15d, 2
	jbe	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L6:
	.cfi_restore_state
	mov	rdi, r13
	call	ATA_INTEL_LOCK@PLT
	xor	eax, eax
	cmp	r14d, 1
	mov	ecx, 4
	sete	al
	mov	edi, r12d
	mov	esi, 160
	mov	eax, DWORD PTR 0[rbp+rax*4]
	lea	edx, 20[r15+rax*4]
	sal	edx, 2
	call	pci_write_config@PLT
	mov	edi, r12d
	mov	edx, 4
	mov	esi, 164
	call	pci_read_config@PLT
	mov	rdi, r13
	mov	DWORD PTR [rbx], eax
	call	ATA_INTEL_UNLOCK@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	ata_intel_sata_cscr_read, .-ata_intel_sata_cscr_read
	.comm	EINVAL,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_ata-intel.c_ata_intel_sata_cscr_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_intel_sata_cscr_read, %function
ata_intel_sata_cscr_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r8, r3
	mov	r6, r0
	bl	device_get_parent
	mov	r9, r0
	bl	device_get_softc
	mov	r5, r0
	mov	r0, r6
	bl	device_get_softc
	sub	r4, r4, #128
	mov	r1, r0
	mov	r0, r5
	bl	ATA_INTEL_SMAP
	cmp	r4, #2
	bls	.L6
	ldr	r3, .L7
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	sub	r7, r7, #1
	clz	r7, r7
	mov	r6, r0
	lsr	r7, r7, #5
	mov	r0, r5
	bl	ATA_INTEL_LOCK
	ldr	r2, [r6, r7, lsl #2]
	mov	r3, #4
	add	r2, r2, #5
	add	r2, r4, r2, lsl #2
	mov	r1, #160
	mov	r0, r9
	lsl	r2, r2, #2
	bl	pci_write_config
	mov	r2, #4
	mov	r1, #164
	mov	r0, r9
	bl	pci_read_config
	mov	r3, r0
	mov	r0, r5
	str	r3, [r8]
	bl	ATA_INTEL_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	EINVAL
	.size	ata_intel_sata_cscr_read, .-ata_intel_sata_cscr_read
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
