	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_irq_assert                 ## -- Begin function pci_irq_assert
	.p2align	4, 0x90
_pci_irq_assert:                        ## @pci_irq_assert
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.1:
	movq	_pirqs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_nitems
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_assert
	movq	(%r14), %r15
	movslq	(%r12), %rax
	decq	%rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r15,%rbx,4), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movl	(%r15,%rbx,4), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15,%rbx,4)
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
LBB0_4:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_ioapic_assert_irq           ## TAILCALL
LBB0_2:
	movl	4(%r15,%rbx,4), %edi
	callq	_pirq_valid_irq
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	(%r15,%rbx,4), %rax
	addq	$4, %rax
	movl	4(%r12), %edx
	movl	8(%r12), %edi
	movq	_PIRQ_IRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	callq	_vm_isa_assert_irq
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pirqs,8,3                      ## @pirqs
	.comm	_PIRQ_IRQ,4,2                   ## @PIRQ_IRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_irq_assert                 ; -- Begin function pci_irq_assert
	.p2align	2
_pci_irq_assert:                        ; @pci_irq_assert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w20, [x0]
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _pirqs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pirqs@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_nitems
	cmp	w20, w0
	cset	w0, le
	bl	_assert
	ldr	x21, [x21]
	ldrsw	x8, [x19]
	sub	x22, x8, #1
	mov	w8, #12
	madd	x23, x22, x8, x21
	add	x20, x23, #8
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	w8, [x23]
	add	w9, w8, #1
	str	w9, [x23]
	cbz	w8, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_3:
	ldp	w1, w0, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_vm_ioapic_assert_irq
LBB0_4:
	mov	w8, #12
	madd	x21, x22, x8, x21
	ldr	w0, [x21, #4]!
	bl	_pirq_valid_irq
	cbz	x0, LBB0_2
; %bb.5:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _PIRQ_IRQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PIRQ_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w1, w9, w8
	ldp	w2, w0, [x19, #4]
	bl	_vm_isa_assert_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pirqs,8,3                      ; @pirqs
	.comm	_PIRQ_IRQ,4,2                   ; @PIRQ_IRQ
.subsections_via_symbols
