	.file	"extr_gpio-brcmstb.c_brcmstb_gpio_set_imask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	brcmstb_gpio_set_imask, @function
brcmstb_gpio_set_imask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rsi, r12
	lea	r14, 16[r12]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 8[r12]
	mov	DWORD PTR 12[rsp], edx
	call	brcmstb_gpio_hwirq_to_offset@PLT
	mov	edi, eax
	call	BIT@PLT
	mov	rsi, r15
	mov	rdi, r14
	mov	ebx, eax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [r12]
	mov	rbp, QWORD PTR 32[r12]
	mov	QWORD PTR [rsp], rax
	call	GIO_MASK@PLT
	mov	rcx, QWORD PTR [rsp]
	lea	rdi, [rcx+rax]
	call	rbp
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, ebx
	not	ebx
	and	ebx, eax
	or	esi, eax
	mov	edi, DWORD PTR [r12]
	mov	r13, QWORD PTR 0[r13]
	test	edx, edx
	cmove	esi, ebx
	mov	rbx, QWORD PTR 24[r12]
	mov	ebp, esi
	call	GIO_MASK@PLT
	mov	esi, ebp
	lea	rdi, 0[r13+rax]
	call	rbx
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rsi, r15
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	brcmstb_gpio_set_imask, .-brcmstb_gpio_set_imask
	.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_gpio-brcmstb.c_brcmstb_gpio_set_imask.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	brcmstb_gpio_set_imask, %function
brcmstb_gpio_set_imask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r1, r4
	mov	r6, r2
	ldr	r7, [r4, #4]
	bl	brcmstb_gpio_hwirq_to_offset
	bl	BIT
	add	r8, r4, #8
	mov	r5, r0
	mov	r1, #0
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r0, [r4]
	ldr	r9, [r4, #16]
	ldr	r10, [r7]
	bl	GIO_MASK
	add	r0, r10, r0
	blx	r9
	cmp	r6, #0
	orrne	r5, r5, r0
	biceq	r5, r0, r5
	ldr	r0, [r4]
	ldr	r6, [r7]
	ldr	r4, [r4, #12]
	bl	GIO_MASK
	mov	r1, r5
	add	r0, r6, r0
	blx	r4
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
	.size	brcmstb_gpio_set_imask, .-brcmstb_gpio_set_imask
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
