	.file	"extr_ahci_mvebu.c_ahci_mvebu_probe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahci_mvebu_probe, @function
ahci_mvebu_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	of_device_get_match_data@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, r13
	mov	rbx, rax
	call	ahci_platform_get_resources@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L11
	mov	eax, DWORD PTR 8[rbx]
	or	DWORD PTR 16[rbp], eax
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rbx
	call	ahci_platform_enable_resources@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR ahci_mvebu_stop_engine[rip]
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	call	[QWORD PTR [rbx]]
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L5:
	mov	rdi, rbp
	call	ahci_platform_disable_resources@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rcx, ahci_platform_sht[rip]
	lea	rdx, ahci_mvebu_port_info[rip]
	mov	rsi, rbp
	mov	rdi, r13
	call	ahci_platform_init_host@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ahci_mvebu_probe, .-ahci_mvebu_probe
	.comm	ahci_platform_sht,4,4
	.comm	ahci_mvebu_stop_engine,4,4
	.comm	ahci_mvebu_port_info,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_ahci_mvebu.c_ahci_mvebu_probe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahci_mvebu_probe, %function
ahci_mvebu_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	of_device_get_match_data
	subs	r5, r0, #0
	beq	.L11
	mov	r1, #0
	mov	r0, r7
	bl	ahci_platform_get_resources
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
	ldr	r2, [r5, #4]
	ldr	r3, [r6, #8]
	mov	r0, r6
	orr	r3, r3, r2
	str	r5, [r6, #4]
	str	r3, [r6, #8]
	bl	ahci_platform_enable_resources
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, .L14
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r6
	str	r2, [r6]
	blx	r3
	subs	r4, r0, #0
	beq	.L13
.L5:
	mov	r0, r6
	bl	ahci_platform_disable_resources
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L11:
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r7
	mov	r1, r6
	ldr	r3, .L14+8
	ldr	r2, .L14+12
	bl	ahci_platform_init_host
	subs	r4, r0, #0
	beq	.L1
	b	.L5
.L15:
	.align	2
.L14:
	.word	ahci_mvebu_stop_engine
	.word	EINVAL
	.word	ahci_platform_sht
	.word	ahci_mvebu_port_info
	.size	ahci_mvebu_probe, .-ahci_mvebu_probe
	.comm	ahci_platform_sht,4,4
	.comm	ahci_mvebu_stop_engine,4,4
	.comm	ahci_mvebu_port_info,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
