	.file	"extr_libata-pmp.c_sata_pmp_scr_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to read SCR %d (Emask=0x%x)\n"
	.text
	.p2align 4
	.globl	sata_pmp_scr_read
	.type	sata_pmp_scr_read, @function
sata_pmp_scr_read:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR SATA_PMP_PSCR_CONTROL[rip], esi
	jge	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	sata_pmp_read@PLT
	mov	r8d, eax
	xor	eax, eax
	test	r8d, r8d
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR KERN_WARNING[rip]
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	ata_link_printk@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sata_pmp_scr_read, .-sata_pmp_scr_read
	.comm	SATA_PMP_PSCR_CONTROL,4,4
	.comm	KERN_WARNING,4,4
	.comm	EIO,4,4
	.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_libata-pmp.c_sata_pmp_scr_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read SCR %d (Emask=0x%x)\012\000"
	.text
	.align	2
	.global	sata_pmp_scr_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	sata_pmp_scr_read, %function
sata_pmp_scr_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, r1
	bge	.L2
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, r5, lr}
	sub	sp, sp, #12
	mov	r4, r1
	mov	r5, r0
	bl	sata_pmp_read
	cmp	r0, #0
	bne	.L9
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r2, .L10+8
	str	r0, [sp]
	mov	r3, r4
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L10+12
	bl	ata_link_printk
	ldr	r3, .L10+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	.align	2
.L10:
	.word	SATA_PMP_PSCR_CONTROL
	.word	EINVAL
	.word	KERN_WARNING
	.word	.LC0
	.word	EIO
	.size	sata_pmp_scr_read, .-sata_pmp_scr_read
	.comm	SATA_PMP_PSCR_CONTROL,4,4
	.comm	KERN_WARNING,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
