	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_endpoint_test_legacy_irq
_pci_endpoint_test_legacy_irq:          ## @pci_endpoint_test_legacy_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PCI_ENDPOINT_TEST_IRQ_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQ_TYPE_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pci_endpoint_test_writel
	movq	_PCI_ENDPOINT_TEST_IRQ_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_pci_endpoint_test_writel
	movq	_PCI_ENDPOINT_TEST_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_COMMAND_RAISE_LEGACY_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_pci_endpoint_test_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ENDPOINT_TEST_IRQ_TYPE,4,2 ## @PCI_ENDPOINT_TEST_IRQ_TYPE
	.comm	_IRQ_TYPE_LEGACY,4,2            ## @IRQ_TYPE_LEGACY
	.comm	_PCI_ENDPOINT_TEST_IRQ_NUMBER,4,2 ## @PCI_ENDPOINT_TEST_IRQ_NUMBER
	.comm	_PCI_ENDPOINT_TEST_COMMAND,4,2  ## @PCI_ENDPOINT_TEST_COMMAND
	.comm	_COMMAND_RAISE_LEGACY_IRQ,4,2   ## @COMMAND_RAISE_LEGACY_IRQ
	.no_dead_strip	_pci_endpoint_test_legacy_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_endpoint_test_legacy_irq
_pci_endpoint_test_legacy_irq:          ; @pci_endpoint_test_legacy_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_ENDPOINT_TEST_IRQ_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ENDPOINT_TEST_IRQ_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQ_TYPE_LEGACY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_TYPE_LEGACY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_pci_endpoint_test_writel
Lloh6:
	adrp	x8, _PCI_ENDPOINT_TEST_IRQ_NUMBER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ENDPOINT_TEST_IRQ_NUMBER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pci_endpoint_test_writel
Lloh9:
	adrp	x8, _PCI_ENDPOINT_TEST_COMMAND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_ENDPOINT_TEST_COMMAND@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _COMMAND_RAISE_LEGACY_IRQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMMAND_RAISE_LEGACY_IRQ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_endpoint_test_writel
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
	cmp	w0, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ENDPOINT_TEST_IRQ_TYPE,4,2 ; @PCI_ENDPOINT_TEST_IRQ_TYPE
	.comm	_IRQ_TYPE_LEGACY,4,2            ; @IRQ_TYPE_LEGACY
	.comm	_PCI_ENDPOINT_TEST_IRQ_NUMBER,4,2 ; @PCI_ENDPOINT_TEST_IRQ_NUMBER
	.comm	_PCI_ENDPOINT_TEST_COMMAND,4,2  ; @PCI_ENDPOINT_TEST_COMMAND
	.comm	_COMMAND_RAISE_LEGACY_IRQ,4,2   ; @COMMAND_RAISE_LEGACY_IRQ
	.no_dead_strip	_pci_endpoint_test_legacy_irq
.subsections_via_symbols
