	.file	"extr_bcm_bmips.c_bcm_bmips_mask_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid sbflag# ivec"
	.text
	.p2align 4
	.type	bcm_bmips_mask_irq, @function
bcm_bmips_mask_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR SIBA_MAX_INTR[rip], rdx
	setg	dil
	call	KASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[r12], rbp
	mov	rsi, rbp
	setg	dil
	call	KASSERT@PLT
	mov	ecx, r13d
	sal	ebx, cl
	test	rbp, rbp
	jne	.L2
	mov	esi, DWORD PTR SIBA_CFG0_INTVEC[rip]
	mov	edi, DWORD PTR [r12]
	not	ebx
	call	bus_read_4@PLT
	mov	esi, DWORD PTR SIBA_CFG0_INTVEC[rip]
	and	ebx, eax
	mov	edx, ebx
.L4:
	mov	edi, DWORD PTR [r12]
	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
	jmp	bus_write_4@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR SIBA_IPS_INT1_MASK[rip]
	mov	rsi, r13
	sar	edi, cl
	and	edi, 1
	call	KASSERT@PLT
	mov	esi, DWORD PTR SIBA_CFG0_IPSFLAG[rip]
	mov	edi, DWORD PTR [r12]
	call	bus_read_4@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	SIBA_IPS_INT_SHIFT@PLT
	mov	rdi, rbp
	mov	ecx, eax
	sal	ebx, cl
	call	SIBA_IPS_INT_MASK@PLT
	mov	esi, DWORD PTR SIBA_CFG0_IPSFLAG[rip]
	and	ebx, eax
	mov	edx, ebx
	not	edx
	and	edx, r13d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	bcm_bmips_mask_irq, .-bcm_bmips_mask_irq
	.comm	SIBA_MAX_INTR,8,8
	.comm	SIBA_IPS_INT1_MASK,4,4
	.comm	SIBA_CFG0_IPSFLAG,4,4
	.comm	SIBA_CFG0_INTVEC,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_bcm_bmips.c_bcm_bmips_mask_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid sbflag# ivec\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm_bmips_mask_irq, %function
bcm_bmips_mask_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r7, r2
	mov	r6, #1
	ldr	r3, .L5
	ldr	r1, .L5+4
	ldr	r0, [r3]
	lsl	r6, r6, r7
	cmp	r0, r2
	movle	r0, #0
	movgt	r0, #1
	bl	KASSERT
	ldr	r0, [r5, #4]
	mov	r1, r4
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
	bl	KASSERT
	cmp	r4, #0
	bne	.L2
	ldr	r4, .L5+8
	ldr	r0, [r5]
	ldr	r1, [r4]
	bl	bus_read_4
	ldr	r1, [r4]
	bic	r2, r0, r6
	ldr	r0, [r5]
	pop	{r4, r5, r6, r7, r8, lr}
	b	bus_write_4
.L2:
	ldr	r3, .L5+12
	ldr	r8, .L5+16
	ldr	r0, [r3]
	mov	r1, r7
	asr	r0, r0, r7
	and	r0, r0, #1
	bl	KASSERT
	ldr	r1, [r8]
	ldr	r0, [r5]
	bl	bus_read_4
	mov	r7, r0
	mov	r0, r4
	bl	SIBA_IPS_INT_SHIFT
	mov	r2, r0
	mov	r0, r4
	lsl	r6, r6, r2
	bl	SIBA_IPS_INT_MASK
	and	r6, r6, r0
	ldr	r1, [r8]
	ldr	r0, [r5]
	bic	r2, r7, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	bus_write_4
.L6:
	.align	2
.L5:
	.word	SIBA_MAX_INTR
	.word	.LC0
	.word	SIBA_CFG0_INTVEC
	.word	SIBA_IPS_INT1_MASK
	.word	SIBA_CFG0_IPSFLAG
	.size	bcm_bmips_mask_irq, .-bcm_bmips_mask_irq
	.comm	SIBA_MAX_INTR,4,4
	.comm	SIBA_IPS_INT1_MASK,4,4
	.comm	SIBA_CFG0_IPSFLAG,4,4
	.comm	SIBA_CFG0_INTVEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
