	.file	"extr_pci_irq.c_pci_irq_assert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pci_irq_assert
	.type	pci_irq_assert, @function
pci_irq_assert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR [rdi]
	mov	rbx, rdi
	test	ebp, ebp
	jle	.L2
	mov	rdi, QWORD PTR pirqs[rip]
	call	nitems@PLT
	xor	edi, edi
	cmp	ebp, eax
	setbe	dil
	call	assert@PLT
	movsx	rax, DWORD PTR [rbx]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR pirqs[rip]
	lea	rbp, -12[rax+rdx*4]
	lea	r12, 8[rbp]
	mov	rdi, r12
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	add	eax, 1
	mov	DWORD PTR 0[rbp], eax
	cmp	eax, 1
	je	.L9
.L3:
	mov	rdi, r12
	call	pthread_mutex_unlock@PLT
.L2:
	mov	edi, DWORD PTR 4[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	xh_vm_ioapic_assert_irq@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	call	pirq_valid_irq@PLT
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 4[rbp]
	and	edi, DWORD PTR PIRQ_IRQ[rip]
	call	xh_vm_isa_assert_irq@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	pci_irq_assert, .-pci_irq_assert
	.comm	pirqs,8,8
	.comm	PIRQ_IRQ,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_pci_irq.c_pci_irq_assert.c"
	.text
	.align	2
	.global	pci_irq_assert
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_irq_assert, %function
pci_irq_assert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r5, r0
	cmp	r4, #0
	ble	.L2
	ldr	r6, .L10
	ldr	r0, [r6]
	bl	nitems
	cmp	r4, r0
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r4, [r5]
	ldr	r6, [r6]
	add	r4, r4, r4, lsl #1
	lsl	r4, r4, #2
	sub	r4, r4, #12
	add	r8, r6, r4
	add	r7, r8, #8
	mov	r0, r7
	bl	pthread_mutex_lock
	ldr	r3, [r6, r4]
	add	r3, r3, #1
	cmp	r3, #1
	str	r3, [r6, r4]
	beq	.L9
.L3:
	mov	r0, r7
	bl	pthread_mutex_unlock
.L2:
	ldr	r0, [r5, #4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	xh_vm_ioapic_assert_irq
.L9:
	ldr	r0, [r8, #4]
	bl	pirq_valid_irq
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L10+4
	ldr	r0, [r8, #4]
	ldr	r3, [r3]
	ldr	r1, [r5, #4]
	and	r0, r0, r3
	bl	xh_vm_isa_assert_irq
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	pthread_mutex_unlock
.L11:
	.align	2
.L10:
	.word	pirqs
	.word	PIRQ_IRQ
	.size	pci_irq_assert, .-pci_irq_assert
	.comm	pirqs,4,4
	.comm	PIRQ_IRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
