	.file	"extr_chip.c_handle_untracked_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	handle_untracked_irq
	.type	handle_untracked_irq, @function
handle_untracked_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 4[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, r12
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	call	raw_spin_lock@PLT
	mov	rdi, rbp
	call	irq_may_run@PLT
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR IRQS_REPLAY[rip]
	or	eax, DWORD PTR IRQS_WAITING[rip]
	mov	edi, 1
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	jne	.L12
	call	unlikely@PLT
	test	rax, rax
	mov	eax, DWORD PTR IRQS_PENDING[rip]
	je	.L4
.L14:
	or	DWORD PTR 0[rbp], eax
.L2:
	mov	rdi, r12
	call	raw_spin_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	not	eax
	and	DWORD PTR 0[rbp], eax
	mov	esi, DWORD PTR IRQD_IRQ_INPROGRESS[rip]
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	irqd_set@PLT
	mov	rdi, r12
	call	raw_spin_unlock@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	__handle_irq_event_percpu@PLT
	mov	rdi, r12
	call	raw_spin_lock@PLT
	mov	esi, DWORD PTR IRQD_IRQ_INPROGRESS[rip]
	mov	rdi, r13
	call	irqd_clear@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, 8[rbp]
	call	irqd_irq_disabled@PLT
	xor	edi, edi
	test	rax, rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	mov	eax, DWORD PTR IRQS_PENDING[rip]
	jne	.L14
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_untracked_irq, .-handle_untracked_irq
	.comm	IRQS_WAITING,4,4
	.comm	IRQS_REPLAY,4,4
	.comm	IRQS_PENDING,4,4
	.comm	IRQD_IRQ_INPROGRESS,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_chip.c_handle_untracked_irq.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_untracked_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_untracked_irq, %function
handle_untracked_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r3, #0
	mov	r4, r0
	ldr	r2, .L15
	add	r5, r0, #4
	sub	sp, sp, #12
	mov	r0, r5
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	raw_spin_lock
	mov	r0, r4
	bl	irq_may_run
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	ldr	r1, [r4, #12]
	orr	r2, r2, r0
	bic	r3, r3, r2
	cmp	r1, #0
	moveq	r0, #1
	str	r3, [r4]
	bne	.L12
	bl	unlikely
	cmp	r0, #0
	beq	.L4
.L14:
	ldr	r2, .L15+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
.L2:
	mov	r0, r5
	bl	raw_spin_unlock
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r6, r4
	ldr	r2, .L15+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r7, .L15+16
	bic	r3, r3, r2
	str	r3, [r6], #8
	ldr	r1, [r7]
	mov	r0, r6
	bl	irqd_set
	mov	r0, r5
	bl	raw_spin_unlock
	mov	r1, sp
	mov	r0, r4
	bl	__handle_irq_event_percpu
	mov	r0, r5
	bl	raw_spin_lock
	mov	r0, r6
	ldr	r1, [r7]
	bl	irqd_clear
	b	.L2
.L12:
	add	r0, r4, #8
	bl	irqd_irq_disabled
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L14
	b	.L4
.L13:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	IRQS_WAITING
	.word	IRQS_REPLAY
	.word	IRQS_PENDING
	.word	IRQD_IRQ_INPROGRESS
	.size	handle_untracked_irq, .-handle_untracked_irq
	.comm	IRQS_WAITING,4,4
	.comm	IRQS_REPLAY,4,4
	.comm	IRQS_PENDING,4,4
	.comm	IRQD_IRQ_INPROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
