	.file	"extr_spi-rockchip.c_rockchip_spi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"apb_pclk"
.LC1:
	.string	"Failed to get apb_pclk\n"
.LC2:
	.string	"spiclk"
.LC3:
	.string	"Failed to get spi_pclk\n"
.LC4:
	.string	"Failed to enable apb_pclk\n"
.LC5:
	.string	"Failed to enable spi_clk\n"
.LC6:
	.string	"rx-sample-delay-ns"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC7:
	.string	"%u Hz are too slow to express %u ns delay\n"
	.align 8
.LC8:
	.string	"%u Hz are too fast to express %u ns delay, clamping at %u ns\n"
	.section	.rodata.str1.1
.LC9:
	.string	"Failed to get fifo length\n"
.LC10:
	.string	"tx"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"Failed to request TX DMA channel\n"
	.section	.rodata.str1.1
.LC12:
	.string	"rx"
	.section	.rodata.str1.8
	.align 8
.LC13:
	.string	"Failed to request RX DMA channel\n"
	.section	.rodata.str1.1
.LC14:
	.string	"Failed to register master\n"
	.text
	.p2align 4
	.type	rockchip_spi_probe, @function
rockchip_spi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 64
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	spi_alloc_master@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	rsi, rax
	mov	r12, rax
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	rdi, r12
	call	spi_master_get_devdata@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	rbx, rax
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	r14, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L34
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L35
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L36
	mov	rdi, QWORD PTR 8[rbx]
	call	clk_prepare_enable@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L37
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_prepare_enable@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L38
	xor	esi, esi
	mov	rdi, rbx
	call	spi_enable_chip@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L11
	mov	rdi, rbp
	call	dev_name@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	esi, r13d
	xor	ecx, ecx
	push	r12
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR rockchip_spi_isr[rip]
	mov	r9d, eax
	mov	rdi, rbp
	mov	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	test	r13d, r13d
	je	.L39
.L11:
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_disable_unprepare@PLT
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	call	clk_disable_unprepare@PLT
	mov	rdi, r12
	call	spi_master_put@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	rdi, QWORD PTR 56[rbx]
	call	PTR_ERR@PLT
	mov	r13d, eax
.L5:
	mov	rdi, r12
	call	spi_master_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L35:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	r13d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L39:
	mov	QWORD PTR 40[rbx], rbp
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_get_rate@PLT
	mov	edi, DWORD PTR 0[rbp]
	lea	rdx, 20[rsp]
	lea	rsi, .LC6[rip]
	mov	DWORD PTR [rbx], eax
	call	of_property_read_u32@PLT
	test	eax, eax
	je	.L41
.L12:
	mov	rdi, rbx
	call	get_fifo_len@PLT
	mov	DWORD PTR 48[rbx], eax
	test	eax, eax
	je	.L42
	mov	rdi, rbp
	call	pm_runtime_set_active@PLT
	mov	rdi, rbp
	call	pm_runtime_enable@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	edi, 16
	mov	DWORD PTR [r12], 1
	mov	DWORD PTR 68[r12], eax
	mov	eax, DWORD PTR SPI_CPOL[rip]
	or	eax, DWORD PTR SPI_CPHA[rip]
	or	eax, DWORD PTR SPI_LOOP[rip]
	or	eax, DWORD PTR SPI_LSB_FIRST[rip]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR ROCKCHIP_SPI_MAX_CS_NUM[rip]
	mov	DWORD PTR 64[r12], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 60[r12], eax
	call	SPI_BPW_MASK@PLT
	mov	edi, 8
	mov	r15d, eax
	call	SPI_BPW_MASK@PLT
	mov	edi, 4
	or	r15d, eax
	call	SPI_BPW_MASK@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR MAX_SCLK_OUT[rip]
	or	r15d, eax
	mov	eax, edi
	mov	DWORD PTR 8[r12], r15d
	cdq
	idiv	DWORD PTR BAUDR_SCKDV_MAX[rip]
	mov	DWORD PTR 12[r12], eax
	mov	eax, edi
	cdq
	idiv	DWORD PTR BAUDR_SCKDV_MIN[rip]
	mov	edi, eax
	call	min@PLT
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC10[rip]
	mov	DWORD PTR 56[r12], eax
	mov	eax, DWORD PTR rockchip_spi_set_cs[rip]
	mov	DWORD PTR 52[r12], eax
	mov	eax, DWORD PTR rockchip_spi_transfer_one[rip]
	mov	DWORD PTR 48[r12], eax
	mov	eax, DWORD PTR rockchip_spi_max_transfer_size[rip]
	mov	DWORD PTR 44[r12], eax
	mov	eax, DWORD PTR rockchip_spi_handle_err[rip]
	mov	DWORD PTR 40[r12], eax
	mov	eax, DWORD PTR SPI_MASTER_GPIO_SS[rip]
	mov	DWORD PTR 36[r12], eax
	call	dma_request_chan@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L16
	mov	rdi, QWORD PTR 16[r12]
	call	PTR_ERR@PLT
	mov	ecx, eax
	add	ecx, DWORD PTR EPROBE_DEFER[rip]
	je	.L22
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	dev_warn@PLT
	mov	QWORD PTR 16[r12], 0
.L16:
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC12[rip]
	call	dma_request_chan@PLT
	mov	QWORD PTR 24[r12], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L43
	cmp	QWORD PTR 16[r12], 0
	je	.L20
	cmp	QWORD PTR 24[r12], 0
	je	.L20
	mov	rax, QWORD PTR [r14]
	mov	rdx, QWORD PTR ROCKCHIP_SPI_TXDR[rip]
	add	rdx, rax
	add	rax, QWORD PTR ROCKCHIP_SPI_RXDR[rip]
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR rockchip_spi_can_dma[rip]
	mov	QWORD PTR 32[rbx], rdx
	mov	DWORD PTR 32[r12], eax
.L20:
	mov	rsi, r12
	mov	rdi, rbp
	call	devm_spi_register_master@PLT
	mov	r14d, eax
	test	eax, eax
	jns	.L1
	mov	rdi, rbp
	lea	rsi, .LC14[rip]
	mov	r13d, r14d
	call	dev_err@PLT
	mov	rdi, QWORD PTR 24[r12]
	test	rdi, rdi
	je	.L19
	call	dma_release_channel@PLT
.L19:
	mov	rdi, QWORD PTR 16[r12]
	test	rdi, rdi
	je	.L17
	call	dma_release_channel@PLT
.L17:
	mov	rdi, rbp
	call	pm_runtime_disable@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L42:
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR [rbx]
	mov	esi, 3906250
	sar	edi, 8
	imul	edi, DWORD PTR 20[rsp]
	call	DIV_ROUND_CLOSEST@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L44
	mov	r9d, DWORD PTR CR0_RSD_MAX[rip]
	cmp	r9d, eax
	jl	.L45
.L14:
	mov	DWORD PTR 4[rbx], r15d
	jmp	.L12
.L43:
	mov	rdi, QWORD PTR 24[r12]
	call	PTR_ERR@PLT
	mov	ecx, eax
	add	ecx, DWORD PTR EPROBE_DEFER[rip]
	je	.L23
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC13[rip]
	xor	eax, eax
	call	dev_warn@PLT
	mov	QWORD PTR 24[r12], 0
	jmp	.L20
.L22:
	mov	r13d, eax
	jmp	.L17
.L44:
	mov	rdi, QWORD PTR 40[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	mov	ecx, DWORD PTR 20[rsp]
	call	dev_warn@PLT
	jmp	.L14
.L45:
	imul	eax, r9d, 1000000000
	mov	r10d, DWORD PTR [rbx]
	xor	edx, edx
	mov	rdi, QWORD PTR 40[rbx]
	mov	ecx, DWORD PTR 20[rsp]
	lea	rsi, .LC8[rip]
	mov	DWORD PTR 12[rsp], r9d
	div	r10d
	mov	edx, r10d
	mov	r8d, eax
	xor	eax, eax
	call	dev_warn@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r15d, r9d
	jmp	.L14
.L23:
	mov	r13d, eax
	jmp	.L19
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rockchip_spi_probe, .-rockchip_spi_probe
	.comm	rockchip_spi_transfer_one,4,4
	.comm	rockchip_spi_set_cs,4,4
	.comm	rockchip_spi_max_transfer_size,4,4
	.comm	rockchip_spi_isr,4,4
	.comm	rockchip_spi_handle_err,4,4
	.comm	rockchip_spi_can_dma,4,4
	.comm	SPI_MASTER_GPIO_SS,4,4
	.comm	SPI_LSB_FIRST,4,4
	.comm	SPI_LOOP,4,4
	.comm	SPI_CPOL,4,4
	.comm	SPI_CPHA,4,4
	.comm	ROCKCHIP_SPI_TXDR,8,8
	.comm	ROCKCHIP_SPI_RXDR,8,8
	.comm	ROCKCHIP_SPI_MAX_CS_NUM,4,4
	.comm	MAX_SCLK_OUT,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CR0_RSD_MAX,4,4
	.comm	BAUDR_SCKDV_MIN,4,4
	.comm	BAUDR_SCKDV_MAX,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_spi-rockchip.c_rockchip_spi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"apb_pclk\000"
	.align	2
.LC1:
	.ascii	"Failed to get apb_pclk\012\000"
	.align	2
.LC2:
	.ascii	"spiclk\000"
	.align	2
.LC3:
	.ascii	"Failed to get spi_pclk\012\000"
	.align	2
.LC4:
	.ascii	"Failed to enable apb_pclk\012\000"
	.align	2
.LC5:
	.ascii	"Failed to enable spi_clk\012\000"
	.align	2
.LC6:
	.ascii	"rx-sample-delay-ns\000"
	.align	2
.LC7:
	.ascii	"%u Hz are too slow to express %u ns delay\012\000"
	.align	2
.LC8:
	.ascii	"%u Hz are too fast to express %u ns delay, clamping"
	.ascii	" at %u ns\012\000"
	.global	__aeabi_uidiv
	.align	2
.LC9:
	.ascii	"Failed to get fifo length\012\000"
	.global	__aeabi_idiv
	.align	2
.LC10:
	.ascii	"tx\000"
	.align	2
.LC11:
	.ascii	"Failed to request TX DMA channel\012\000"
	.align	2
.LC12:
	.ascii	"rx\000"
	.align	2
.LC13:
	.ascii	"Failed to request RX DMA channel\012\000"
	.align	2
.LC14:
	.ascii	"Failed to register master\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rockchip_spi_probe, %function
rockchip_spi_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L52
	sub	sp, sp, #28
	mov	r1, #36
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	bl	spi_alloc_master
	subs	r5, r0, #0
	beq	.L39
	mov	r1, r5
	mov	r0, r4
	bl	platform_set_drvdata
	mov	r0, r5
	bl	spi_master_get_devdata
	ldr	r3, .L52+4
	mov	r2, #0
	ldr	r1, [r3]
	mov	r7, r0
	mov	r0, r4
	bl	platform_get_resource
	mov	r8, r0
	mov	r0, r4
	mov	r1, r8
	bl	devm_ioremap_resource
	str	r0, [r7, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L40
	ldr	r1, .L52+8
	mov	r0, r4
	bl	devm_clk_get
	str	r0, [r7, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L41
	ldr	r1, .L52+12
	mov	r0, r4
	bl	devm_clk_get
	str	r0, [r7, #12]
	bl	IS_ERR
	subs	r9, r0, #0
	bne	.L42
	ldr	r0, [r7, #8]
	bl	clk_prepare_enable
	subs	r6, r0, #0
	blt	.L43
	ldr	r0, [r7, #12]
	bl	clk_prepare_enable
	subs	r6, r0, #0
	blt	.L44
	mov	r1, r9
	mov	r0, r7
	bl	spi_enable_chip
	mov	r1, r9
	mov	r0, r4
	bl	platform_get_irq
	subs	r6, r0, #0
	blt	.L11
	ldr	r2, .L52+16
	ldr	r3, .L52+20
	mov	r0, r4
	ldr	fp, [r3]
	ldr	r10, [r2]
	bl	dev_name
	mov	r1, r6
	stmib	sp, {r0, r5}
	mov	r2, r10
	mov	r3, r9
	mov	r0, r4
	str	fp, [sp]
	bl	devm_request_threaded_irq
	subs	r6, r0, #0
	beq	.L45
.L11:
	ldr	r0, [r7, #12]
	bl	clk_disable_unprepare
.L10:
	ldr	r0, [r7, #8]
	bl	clk_disable_unprepare
	b	.L5
.L40:
	ldr	r0, [r7, #32]
	bl	PTR_ERR
	mov	r6, r0
.L5:
	mov	r0, r5
	bl	spi_master_put
.L1:
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	r3, .L52+24
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L42:
	ldr	r1, .L52+28
	mov	r0, r4
	bl	dev_err
	ldr	r0, [r7, #12]
	bl	PTR_ERR
	mov	r6, r0
	b	.L5
.L41:
	ldr	r1, .L52+32
	mov	r0, r4
	bl	dev_err
	ldr	r0, [r7, #8]
	bl	PTR_ERR
	mov	r6, r0
	b	.L5
.L43:
	mov	r0, r4
	ldr	r1, .L52+36
	bl	dev_err
	b	.L5
.L45:
	ldr	r0, [r7, #12]
	str	r4, [r7, #24]
	bl	clk_get_rate
	ldr	r1, .L52+40
	str	r0, [r7]
	add	r2, sp, #16
	ldr	r0, [r4]
	bl	of_property_read_u32
	cmp	r0, #0
	beq	.L47
.L12:
	mov	r0, r7
	bl	get_fifo_len
	cmp	r0, #0
	str	r0, [r7, #28]
	mov	r0, r4
	beq	.L48
	bl	pm_runtime_set_active
	mov	r0, r4
	bl	pm_runtime_enable
	mov	r2, #1
	ldr	r3, .L52+44
	ldr	r0, .L52+48
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r1, .L52+52
	orr	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, .L52+56
	orr	r3, r3, r1
	ldr	r0, [r0]
	ldr	r1, .L52+60
	orr	r3, r3, r0
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	str	r2, [r5]
	ldr	r2, [r4]
	str	r1, [r5, #56]
	str	r2, [r5, #52]
	str	r3, [r5, #4]
	str	r0, [r5, #60]
	mov	r0, #16
	bl	SPI_BPW_MASK
	mov	r9, r0
	mov	r0, #8
	bl	SPI_BPW_MASK
	mov	r3, r0
	mov	r0, #4
	orr	r9, r9, r3
	bl	SPI_BPW_MASK
	ldr	r10, [r7]
	ldr	r3, .L52+64
	orr	r9, r9, r0
	ldr	r1, [r3]
	str	r9, [r5, #8]
	mov	r0, r10
	bl	__aeabi_idiv
	ldr	r2, .L52+68
	ldr	r3, .L52+72
	ldr	r9, [r2]
	ldr	r1, [r3]
	str	r0, [r5, #12]
	mov	r0, r10
	bl	__aeabi_idiv
	mov	r1, r9
	bl	min
	ldr	ip, .L52+76
	ldr	r1, .L52+80
	ldr	r2, .L52+84
	ldr	r3, .L52+88
	ldr	lr, [ip]
	ldr	ip, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L52+92
	str	r0, [r5, #48]
	ldr	r3, [r3]
	str	lr, [r5, #44]
	str	ip, [r5, #40]
	str	r1, [r5, #36]
	str	r2, [r5, #32]
	ldr	r1, .L52+96
	str	r3, [r5, #28]
	ldr	r0, [r7, #24]
	bl	dma_request_chan
	str	r0, [r5, #16]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L16
	ldr	r0, [r5, #16]
	bl	PTR_ERR
	ldr	r3, .L52+100
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L22
	ldr	r1, .L52+104
	ldr	r0, [r7, #24]
	bl	dev_warn
	mov	r3, #0
	str	r3, [r5, #16]
.L16:
	ldr	r1, .L52+108
	ldr	r0, [r7, #24]
	bl	dma_request_chan
	str	r0, [r5, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L49
	ldr	r3, [r5, #16]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [r5, #20]
	cmp	r3, #0
	beq	.L20
	ldr	r2, .L52+112
	ldr	r3, .L52+116
	ldr	r0, .L52+120
	ldr	r1, [r8]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r0]
	add	r2, r2, r1
	add	r3, r3, r1
	str	r2, [r7, #20]
	str	r3, [r7, #16]
	str	r0, [r5, #24]
.L20:
	mov	r1, r5
	mov	r0, r4
	bl	devm_spi_register_master
	subs	r8, r0, #0
	bge	.L1
	mov	r0, r4
	ldr	r1, .L52+124
	bl	dev_err
	ldr	r0, [r5, #20]
	cmp	r0, #0
	moveq	r6, r8
	beq	.L19
	bl	dma_release_channel
	mov	r6, r8
.L19:
	ldr	r0, [r5, #16]
	cmp	r0, #0
	beq	.L17
	bl	dma_release_channel
.L17:
	mov	r0, r4
	bl	pm_runtime_disable
	b	.L11
.L44:
	mov	r0, r4
	ldr	r1, .L52+128
	bl	dev_err
	b	.L10
.L48:
	ldr	r1, .L52+132
	bl	dev_err
	ldr	r3, .L52+136
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L11
.L47:
	ldr	r3, [r7]
	ldr	r0, [sp, #16]
	asr	r3, r3, #8
	mul	r0, r3, r0
	ldr	r1, .L52+140
	bl	DIV_ROUND_CLOSEST
	subs	r9, r0, #0
	beq	.L50
	ldr	r3, .L52+144
	ldr	r10, [r3]
	cmp	r10, r9
	blt	.L51
.L14:
	str	r9, [r7, #4]
	b	.L12
.L49:
	ldr	r0, [r5, #20]
	bl	PTR_ERR
	ldr	r3, .L52+100
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L23
	ldr	r1, .L52+148
	ldr	r0, [r7, #24]
	bl	dev_warn
	mov	r3, #0
	str	r3, [r5, #20]
	b	.L20
.L22:
	mov	r6, r0
	b	.L17
.L50:
	ldr	r3, [sp, #16]
	ldr	r2, [r7]
	ldr	r1, .L52+152
	ldr	r0, [r7, #24]
	bl	dev_warn
	b	.L14
.L51:
	ldr	r9, [r7]
	ldr	r0, .L52+156
	mov	r1, r9
	mul	r0, r10, r0
	bl	__aeabi_uidiv
	ldr	r1, [r7, #24]
	mov	r2, r9
	str	r0, [sp]
	ldr	r3, [sp, #16]
	mov	r0, r1
	ldr	r1, .L52+160
	mov	r9, r10
	bl	dev_warn
	b	.L14
.L23:
	mov	r6, r0
	b	.L19
.L46:
	bl	__stack_chk_fail
.L53:
	.align	2
.L52:
	.word	.LC15
	.word	IORESOURCE_MEM
	.word	.LC0
	.word	.LC2
	.word	rockchip_spi_isr
	.word	IRQF_ONESHOT
	.word	ENOMEM
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.word	.LC6
	.word	SPI_CPOL
	.word	SPI_CPHA
	.word	SPI_LOOP
	.word	SPI_LSB_FIRST
	.word	ROCKCHIP_SPI_MAX_CS_NUM
	.word	BAUDR_SCKDV_MAX
	.word	MAX_SCLK_OUT
	.word	BAUDR_SCKDV_MIN
	.word	rockchip_spi_set_cs
	.word	rockchip_spi_transfer_one
	.word	rockchip_spi_max_transfer_size
	.word	rockchip_spi_handle_err
	.word	SPI_MASTER_GPIO_SS
	.word	.LC10
	.word	EPROBE_DEFER
	.word	.LC11
	.word	.LC12
	.word	ROCKCHIP_SPI_TXDR
	.word	ROCKCHIP_SPI_RXDR
	.word	rockchip_spi_can_dma
	.word	.LC14
	.word	.LC5
	.word	.LC9
	.word	EINVAL
	.word	3906250
	.word	CR0_RSD_MAX
	.word	.LC13
	.word	.LC7
	.word	1000000000
	.word	.LC8
	.size	rockchip_spi_probe, .-rockchip_spi_probe
	.comm	rockchip_spi_transfer_one,4,4
	.comm	rockchip_spi_set_cs,4,4
	.comm	rockchip_spi_max_transfer_size,4,4
	.comm	rockchip_spi_isr,4,4
	.comm	rockchip_spi_handle_err,4,4
	.comm	rockchip_spi_can_dma,4,4
	.comm	SPI_MASTER_GPIO_SS,4,4
	.comm	SPI_LSB_FIRST,4,4
	.comm	SPI_LOOP,4,4
	.comm	SPI_CPOL,4,4
	.comm	SPI_CPHA,4,4
	.comm	ROCKCHIP_SPI_TXDR,4,4
	.comm	ROCKCHIP_SPI_RXDR,4,4
	.comm	ROCKCHIP_SPI_MAX_CS_NUM,4,4
	.comm	MAX_SCLK_OUT,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CR0_RSD_MAX,4,4
	.comm	BAUDR_SCKDV_MIN,4,4
	.comm	BAUDR_SCKDV_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
