	.file	"extr_sun4d_irq.c_sun4d_disable_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sun4d_disable_irq, @function
sun4d_disable_irq:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR NR_IRQS[rip], edi
	jbe	.L7
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, edi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	shr	eax, 5
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xor	ebp, ebp
	lea	edx, -1[rax]
	mov	rax, QWORD PTR sbus_tid[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, rbp
	mov	ebx, edi
	lea	rdi, sun4d_imsk_lock[rip]
	mov	r12d, DWORD PTR [rax+rdx*4]
	shr	ebx, 2
	call	spin_lock_irqsave@PLT
	and	ebx, 7
	mov	edi, r12d
	call	cc_get_imsk_other@PLT
	mov	rdx, QWORD PTR sbus_to_pil[rip]
	mov	edi, r12d
	mov	edx, DWORD PTR [rdx+rbx*4]
	bts	eax, edx
	mov	esi, eax
	call	cc_set_imsk_other@PLT
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	lea	rdi, sun4d_imsk_lock[rip]
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	sun4d_disable_irq, .-sun4d_disable_irq
	.comm	sun4d_imsk_lock,4,4
	.comm	sbus_to_pil,8,8
	.comm	sbus_tid,8,8
	.comm	NR_IRQS,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_sun4d_irq.c_sun4d_disable_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4d_disable_irq, %function
sun4d_disable_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, r0
	bxhi	lr
	push	{r4, r5, r6, lr}
	mov	r5, #0
	ldr	r2, .L7+4
	lsr	r3, r0, #5
	ldr	r2, [r2]
	sub	r3, r3, #-1073741823
	ldr	r6, [r2, r3, lsl #2]
	mov	r1, r5
	mov	r4, r0
	ldr	r0, .L7+8
	bl	spin_lock_irqsave
	mov	r0, r6
	bl	cc_get_imsk_other
	mov	r1, #1
	mov	r3, r0
	ldr	r2, .L7+12
	and	r4, r4, #28
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r2, [r4, r2]
	orr	r1, r3, r1, lsl r2
	bl	cc_set_imsk_other
	mov	r1, r5
	pop	{r4, r5, r6, lr}
	ldr	r0, .L7+8
	b	spin_unlock_irqrestore
.L8:
	.align	2
.L7:
	.word	NR_IRQS
	.word	sbus_tid
	.word	sun4d_imsk_lock
	.word	sbus_to_pil
	.size	sun4d_disable_irq, .-sun4d_disable_irq
	.comm	sun4d_imsk_lock,4,4
	.comm	sbus_to_pil,4,4
	.comm	sbus_tid,4,4
	.comm	NR_IRQS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
