	.file	"extr_pata_ns87410.c_ns87410_pre_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ns87410_pre_reset, @function
ns87410_pre_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	to_pci_dev@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rax
	lea	rax, ns87410_enable_bits.1945[rip]
	sal	rsi, 4
	add	rsi, rax
	call	pci_test_config_bits@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR ENOENT[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ata_sff_prereset@PLT
	.cfi_endproc
.LFE0:
	.size	ns87410_pre_reset, .-ns87410_pre_reset
	.section	.rodata
	.align 32
	.type	ns87410_enable_bits.1945, @object
	.size	ns87410_enable_bits.1945, 32
ns87410_enable_bits.1945:
	.long	67
	.long	1
	.long	8
	.long	8
	.long	71
	.long	1
	.long	8
	.long	8
	.comm	ENOENT,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_pata_ns87410.c_ns87410_pre_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns87410_pre_reset, %function
ns87410_pre_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0]
	mov	r4, r0
	ldr	r3, [r6, #4]
	mov	r5, r1
	ldr	r0, [r3]
	bl	to_pci_dev
	ldr	r1, [r6]
	ldr	r3, .L7
	add	r1, r3, r1, lsl #4
	bl	pci_test_config_bits
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ata_sff_prereset
.L8:
	.align	2
.L7:
	.word	.LANCHOR0
	.word	ENOENT
	.size	ns87410_pre_reset, .-ns87410_pre_reset
	.comm	ENOENT,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ns87410_enable_bits.4229, %object
	.size	ns87410_enable_bits.4229, 32
ns87410_enable_bits.4229:
	.word	67
	.word	1
	.word	8
	.word	8
	.word	71
	.word	1
	.word	8
	.word	8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
