	.file	"extr_ab8500-core.c_ab8500_irq_sync_unlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ab8500_irq_sync_unlock, @function
ab8500_irq_sync_unlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	call	irq_data_get_irq_chip_data@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L2
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	test	edx, edx
	js	.L4
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR AB8500_INTERRUPT[rip]
	mov	rcx, r12
	mov	rdi, rbp
	add	edx, DWORD PTR AB8500_IT_MASK1_REG[rip]
	mov	QWORD PTR [rax+r13], r12
	call	set_register_interruptible@PLT
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L7
.L2:
	mov	rax, QWORD PTR 16[rbp]
	lea	r13, 0[0+rbx*8]
	mov	r12, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax+rbx*8], r12
	je	.L4
	mov	rax, QWORD PTR 24[rbp]
	lea	r14, 0[0+rbx*4]
	mov	edx, DWORD PTR [rax+rbx*4]
	cmp	edx, 11
	jne	.L5
	mov	rdi, rbp
	call	is_ab8500_1p1_or_earlier@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rax+r14]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, 36[rbp]
	call	atomic_dec@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rdi, 32[rbp]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	ab8500_irq_sync_unlock, .-ab8500_irq_sync_unlock
	.comm	AB8500_IT_MASK1_REG,4,4
	.comm	AB8500_INTERRUPT,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_ab8500-core.c_ab8500_irq_sync_unlock.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_irq_sync_unlock, %function
ab8500_irq_sync_unlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	irq_data_get_irq_chip_data
	ldr	r3, [r0]
	mov	r5, r0
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	ldr	r8, .L17
	ldr	r7, .L17+4
	b	.L2
.L5:
	cmp	r2, #0
	blt	.L15
	ldr	r1, [r8]
	ldr	r3, [r5, #4]
	add	r2, r2, r1
	str	r6, [r3, r9]
	mov	r0, r5
	mov	r3, r6
	ldr	r1, [r7]
	bl	set_register_interruptible
.L15:
	ldr	r3, [r5]
.L4:
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
.L2:
	ldr	r1, [r5, #8]
	ldr	r2, [r5, #4]
	ldr	r6, [r1, r4, lsl #2]
	ldr	r2, [r2, r4, lsl #2]
	lsl	r9, r4, #2
	cmp	r2, r6
	beq	.L4
	ldr	r3, [r5, #12]
	ldr	r2, [r3, r4, lsl #2]
	cmp	r2, #11
	bne	.L5
	mov	r0, r5
	bl	is_ab8500_1p1_or_earlier
	cmp	r0, #0
	bne	.L15
	ldr	r3, [r5, #12]
	ldr	r2, [r3, r9]
	b	.L5
.L7:
	add	r0, r5, #20
	bl	atomic_dec
	add	r0, r5, #16
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mutex_unlock
.L18:
	.align	2
.L17:
	.word	AB8500_IT_MASK1_REG
	.word	AB8500_INTERRUPT
	.size	ab8500_irq_sync_unlock, .-ab8500_irq_sync_unlock
	.comm	AB8500_IT_MASK1_REG,4,4
	.comm	AB8500_INTERRUPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
