	.file	"extr_irq.c_disable_r4030_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	disable_r4030_irq
	.type	disable_r4030_irq, @function
disable_r4030_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rsi, rbp
	mov	ebx, -2
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ecx, DWORD PTR [rdi]
	lea	rdi, r4030_lock[rip]
	sub	ecx, DWORD PTR JAZZ_IRQ_START[rip]
	rol	ebx, cl
	call	raw_spin_lock_irqsave@PLT
	mov	edi, DWORD PTR JAZZ_IO_IRQ_ENABLE[rip]
	call	r4030_read_reg16@PLT
	mov	edi, DWORD PTR JAZZ_IO_IRQ_ENABLE[rip]
	and	ebx, eax
	mov	esi, ebx
	call	r4030_write_reg16@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	lea	rdi, r4030_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	raw_spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	disable_r4030_irq, .-disable_r4030_irq
	.comm	r4030_lock,4,4
	.comm	JAZZ_IRQ_START,4,4
	.comm	JAZZ_IO_IRQ_ENABLE,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_irq.c_disable_r4030_irq.c"
	.text
	.align	2
	.global	disable_r4030_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	disable_r4030_irq, %function
disable_r4030_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	mov	r4, #1
	ldr	r2, .L4
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r5, .L4+4
	ldr	r7, .L4+8
	mov	r1, r6
	sub	r3, r3, r2
	mov	r0, r5
	mvn	r4, r4, lsl r3
	bl	raw_spin_lock_irqsave
	ldr	r0, [r7]
	bl	r4030_read_reg16
	mov	r1, r0
	ldr	r0, [r7]
	and	r1, r1, r4
	bl	r4030_write_reg16
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	raw_spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	JAZZ_IRQ_START
	.word	r4030_lock
	.word	JAZZ_IO_IRQ_ENABLE
	.size	disable_r4030_irq, .-disable_r4030_irq
	.comm	r4030_lock,4,4
	.comm	JAZZ_IRQ_START,4,4
	.comm	JAZZ_IO_IRQ_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
