	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc_sata_interrupt
_vsc_sata_interrupt:                    ## @vsc_sata_interrupt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	24(%rsi), %rax
	movq	_VSC_MMIO_BAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VSC_SATA_INT_STAT_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	addq	(%rax,%rcx,8), %rdi
	callq	_readl
	movl	%eax, %r14d
	leal	1(%r14), %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdx
	callq	_dev_printk
	jmp	LBB0_10
LBB0_3:
	leaq	4(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movl	%eax, %ecx
	addl	$8, %ebx
	cmpq	%rcx, %r12
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%ebx, %ecx
	sarl	%cl, %edi
	andl	$255, %edi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r12,4), %esi
	callq	_vsc_port_intr
	incl	%r13d
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%r13d, %r13d
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_10:
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IRQ_RETVAL                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VSC_MMIO_BAR,8,3               ## @VSC_MMIO_BAR
	.comm	_VSC_SATA_INT_STAT_OFFSET,8,3   ## @VSC_SATA_INT_STAT_OFFSET
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	": IRQ status == 0xffffffff, PCI fault or device removal?\n"

	.no_dead_strip	_vsc_sata_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc_sata_interrupt
_vsc_sata_interrupt:                    ; @vsc_sata_interrupt
	.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, x1
	ldr	x8, [x1, #24]
Lloh0:
	adrp	x9, _VSC_MMIO_BAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VSC_MMIO_BAR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _VSC_SATA_INT_STAT_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VSC_SATA_INT_STAT_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	add	w8, w0, #1
	cmp	w8, #2
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	cbz	w20, LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_printk
	mov	w22, #0
	b	LBB0_11
LBB0_3:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.4:
	mov	w23, #0
	mov	x24, #0
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	w23, w23, #8
	cmp	x24, w8, uxtw
	b.hs	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	asr	w9, w20, w23
	ands	w0, w9, #0xff
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x24, lsl #2]
	bl	_vsc_port_intr
	add	w22, w22, #1
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
	mov	w22, #0
	b	LBB0_11
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x21
	bl	_spin_unlock
LBB0_11:
	mov	x0, x22
	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	_IRQ_RETVAL
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VSC_MMIO_BAR,8,3               ; @VSC_MMIO_BAR
	.comm	_VSC_SATA_INT_STAT_OFFSET,8,3   ; @VSC_SATA_INT_STAT_OFFSET
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	": IRQ status == 0xffffffff, PCI fault or device removal?\n"

	.no_dead_strip	_vsc_sata_interrupt
.subsections_via_symbols
