	.file	"extr_sh_tmu.c_sh_tmu_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"missing platform data\n"
.LC1:
	.string	"failed to get I/O memory\n"
.LC2:
	.string	"failed to get irq\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"sh_tmu: failed to remap I/O memory\n"
	.align 8
.LC4:
	.string	"sh_tmu: cannot get clock \"%s\"\n"
	.text
	.p2align 4
	.type	sh_tmu_setup, @function
sh_tmu_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, 48
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, DWORD PTR ENXIO[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	neg	r13d
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rsi]
	xor	esi, esi
	call	memset@PLT
	mov	QWORD PTR 16[rbp], r12
	test	rbx, rbx
	je	.L10
	mov	rdi, r12
	mov	rsi, rbp
	call	platform_set_drvdata@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	call	platform_get_resource@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	r12, rax
	test	rax, rax
	je	.L11
	xor	esi, esi
	call	platform_get_irq@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L12
	mov	rdi, r12
	call	resource_size@PLT
	mov	edi, DWORD PTR [r12]
	mov	esi, eax
	call	ioremap_nocache@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 16[rbp]
	mov	QWORD PTR 32[rbp], rbp
	mov	DWORD PTR 24[rbp], r14d
	mov	esi, DWORD PTR 12[rbx]
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR sh_tmu_interrupt[rip]
	mov	DWORD PTR 40[rbp], eax
	mov	eax, DWORD PTR IRQF_DISABLED[rip]
	or	eax, DWORD PTR IRQF_TIMER[rip]
	or	eax, DWORD PTR IRQF_IRQPOLL[rip]
	mov	DWORD PTR 28[rbp], eax
	call	clk_get@PLT
	mov	DWORD PTR 8[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	sh_tmu_register@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbp]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR 12[rbx]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	r13d, eax
	call	iounmap@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sh_tmu_setup, .-sh_tmu_setup
	.comm	sh_tmu_interrupt,4,4
	.comm	IRQF_TIMER,4,4
	.comm	IRQF_IRQPOLL,4,4
	.comm	IRQF_DISABLED,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENXIO,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_sh_tmu.c_sh_tmu_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"missing platform data\012\000"
	.align	2
.LC1:
	.ascii	"failed to get I/O memory\012\000"
	.align	2
.LC2:
	.ascii	"failed to get irq\012\000"
	.align	2
.LC3:
	.ascii	"sh_tmu: failed to remap I/O memory\012\000"
	.align	2
.LC4:
	.ascii	"sh_tmu: cannot get clock \"%s\"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_tmu_setup, %function
sh_tmu_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r3, .L15
	ldr	r7, [r1]
	ldr	r6, [r3]
	mov	r2, #32
	mov	r1, #0
	bl	memset
	cmp	r7, #0
	mov	r0, r5
	rsb	r6, r6, #0
	str	r5, [r4, #8]
	beq	.L10
	mov	r1, r4
	bl	platform_set_drvdata
	ldr	r3, .L15+4
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	platform_get_resource
	subs	r5, r0, #0
	beq	.L11
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	platform_get_irq
	subs	r8, r0, #0
	blt	.L12
	mov	r0, r5
	ldr	r9, [r5]
	bl	resource_size
	mov	r1, r0
	mov	r0, r9
	bl	ioremap_nocache
	cmp	r0, #0
	str	r0, [r4]
	beq	.L13
	ldr	r3, .L15+8
	ldr	r2, .L15+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L15+16
	orr	r3, r3, r2
	ldr	r1, [r1]
	ldr	r2, .L15+20
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, [r7, #8]
	ldr	r0, [r4, #8]
	str	r3, [r4, #16]
	str	r1, [r4, #28]
	str	r2, [r4, #24]
	ldr	r1, [r7, #12]
	str	r4, [r4, #20]
	str	r8, [r4, #12]
	bl	clk_get
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	ldr	r3, [r7]
	ldr	r2, [r7, #4]
	ldr	r1, [r7, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	sh_tmu_register
.L12:
	ldr	r0, [r4, #8]
	ldr	r1, .L15+24
	bl	dev_err
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r1, .L15+28
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r0, [r4, #8]
	ldr	r1, .L15+32
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r1, [r7, #12]
	ldr	r0, .L15+36
	bl	pr_err
	ldr	r0, [r4, #4]
	bl	PTR_ERR
	mov	r6, r0
	ldr	r0, [r4]
	bl	iounmap
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r0, .L15+40
	bl	pr_err
	b	.L1
.L16:
	.align	2
.L15:
	.word	ENXIO
	.word	IORESOURCE_MEM
	.word	IRQF_DISABLED
	.word	IRQF_TIMER
	.word	IRQF_IRQPOLL
	.word	sh_tmu_interrupt
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.size	sh_tmu_setup, .-sh_tmu_setup
	.comm	sh_tmu_interrupt,4,4
	.comm	IRQF_TIMER,4,4
	.comm	IRQF_IRQPOLL,4,4
	.comm	IRQF_DISABLED,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
