	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_pcie_handle_legacy_irq
_ks_pcie_handle_legacy_irq:             ## @ks_pcie_handle_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	%esi, %edi
	callq	_IRQ_STATUS
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ks_pcie_app_readl
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_irq_linear_revmap
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	%r12d, %edi
	callq	_generic_handle_irq
LBB0_2:
	movq	_IRQ_EOI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ks_pcie_app_writel             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": irq: irq_offset %d, virq %d\n"

	.comm	_IRQ_EOI,4,2                    ## @IRQ_EOI
	.no_dead_strip	_ks_pcie_handle_legacy_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_pcie_handle_legacy_irq
_ks_pcie_handle_legacy_irq:             ; @ks_pcie_handle_legacy_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	mov	x0, x1
	bl	_IRQ_STATUS
	mov	x1, x0
	mov	x0, x20
	bl	_ks_pcie_app_readl
	mov	x22, x0
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_irq_linear_revmap
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x22
	bl	_dev_dbg
	mov	x0, x22
	bl	_generic_handle_irq
LBB0_2:
Lloh2:
	adrp	x8, _IRQ_EOI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_EOI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ks_pcie_app_writel
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": irq: irq_offset %d, virq %d\n"

	.comm	_IRQ_EOI,4,2                    ; @IRQ_EOI
	.no_dead_strip	_ks_pcie_handle_legacy_irq
.subsections_via_symbols
