	.file	"extr_ahci_tegra.c_tegra_ahci_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sata"
.LC1:
	.string	"Failed to get sata reset\n"
.LC2:
	.string	"sata-oob"
.LC3:
	.string	"Failed to get sata-oob reset\n"
.LC4:
	.string	"sata-cold"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"Failed to get sata-cold reset\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Failed to get sata clock\n"
.LC7:
	.string	"Failed to get regulators\n"
	.text
	.p2align 4
	.type	tegra_ahci_probe, @function
tegra_ahci_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ahci_platform_get_resources@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	mov	rdi, r12
	test	rax, rax
	jne	.L27
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 72
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L11
	mov	QWORD PTR [r12], rax
	mov	rdi, rbp
	mov	QWORD PTR 64[rax], rbp
	call	of_device_get_match_data@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	QWORD PTR 8[rbx], rax
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	edx, 2
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L30
.L6:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	devm_reset_control_get@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L31
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	devm_reset_control_get@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L32
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	devm_reset_control_get@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L33
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L34
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	devm_kcalloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	r8, rax
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR 8[rbx]
	mov	r9d, DWORD PTR [rax]
	test	r9d, r9d
	je	.L13
	mov	rsi, QWORD PTR 8[rax]
	xor	edx, edx
	lea	eax, -1[r9]
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, DWORD PTR [rsi+rdx*4]
	mov	DWORD PTR [r8+rdx*4], ecx
	mov	rcx, rdx
	add	rdx, 1
	cmp	rax, rcx
	jne	.L14
.L13:
	mov	rdx, r8
	mov	esi, r9d
	mov	rdi, rbp
	call	devm_regulator_bulk_get@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L35
	mov	rdi, r12
	call	tegra_ahci_controller_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	lea	rcx, ahci_platform_sht[rip]
	lea	rdx, ahci_tegra_port_info[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	ahci_platform_init_host@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r12
	call	tegra_ahci_controller_deinit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 16[rbx]
.L27:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L31:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 40[rbx]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR 56[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L32:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 32[rbx]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 48[rbx]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbx]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tegra_ahci_probe, .-tegra_ahci_probe
	.comm	ahci_tegra_port_info,4,4
	.comm	ahci_platform_sht,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_tegra.c_tegra_ahci_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sata\000"
	.align	2
.LC1:
	.ascii	"Failed to get sata reset\012\000"
	.align	2
.LC2:
	.ascii	"sata-oob\000"
	.align	2
.LC3:
	.ascii	"Failed to get sata-oob reset\012\000"
	.align	2
.LC4:
	.ascii	"sata-cold\000"
	.align	2
.LC5:
	.ascii	"Failed to get sata-cold reset\012\000"
	.align	2
.LC6:
	.ascii	"Failed to get sata clock\012\000"
	.align	2
.LC7:
	.ascii	"Failed to get regulators\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_ahci_probe, %function
tegra_ahci_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	mov	r4, r0
	bl	ahci_platform_get_resources
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L28
	ldr	r7, .L36
	mov	r1, #36
	mov	r0, r4
	ldr	r2, [r7]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L11
	str	r5, [r6]
	mov	r0, r4
	str	r4, [r5, #32]
	bl	of_device_get_match_data
	ldr	r8, .L36+4
	mov	r2, #1
	ldr	r1, [r8]
	str	r0, [r5, #4]
	mov	r0, r4
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r4
	bl	devm_ioremap_resource
	str	r0, [r5, #28]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L29
	ldr	r1, [r8]
	mov	r2, #2
	mov	r0, r4
	bl	platform_get_resource
	subs	r1, r0, #0
	beq	.L6
	mov	r0, r4
	bl	devm_ioremap_resource
	str	r0, [r5, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L30
.L6:
	ldr	r1, .L36+8
	mov	r0, r4
	bl	devm_reset_control_get
	str	r0, [r5, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L31
	ldr	r1, .L36+12
	mov	r0, r4
	bl	devm_reset_control_get
	str	r0, [r5, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L32
	ldr	r1, .L36+16
	mov	r0, r4
	bl	devm_reset_control_get
	str	r0, [r5, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L33
	ldr	r1, .L36+8
	mov	r0, r4
	bl	devm_clk_get
	str	r0, [r5, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L34
	ldr	r2, [r5, #4]
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, [r7]
	mov	r2, #4
	bl	devm_kcalloc
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r5]
	beq	.L11
	ldr	r3, [r5, #4]
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L13
	ldr	r3, [r3, #4]
	sub	ip, r0, #4
	add	r5, r3, r1, lsl #2
	sub	r5, r5, #4
	sub	r3, r3, #4
.L14:
	ldr	lr, [r3, #4]!
	cmp	r3, r5
	str	lr, [ip, #4]!
	bne	.L14
.L13:
	mov	r0, r4
	bl	devm_regulator_bulk_get
	subs	r5, r0, #0
	bne	.L35
	mov	r0, r6
	bl	tegra_ahci_controller_init
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	mov	r1, r6
	ldr	r3, .L36+20
	ldr	r2, .L36+24
	bl	ahci_platform_init_host
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r6
	bl	tegra_ahci_controller_deinit
	b	.L1
.L11:
	ldr	r3, .L36+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L31:
	mov	r0, r4
	ldr	r1, .L36+32
	bl	dev_err
	ldr	r0, [r5, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L29:
	ldr	r0, [r5, #28]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L32:
	mov	r0, r4
	ldr	r1, .L36+36
	bl	dev_err
	ldr	r0, [r5, #16]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L30:
	ldr	r0, [r5, #24]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L34:
	mov	r0, r4
	ldr	r1, .L36+40
	bl	dev_err
	ldr	r0, [r5, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L33:
	mov	r0, r4
	ldr	r1, .L36+44
	bl	dev_err
	ldr	r0, [r5, #12]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L35:
	mov	r0, r4
	ldr	r1, .L36+48
	bl	dev_err
	b	.L1
.L37:
	.align	2
.L36:
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	ahci_platform_sht
	.word	ahci_tegra_port_info
	.word	ENOMEM
	.word	.LC1
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.word	.LC7
	.size	tegra_ahci_probe, .-tegra_ahci_probe
	.comm	ahci_tegra_port_info,4,4
	.comm	ahci_platform_sht,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
