	.file	"extr_ahci_imx.c_imx8_sata_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fsl,phy-imp"
.LC1:
	.string	"phy"
.LC2:
	.string	"error with ioremap\n"
.LC3:
	.string	"missing *phy* reg region.\n"
.LC4:
	.string	"hsio"
.LC5:
	.string	"unable to find gpr registers\n"
.LC6:
	.string	"epcs_tx"
.LC7:
	.string	"can't get epcs_tx_clk clock.\n"
.LC8:
	.string	"epcs_rx"
.LC9:
	.string	"can't get epcs_rx_clk clock.\n"
.LC10:
	.string	"phy_pclk0"
.LC11:
	.string	"can't get phy_pclk0 clock.\n"
.LC12:
	.string	"phy_pclk1"
.LC13:
	.string	"can't get phy_pclk1 clock.\n"
.LC14:
	.string	"phy_apbclk"
.LC15:
	.string	"can't get phy_apbclk clock.\n"
.LC16:
	.string	"clkreq-gpio"
.LC17:
	.string	"SATA CLKREQ"
.LC18:
	.string	"clkreq had been initialized.\n"
.LC19:
	.string	"%d unable to get clkreq.\n"
	.text
	.p2align 4
	.type	imx8_sata_probe, @function
imx8_sata_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdx, 60[rsi]
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	r12, QWORD PTR 64[rsi]
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	of_property_read_u32@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR IMX8QM_SATA_PHY_IMPED_RATIO_85OHM[rip]
	mov	DWORD PTR 60[rbx], eax
.L2:
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	rdi, r12
	lea	rdx, .LC1[rip]
	call	platform_get_resource_byname@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	resource_size@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	mov	edx, eax
	call	devm_ioremap@PLT
	mov	DWORD PTR 56[rbx], eax
	test	eax, eax
	je	.L24
	mov	rdi, r13
	lea	rsi, .LC4[rip]
	call	syscon_regmap_lookup_by_phandle@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L26
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	mov	rdi, rbp
	lea	rsi, .LC10[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L28
	mov	rdi, rbp
	lea	rsi, .LC12[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
	mov	rdi, rbp
	lea	rsi, .LC14[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L30
	xor	edx, edx
	mov	rdi, r13
	lea	rsi, .LC16[rip]
	call	of_get_named_gpio@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	call	gpio_is_valid@PLT
	test	rax, rax
	jne	.L31
	mov	r12d, DWORD PTR EPROBE_DEFER[rip]
	mov	eax, 0
	neg	r12d
	cmp	DWORD PTR [rbx], r12d
	cmovne	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.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
.L25:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 48[rbx]
.L22:
	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
.L27:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 32[rbx]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	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
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 40[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
.L28:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[rbx]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	lea	rsi, .LC15[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	lea	rsi, .LC13[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 16[rbx]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, DWORD PTR GPIOF_OUT_INIT_LOW[rip]
	mov	esi, DWORD PTR [rbx]
	lea	rcx, .LC17[rip]
	mov	rdi, rbp
	call	devm_gpio_request_one@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EBUSY[rip]
	je	.L32
	test	r12d, r12d
	je	.L1
	mov	edx, r12d
	lea	rsi, .LC19[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L32:
	lea	rsi, .LC18[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	dev_info@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	imx8_sata_probe, .-imx8_sata_probe
	.comm	IORESOURCE_MEM,4,4
	.comm	IMX8QM_SATA_PHY_IMPED_RATIO_85OHM,4,4
	.comm	GPIOF_OUT_INIT_LOW,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,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_imx.c_imx8_sata_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fsl,phy-imp\000"
	.align	2
.LC1:
	.ascii	"phy\000"
	.align	2
.LC2:
	.ascii	"error with ioremap\012\000"
	.align	2
.LC3:
	.ascii	"missing *phy* reg region.\012\000"
	.align	2
.LC4:
	.ascii	"hsio\000"
	.align	2
.LC5:
	.ascii	"unable to find gpr registers\012\000"
	.align	2
.LC6:
	.ascii	"epcs_tx\000"
	.align	2
.LC7:
	.ascii	"can't get epcs_tx_clk clock.\012\000"
	.align	2
.LC8:
	.ascii	"epcs_rx\000"
	.align	2
.LC9:
	.ascii	"can't get epcs_rx_clk clock.\012\000"
	.align	2
.LC10:
	.ascii	"phy_pclk0\000"
	.align	2
.LC11:
	.ascii	"can't get phy_pclk0 clock.\012\000"
	.align	2
.LC12:
	.ascii	"phy_pclk1\000"
	.align	2
.LC13:
	.ascii	"can't get phy_pclk1 clock.\012\000"
	.align	2
.LC14:
	.ascii	"phy_apbclk\000"
	.align	2
.LC15:
	.ascii	"can't get phy_apbclk clock.\012\000"
	.align	2
.LC16:
	.ascii	"clkreq-gpio\000"
	.align	2
.LC17:
	.ascii	"SATA CLKREQ\000"
	.align	2
.LC18:
	.ascii	"clkreq had been initialized.\012\000"
	.align	2
.LC19:
	.ascii	"%d unable to get clkreq.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	imx8_sata_probe, %function
imx8_sata_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, [r0]
	add	r2, r1, #32
	mov	r5, r0
	ldr	r1, .L31
	mov	r0, r6
	ldr	r7, [r4, #36]
	bl	of_property_read_u32
	cmp	r0, #0
	ldrne	r3, .L31+4
	mov	r0, r7
	ldrne	r3, [r3]
	ldr	r2, .L31+8
	strne	r3, [r4, #32]
	ldr	r3, .L31+12
	ldr	r1, [r3]
	bl	platform_get_resource_byname
	subs	r3, r0, #0
	beq	.L3
	ldr	r7, [r3]
	bl	resource_size
	mov	r1, r7
	mov	r2, r0
	mov	r0, r5
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r4, #28]
	beq	.L22
	ldr	r1, .L31+16
	mov	r0, r6
	bl	syscon_regmap_lookup_by_phandle
	str	r0, [r4, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L23
	ldr	r1, .L31+20
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L24
	ldr	r1, .L31+24
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L25
	ldr	r1, .L31+28
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L26
	ldr	r1, .L31+32
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L27
	ldr	r1, .L31+36
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r4, #4]
	bl	IS_ERR
	subs	r2, r0, #0
	bne	.L28
	mov	r0, r6
	ldr	r1, .L31+40
	bl	of_get_named_gpio
	str	r0, [r4]
	bl	gpio_is_valid
	subs	r6, r0, #0
	bne	.L29
	ldr	r3, .L31+44
	ldr	r2, [r4]
	ldr	r3, [r3]
	rsb	r3, r3, #0
	cmp	r2, r3
	moveq	r6, r3
	b	.L1
.L22:
	mov	r0, r5
	ldr	r1, .L31+48
	bl	dev_err
	ldr	r3, .L31+52
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r0, r5
	ldr	r1, .L31+56
	bl	dev_err
	ldr	r0, [r4, #24]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L25:
	mov	r0, r5
	ldr	r1, .L31+60
	bl	dev_err
	ldr	r0, [r4, #16]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L3:
	mov	r0, r5
	ldr	r1, .L31+64
	bl	dev_err
	ldr	r3, .L31+52
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r5
	ldr	r1, .L31+68
	bl	dev_err
	ldr	r0, [r4, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L26:
	mov	r0, r5
	ldr	r1, .L31+72
	bl	dev_err
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L28:
	mov	r0, r5
	ldr	r1, .L31+76
	bl	dev_err
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L27:
	mov	r0, r5
	ldr	r1, .L31+80
	bl	dev_err
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L29:
	ldr	r3, .L31+84
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r4]
	ldr	r3, .L31+88
	bl	devm_gpio_request_one
	ldr	r3, .L31+92
	mov	r6, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L30
	cmp	r0, #0
	beq	.L1
	mov	r0, r5
	mov	r2, r6
	ldr	r1, .L31+96
	bl	dev_err
	b	.L1
.L30:
	mov	r0, r5
	ldr	r1, .L31+100
	bl	dev_info
	mov	r6, #0
	b	.L1
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	IMX8QM_SATA_PHY_IMPED_RATIO_85OHM
	.word	.LC1
	.word	IORESOURCE_MEM
	.word	.LC4
	.word	.LC6
	.word	.LC8
	.word	.LC10
	.word	.LC12
	.word	.LC14
	.word	.LC16
	.word	EPROBE_DEFER
	.word	.LC2
	.word	ENOMEM
	.word	.LC5
	.word	.LC9
	.word	.LC3
	.word	.LC7
	.word	.LC11
	.word	.LC15
	.word	.LC13
	.word	GPIOF_OUT_INIT_LOW
	.word	.LC17
	.word	EBUSY
	.word	.LC19
	.word	.LC18
	.size	imx8_sata_probe, .-imx8_sata_probe
	.comm	IORESOURCE_MEM,4,4
	.comm	IMX8QM_SATA_PHY_IMPED_RATIO_85OHM,4,4
	.comm	GPIOF_OUT_INIT_LOW,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
