	.file	"extr_ahci_platform.c_ahci_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ports-implemented"
.LC1:
	.string	"hisilicon,hisi-ahci"
	.text
	.p2align 4
	.type	ahci_probe, @function
ahci_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR AHCI_PLATFORM_GET_RESETS[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	ahci_platform_get_resources@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L14
	call	ahci_platform_enable_resources@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L15
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	lea	rdx, 4[rbp]
	call	of_property_read_u32@PLT
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC1[rip]
	call	of_device_is_compatible@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR AHCI_HFLAG_NO_FBS[rip]
	or	eax, DWORD PTR AHCI_HFLAG_NO_NCQ[rip]
	or	DWORD PTR 0[rbp], eax
.L4:
	mov	rdi, r12
	call	acpi_device_get_match_data@PLT
	lea	rcx, ahci_platform_sht[rip]
	mov	rsi, rbp
	mov	rdi, r12
	test	rax, rax
	mov	rdx, rax
	lea	rax, ahci_port_info[rip]
	cmove	rdx, rax
	call	ahci_platform_init_host@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	rdi, rbp
	call	ahci_platform_disable_resources@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	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
	.cfi_endproc
.LFE0:
	.size	ahci_probe, .-ahci_probe
	.comm	ahci_port_info,4,4
	.comm	ahci_platform_sht,4,4
	.comm	AHCI_PLATFORM_GET_RESETS,4,4
	.comm	AHCI_HFLAG_NO_NCQ,4,4
	.comm	AHCI_HFLAG_NO_FBS,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_platform.c_ahci_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ports-implemented\000"
	.align	2
.LC1:
	.ascii	"hisilicon,hisi-ahci\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahci_probe, %function
ahci_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r6, r0
	bl	ahci_platform_get_resources
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r4
	bne	.L14
	bl	ahci_platform_enable_resources
	subs	r5, r0, #0
	beq	.L15
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r1, .L16+4
	add	r2, r4, #4
	ldr	r0, [r6]
	bl	of_property_read_u32
	ldr	r1, .L16+8
	ldr	r0, [r6]
	bl	of_device_is_compatible
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L16+12
	ldr	r2, .L16+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r3, [r4]
.L4:
	mov	r0, r6
	bl	acpi_device_get_match_data
	mov	r2, r0
	ldr	r3, .L16+20
	cmp	r2, #0
	moveq	r2, r3
	mov	r0, r6
	mov	r1, r4
	ldr	r3, .L16+24
	bl	ahci_platform_init_host
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	bl	ahci_platform_disable_resources
	b	.L1
.L14:
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L17:
	.align	2
.L16:
	.word	AHCI_PLATFORM_GET_RESETS
	.word	.LC0
	.word	.LC1
	.word	AHCI_HFLAG_NO_NCQ
	.word	AHCI_HFLAG_NO_FBS
	.word	ahci_port_info
	.word	ahci_platform_sht
	.size	ahci_probe, .-ahci_probe
	.comm	ahci_port_info,4,4
	.comm	ahci_platform_sht,4,4
	.comm	AHCI_PLATFORM_GET_RESETS,4,4
	.comm	AHCI_HFLAG_NO_NCQ,4,4
	.comm	AHCI_HFLAG_NO_FBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
