	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_handle_irq
_mtip_handle_irq:                       ## @mtip_handle_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	%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	%rdi, %r13
	movq	16(%rdi), %r15
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_HOST_IRQ_STAT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r13), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PORT_IRQ_STAT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	(%r14), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_PORT_IRQ_SDB_FIS@GOTPCREL(%rip), %rax
	movl	%r12d, %edi
	andl	(%rax), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_mtip_process_sdbf
LBB0_3:
	movq	_PORT_IRQ_ERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	12(%r13), %edi
	callq	_mtip_check_surprise_removal
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_mtip_command_cleanup
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_6:
	movq	_MTIP_DDF_REMOVE_PENDING_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_13
LBB0_8:
	movl	(%rbx), %esi
	andl	%r12d, %esi
	movq	%r13, %rdi
	callq	_mtip_process_errors
LBB0_9:
	movq	_PORT_IRQ_LEGACY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	andl	%r12d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %esi
	andl	%r12d, %esi
	movq	%r13, %rdi
	callq	_mtip_process_legacy
LBB0_11:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_HOST_IRQ_STAT@GOTPCREL(%rip), %rbx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_12:
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_HOST_IRQ_STAT,8,3              ## @HOST_IRQ_STAT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_PORT_IRQ_STAT,8,3              ## @PORT_IRQ_STAT
	.comm	_PORT_IRQ_SDB_FIS,4,2           ## @PORT_IRQ_SDB_FIS
	.comm	_PORT_IRQ_ERR,4,2               ## @PORT_IRQ_ERR
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ## @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_PORT_IRQ_LEGACY,4,2            ## @PORT_IRQ_LEGACY
	.no_dead_strip	_mtip_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_handle_irq
_mtip_handle_irq:                       ; @mtip_handle_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x25, [x0, #16]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x23, _HOST_IRQ_STAT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HOST_IRQ_STAT@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.1:
Lloh5:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	ldr	w19, [x24]
	ldr	x8, [x25]
Lloh7:
	adrp	x26, _PORT_IRQ_STAT@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PORT_IRQ_STAT@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writel
Lloh9:
	adrp	x8, _PORT_IRQ_SDB_FIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_IRQ_SDB_FIS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w0, w8, w22
	bl	_likely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_mtip_process_sdbf
LBB0_3:
Lloh12:
	adrp	x25, _PORT_IRQ_ERR@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PORT_IRQ_ERR@GOTPAGEOFF]
	ldr	w8, [x25]
	and	w0, w8, w22
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x20, #12]
	bl	_mtip_check_surprise_removal
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_mtip_command_cleanup
	ldr	w19, [x24]
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MTIP_DDF_REMOVE_PENDING_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x25]
	and	w1, w8, w22
	mov	x0, x20
	bl	_mtip_process_errors
LBB0_8:
Lloh17:
	adrp	x24, _PORT_IRQ_LEGACY@GOTPAGE
Lloh18:
	ldr	x24, [x24, _PORT_IRQ_LEGACY@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w0, w8, w22
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x24]
	and	w1, w8, w22
	mov	x0, x20
	bl	_mtip_process_legacy
LBB0_10:
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_HOST_IRQ_STAT,8,3              ; @HOST_IRQ_STAT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_PORT_IRQ_STAT,8,3              ; @PORT_IRQ_STAT
	.comm	_PORT_IRQ_SDB_FIS,4,2           ; @PORT_IRQ_SDB_FIS
	.comm	_PORT_IRQ_ERR,4,2               ; @PORT_IRQ_ERR
	.comm	_MTIP_DDF_REMOVE_PENDING_BIT,4,2 ; @MTIP_DDF_REMOVE_PENDING_BIT
	.comm	_PORT_IRQ_LEGACY,4,2            ; @PORT_IRQ_LEGACY
	.no_dead_strip	_mtip_handle_irq
.subsections_via_symbols
