	.file	"extr_sata_nv.c_nv_adma_host_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ENTER\n"
	.text
	.p2align 4
	.type	nv_adma_host_init, @function
nv_adma_host_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_pci_dev@PLT
	lea	rdi, .LC0[rip]
	mov	r12, rax
	call	VPRINTK@PLT
	mov	esi, DWORD PTR NV_MCP_SATA_CFG_20[rip]
	lea	rdx, 4[rsp]
	mov	rdi, r12
	call	pci_read_config_dword@PLT
	mov	esi, DWORD PTR NV_MCP_SATA_CFG_20[rip]
	mov	edx, DWORD PTR NV_MCP_SATA_CFG_20_PORT0_EN[rip]
	mov	rdi, r12
	or	edx, DWORD PTR NV_MCP_SATA_CFG_20_PORT0_PWB_EN[rip]
	or	edx, DWORD PTR NV_MCP_SATA_CFG_20_PORT1_EN[rip]
	or	edx, DWORD PTR NV_MCP_SATA_CFG_20_PORT1_PWB_EN[rip]
	or	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rsp], edx
	call	pci_write_config_dword@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	add	ebx, 1
	mov	edi, DWORD PTR [rax+rdx*4]
	call	nv_adma_setup_port@PLT
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L3
.L2:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nv_adma_host_init, .-nv_adma_host_init
	.comm	NV_MCP_SATA_CFG_20_PORT1_PWB_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT1_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT0_PWB_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT0_EN,4,4
	.comm	NV_MCP_SATA_CFG_20,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_sata_nv.c_nv_adma_host_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ENTER\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv_adma_host_init, %function
nv_adma_host_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #8
	mov	r5, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	to_pci_dev
	mov	r4, r0
	ldr	r6, .L12+4
	ldr	r0, .L12+8
	bl	VPRINTK
	mov	r2, sp
	ldr	r1, [r6]
	mov	r0, r4
	bl	pci_read_config_dword
	ldr	r1, .L12+12
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L12+24
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r2, r2, r0
	orr	r2, r2, r3
	ldr	r3, [sp]
	orr	r2, r2, r1
	orr	r2, r2, r3
	mov	r0, r4
	ldr	r1, [r6]
	str	r2, [sp]
	bl	pci_write_config_dword
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	mov	r4, #0
.L3:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	nv_adma_setup_port
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L3
.L2:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	NV_MCP_SATA_CFG_20
	.word	.LC0
	.word	NV_MCP_SATA_CFG_20_PORT0_PWB_EN
	.word	NV_MCP_SATA_CFG_20_PORT0_EN
	.word	NV_MCP_SATA_CFG_20_PORT1_EN
	.word	NV_MCP_SATA_CFG_20_PORT1_PWB_EN
	.size	nv_adma_host_init, .-nv_adma_host_init
	.comm	NV_MCP_SATA_CFG_20_PORT1_PWB_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT1_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT0_PWB_EN,4,4
	.comm	NV_MCP_SATA_CFG_20_PORT0_EN,4,4
	.comm	NV_MCP_SATA_CFG_20,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
