	.file	"extr_rcar_thermal.c__rcar_thermal_irq_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rcar_thermal_irq_ctrl, @function
_rcar_thermal_irq_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	call	rcar_id_to_shift@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	rcar_has_irq_support@PLT
	test	eax, eax
	jne	.L7
	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
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	ecx, r12d
	xor	ebp, ebp
	mov	edx, 3
	mov	rdi, r13
	sal	edx, cl
	mov	rsi, rbp
	mov	r12d, edx
	call	spin_lock_irqsave@PLT
	test	ebx, ebx
	mov	ecx, 0
	mov	rdi, r13
	cmove	ecx, r12d
	mov	esi, DWORD PTR INTMSK[rip]
	mov	edx, r12d
	call	rcar_thermal_common_bset@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	mov	rdi, r13
	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	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	_rcar_thermal_irq_ctrl, .-_rcar_thermal_irq_ctrl
	.comm	INTMSK,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_rcar_thermal.c__rcar_thermal_irq_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rcar_thermal_irq_ctrl, %function
_rcar_thermal_irq_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r5, [r0]
	bl	rcar_id_to_shift
	mov	r2, r0
	mov	r0, r4
	mov	r4, r2
	bl	rcar_has_irq_support
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r7, #0
	mov	r2, #3
	mov	r1, r7
	mov	r0, r5
	lsl	r4, r2, r4
	bl	spin_lock_irqsave
	ldr	r1, .L7
	cmp	r6, r7
	moveq	r3, r4
	movne	r3, r7
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r1]
	bl	rcar_thermal_common_bset
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irqrestore
.L8:
	.align	2
.L7:
	.word	INTMSK
	.size	_rcar_thermal_irq_ctrl, .-_rcar_thermal_irq_ctrl
	.comm	INTMSK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
