	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_intr_main
_fsl_sata_intr_main:                    ## @fsl_sata_intr_main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	movq	_FSL_SATA_P_CCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ATA_INL
	movl	%eax, %r15d
	movl	24(%r14), %edi
	movl	(%rbx), %esi
	movl	%eax, %edx
	callq	_ATA_OUTL
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%r14)
	jne	LBB0_8
## %bb.2:
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	movq	_FSL_SATA_ERR_NONE@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$8, %r13
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r15d
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rdi
	cmpq	$0, (%rdi,%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r13, %rdi
	movl	(%r12), %esi
	callq	_fsl_sata_end_transaction
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	movq	_FSL_SATA_P_HSTS_SNTFU@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, (%rax)
	je	LBB0_9
## %bb.10:
	movl	24(%r14), %edi
	movq	_FSL_SATA_P_SNTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATA_INL
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_11
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_11:
	movl	24(%r14), %edi
	movq	_FSL_SATA_P_SERR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ATA_INL
	movl	%eax, %ebx
	movl	24(%r14), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_ATA_OUTL
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:
	movq	_FSL_SATA_P_HSTS_PR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fsl_sata_phy_check_events
LBB0_14:
	movq	_FSL_SATA_P_HSTS_FE@GOTPCREL(%rip), %rax
	movq	_FSL_SATA_P_HSTS_DE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	24(%r14), %edi
	movq	_FSL_SATA_P_CER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ATA_INL
	movl	%eax, %r12d
	movl	24(%r14), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_ATA_OUTL
	movl	24(%r14), %edi
	movq	_FSL_SATA_P_DER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ATA_INL
	movl	24(%r14), %edi
	movl	(%r15), %esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_ATA_OUTL
	testl	%r13d, %ebx
	je	LBB0_27
## %bb.15:
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.16:
	movq	$0, 16(%r14)
	movq	_CAM_REQUEUE_REQ@GOTPCREL(%rip), %rax
	movq	_CAM_RELEASE_SIMQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_CAM_DEV_QFRZN@GOTPCREL(%rip), %r15
	testl	%ecx, (%r15)
	jne	LBB0_18
## %bb.17:
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_xpt_freeze_devq
	movl	(%r15), %eax
	orl	%eax, (%rbx)
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_fsl_sata_done
LBB0_19:
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.20:
	xorl	%ebx, %ebx
	movq	_FSL_SATA_ERR_TFE@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rax), %esi
	addq	%rbx, %rdi
	callq	_fsl_sata_end_transaction
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_27
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	(%rdi,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	btl	%r13d, %r12d
	movq	%r15, %rax
	jb	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rcx), %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	btl	%eax, %ecx
	movq	_FSL_SATA_ERR_SATA@GOTPCREL(%rip), %rax
	jb	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_FSL_SATA_ERR_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_27:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_28
## %bb.29:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fsl_sata_notify_events         ## TAILCALL
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_SATA_P_CCR,4,2             ## @FSL_SATA_P_CCR
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ## @FSL_SATA_MAX_SLOTS
	.comm	_FSL_SATA_ERR_NONE,4,2          ## @FSL_SATA_ERR_NONE
	.comm	_FSL_SATA_P_HSTS_SNTFU,4,2      ## @FSL_SATA_P_HSTS_SNTFU
	.comm	_FSL_SATA_P_SNTF,4,2            ## @FSL_SATA_P_SNTF
	.comm	_FSL_SATA_P_SERR,4,2            ## @FSL_SATA_P_SERR
	.comm	_FSL_SATA_P_HSTS_PR,4,2         ## @FSL_SATA_P_HSTS_PR
	.comm	_FSL_SATA_P_HSTS_FE,4,2         ## @FSL_SATA_P_HSTS_FE
	.comm	_FSL_SATA_P_HSTS_DE,4,2         ## @FSL_SATA_P_HSTS_DE
	.comm	_FSL_SATA_P_CER,4,2             ## @FSL_SATA_P_CER
	.comm	_FSL_SATA_P_DER,4,2             ## @FSL_SATA_P_DER
	.comm	_CAM_REQUEUE_REQ,4,2            ## @CAM_REQUEUE_REQ
	.comm	_CAM_RELEASE_SIMQ,4,2           ## @CAM_RELEASE_SIMQ
	.comm	_CAM_DEV_QFRZN,4,2              ## @CAM_DEV_QFRZN
	.comm	_FSL_SATA_ERR_TFE,4,2           ## @FSL_SATA_ERR_TFE
	.comm	_FSL_SATA_ERR_SATA,4,2          ## @FSL_SATA_ERR_SATA
	.comm	_FSL_SATA_ERR_INVALID,4,2       ## @FSL_SATA_ERR_INVALID
	.no_dead_strip	_fsl_sata_intr_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_intr_main
_fsl_sata_intr_main:                    ; @fsl_sata_intr_main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x22, _FSL_SATA_P_CCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FSL_SATA_P_CCR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ATA_INL
	mov	x20, x0
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_ATA_OUTL
	ldr	x9, [x19]
Lloh2:
	adrp	x24, _FSL_SATA_MAX_SLOTS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FSL_SATA_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w20, #0
	ccmp	x9, #0, #0, ne
	ccmp	w8, #1, #8, eq
	b.ge	LBB0_3
LBB0_1:
Lloh4:
	adrp	x8, _FSL_SATA_P_HSTS_SNTFU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FSL_SATA_P_HSTS_SNTFU@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.2:
	ldr	w0, [x19, #24]
Lloh7:
	adrp	x8, _FSL_SATA_P_SNTF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FSL_SATA_P_SNTF@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ATA_INL
	mov	x20, x0
	b	LBB0_9
LBB0_3:
	mov	x22, #0
	mov	x23, #0
Lloh10:
	adrp	x25, _FSL_SATA_ERR_NONE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _FSL_SATA_ERR_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w23
	tbz	w9, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	bl	_fsl_sata_end_transaction
	ldr	w8, [x24]
	b	LBB0_4
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	w0, [x19, #24]
Lloh12:
	adrp	x23, _FSL_SATA_P_SERR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _FSL_SATA_P_SERR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ATA_INL
	mov	x22, x0
	ldr	w0, [x19, #24]
	ldr	w1, [x23]
	mov	x2, x22
	bl	_ATA_OUTL
Lloh14:
	adrp	x8, _FSL_SATA_P_HSTS_PR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FSL_SATA_P_HSTS_PR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w22, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	bl	_fsl_sata_phy_check_events
LBB0_11:
Lloh17:
	adrp	x8, _FSL_SATA_P_HSTS_FE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FSL_SATA_P_HSTS_FE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _FSL_SATA_P_HSTS_DE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FSL_SATA_P_HSTS_DE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w23, w8, w21
	ldr	w0, [x19, #24]
Lloh23:
	adrp	x22, _FSL_SATA_P_CER@GOTPAGE
Lloh24:
	ldr	x22, [x22, _FSL_SATA_P_CER@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ATA_INL
	mov	x21, x0
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_ATA_OUTL
	ldr	w0, [x19, #24]
Lloh25:
	adrp	x25, _FSL_SATA_P_DER@GOTPAGE
Lloh26:
	ldr	x25, [x25, _FSL_SATA_P_DER@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_ATA_INL
	mov	x22, x0
	ldr	w0, [x19, #24]
	ldr	w1, [x25]
	mov	x2, x22
	bl	_ATA_OUTL
	cbz	w23, LBB0_23
; %bb.12:
	ldr	x23, [x19, #16]
	cbz	x23, LBB0_16
; %bb.13:
	str	xzr, [x19, #16]
Lloh27:
	adrp	x8, _CAM_REQUEUE_REQ@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CAM_REQUEUE_REQ@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _CAM_RELEASE_SIMQ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CAM_RELEASE_SIMQ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x23]
Lloh33:
	adrp	x25, _CAM_DEV_QFRZN@GOTPAGE
Lloh34:
	ldr	x25, [x25, _CAM_DEV_QFRZN@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x23, #4]
	mov	w1, #1
	bl	_xpt_freeze_devq
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
LBB0_15:
	mov	x0, x19
	mov	x1, x23
	bl	_fsl_sata_done
LBB0_16:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.17:
	mov	x23, #0
	mov	x25, #0
Lloh35:
	adrp	x26, _FSL_SATA_ERR_TFE@GOTPAGE
Lloh36:
	ldr	x26, [x26, _FSL_SATA_ERR_TFE@GOTPAGEOFF]
Lloh37:
	adrp	x27, _FSL_SATA_ERR_SATA@GOTPAGE
Lloh38:
	ldr	x27, [x27, _FSL_SATA_ERR_SATA@GOTPAGEOFF]
Lloh39:
	adrp	x28, _FSL_SATA_ERR_INVALID@GOTPAGE
Lloh40:
	ldr	x28, [x28, _FSL_SATA_ERR_INVALID@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w1, [x8]
	add	x0, x9, x23
	bl	_fsl_sata_end_transaction
	ldr	w8, [x24]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	add	x23, x23, #8
	cmp	x25, w8, sxtw
	b.ge	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x23]
	cbz	x10, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	lsr	w11, w21, w25
	mov	x8, x26
	tbnz	w11, #0, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x10]
	lsr	w8, w22, w8
	tst	w8, #0x1
	csel	x8, x28, x27, eq
	b	LBB0_18
LBB0_23:
	cbz	w20, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fsl_sata_notify_events
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_SATA_P_CCR,4,2             ; @FSL_SATA_P_CCR
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ; @FSL_SATA_MAX_SLOTS
	.comm	_FSL_SATA_ERR_NONE,4,2          ; @FSL_SATA_ERR_NONE
	.comm	_FSL_SATA_P_HSTS_SNTFU,4,2      ; @FSL_SATA_P_HSTS_SNTFU
	.comm	_FSL_SATA_P_SNTF,4,2            ; @FSL_SATA_P_SNTF
	.comm	_FSL_SATA_P_SERR,4,2            ; @FSL_SATA_P_SERR
	.comm	_FSL_SATA_P_HSTS_PR,4,2         ; @FSL_SATA_P_HSTS_PR
	.comm	_FSL_SATA_P_HSTS_FE,4,2         ; @FSL_SATA_P_HSTS_FE
	.comm	_FSL_SATA_P_HSTS_DE,4,2         ; @FSL_SATA_P_HSTS_DE
	.comm	_FSL_SATA_P_CER,4,2             ; @FSL_SATA_P_CER
	.comm	_FSL_SATA_P_DER,4,2             ; @FSL_SATA_P_DER
	.comm	_CAM_REQUEUE_REQ,4,2            ; @CAM_REQUEUE_REQ
	.comm	_CAM_RELEASE_SIMQ,4,2           ; @CAM_RELEASE_SIMQ
	.comm	_CAM_DEV_QFRZN,4,2              ; @CAM_DEV_QFRZN
	.comm	_FSL_SATA_ERR_TFE,4,2           ; @FSL_SATA_ERR_TFE
	.comm	_FSL_SATA_ERR_SATA,4,2          ; @FSL_SATA_ERR_SATA
	.comm	_FSL_SATA_ERR_INVALID,4,2       ; @FSL_SATA_ERR_INVALID
	.no_dead_strip	_fsl_sata_intr_main
.subsections_via_symbols
