	.file	"extr_io_apic.c_ioapic_disable_source.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ioapic_disable_source, @function
ioapic_disable_source:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	lea	rdi, icu_lock[rip]
	call	mtx_lock_spin@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L2
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	je	.L6
.L2:
	cmp	DWORD PTR PIC_EOI[rip], ebx
	je	.L7
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, icu_lock[rip]
	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	mtx_unlock_spin@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, 1
	mov	rdi, rbp
	call	_ioapic_eoi_source@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 8[rbp]
	mov	r13d, DWORD PTR 4[rbp]
	or	r13d, DWORD PTR IOART_INTMSET[rip]
	call	IOAPIC_REDTBL_LO@PLT
	mov	edi, DWORD PTR [r12]
	mov	edx, r13d
	mov	esi, eax
	call	ioapic_write@PLT
	mov	DWORD PTR 0[rbp], 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ioapic_disable_source, .-ioapic_disable_source
	.comm	icu_lock,4,4
	.comm	PIC_EOI,4,4
	.comm	IOART_INTMSET,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_io_apic.c_ioapic_disable_source.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ioapic_disable_source, %function
ioapic_disable_source:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, .L8
	mov	r5, r1
	ldr	r6, [r4]
	bl	mtx_lock_spin
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L6
.L2:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L8
	b	mtx_unlock_spin
.L7:
	mov	r0, r4
	mov	r1, #1
	bl	_ioapic_eoi_source
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L8
	b	mtx_unlock_spin
.L6:
	ldr	r3, .L8+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, [r4, #8]
	ldr	r7, [r6]
	orr	r6, r2, r3
	bl	IOAPIC_REDTBL_LO
	mov	r2, r6
	mov	r1, r0
	mov	r0, r7
	bl	ioapic_write
	mov	r3, #1
	str	r3, [r4]
	b	.L2
.L9:
	.align	2
.L8:
	.word	icu_lock
	.word	PIC_EOI
	.word	IOART_INTMSET
	.size	ioapic_disable_source, .-ioapic_disable_source
	.comm	icu_lock,4,4
	.comm	PIC_EOI,4,4
	.comm	IOART_INTMSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
