	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sataaction
_fsl_sataaction:                        ## @fsl_sataaction
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	28(%rsi), %edi
	movq	_CAM_DEBUG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r15), %rdx
	callq	_CAM_DEBUG
	movq	%rbx, %rdi
	callq	_cam_sim_softc
	movq	%rax, %r14
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fsl_sata_check_ids
	testl	%eax, %eax
	jne	LBB0_25
## %bb.3:
	cmpl	$0, 48(%r14)
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_26
## %bb.5:
	movq	8(%r15), %rax
	decq	%rax
	cmpq	$13, %rax
	ja	LBB0_26
LBB0_6:
	movq	_CAM_SEL_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_7:
	movq	_CAM_REQ_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_8:
	movq	%r14, %rdi
	callq	_fsl_sata_reset
	jmp	LBB0_43
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fsl_sata_check_ids
	testl	%eax, %eax
	jne	LBB0_25
## %bb.10:
	movl	48(%r15), %eax
	movq	_CTS_TYPE_CURRENT_SETTINGS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	shlq	$4, %rdx
	movq	8(%rdx,%r14), %r12
	movq	8(%r15), %rbx
	movl	(%r15), %eax
	movq	_CTS_SATA_VALID_REVISION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movl	4(%r15), %ecx
	leaq	(%rbx,%rbx,4), %rdx
	movl	%ecx, (%r12,%rdx,8)
LBB0_12:
	movq	_CTS_SATA_VALID_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movl	40(%r15), %ecx
	leaq	(%rbx,%rbx,4), %rdx
	movl	%ecx, 32(%r12,%rdx,8)
LBB0_14:
	movq	_CTS_SATA_VALID_BYTECOUNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	32(%r15), %rsi
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_min
	leaq	(%rbx,%rbx,4), %rcx
	movq	%rax, 24(%r12,%rcx,8)
	movl	(%r15), %eax
LBB0_16:
	movq	_CTS_SATA_VALID_TAGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rsi
	callq	_min
	leaq	(%rbx,%rbx,4), %rcx
	movq	%rax, 16(%r12,%rcx,8)
	movl	(%r15), %eax
LBB0_18:
	movq	_CTS_SATA_VALID_PM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	movl	24(%r15), %ecx
	movl	%ecx, (%r14)
LBB0_20:
	movq	_CTS_SATA_VALID_ATAPI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_43
## %bb.21:
	movl	12(%r15), %eax
	leaq	(%rbx,%rbx,4), %rcx
	movl	%eax, 8(%r12,%rcx,8)
	jmp	LBB0_43
LBB0_23:
	movl	$1, (%r15)
	movq	_PI_SDTR_ABLE@GOTPCREL(%rip), %rax
	movq	_PI_TAG_ABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 104(%r15)
	movl	$0, 100(%r15)
	movq	_PIM_SEQSCAN@GOTPCREL(%rip), %rax
	movq	_PIM_UNMAPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 84(%r15)
	movq	%rbx, %rdi
	callq	_cam_sim_bus
	movl	%eax, 80(%r15)
	movl	$150000, 8(%r15)                ## imm = 0x249F0
	movl	76(%r15), %edi
	movq	_SIM_IDLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strncpy
	movl	72(%r15), %edi
	movq	_HBA_IDLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strncpy
	movl	68(%r15), %r12d
	movq	%rbx, %rdi
	callq	_cam_sim_name
	movq	_DEV_IDLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r12d, %edi
	movq	%rax, %rsi
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_cam_sim_unit
	movl	%eax, 64(%r15)
	movq	_XPORT_SATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
	movq	_XPORT_VERSION_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r15)
	movq	_PROTO_ATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_PROTO_VERSION_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	_MAXPHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	jmp	LBB0_43
LBB0_24:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fsl_sata_check_ids
	testl	%eax, %eax
	je	LBB0_28
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_RECOVERY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fsl_sata_check_collision
	testl	%eax, %eax
	je	LBB0_36
## %bb.27:
	movq	%r15, 40(%r14)
	movl	32(%r14), %edi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpt_freeze_simq                ## TAILCALL
LBB0_28:
	movl	48(%r15), %ecx
	movq	_CTS_TYPE_CURRENT_SETTINGS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_30
## %bb.29:
	movq	8(%r15), %rax
	leaq	(%rax,%rax,4), %rbx
	shlq	$3, %rbx
	addq	24(%r14), %rbx
	jmp	LBB0_31
LBB0_30:
	movq	8(%r15), %rax
	leaq	(%rax,%rax,4), %rbx
	shlq	$3, %rbx
	addq	8(%r14), %rbx
LBB0_31:
	movq	_PROTO_UNSPECIFIED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 80(%r15)
	movq	_PROTO_VERSION_UNSPECIFIED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 72(%r15)
	movq	_XPORT_SATA@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 64(%r15)
	movq	_XPORT_VERSION_UNSPECIFIED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 56(%r15)
	movl	$0, 52(%r15)
	movl	$0, (%r15)
	cmpl	(%rdx), %ecx
	jne	LBB0_35
## %bb.32:
	cmpq	$15, %rax
	je	LBB0_37
## %bb.33:
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	cmpl	$0, (%r14)
	je	LBB0_37
LBB0_35:
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	_CTS_SATA_VALID_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	4(%rbx), %ecx
	movl	%ecx, 8(%r15)
	movq	_CTS_SATA_VALID_CAPS@GOTPCREL(%rip), %rcx
	jmp	LBB0_42
LBB0_36:
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fsl_sata_begin_transaction     ## TAILCALL
LBB0_37:
	movl	20(%r14), %edi
	movq	_FSL_SATA_P_SSTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATA_INL
	movq	_ATA_SS_SPD_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	andl	$240, %eax
	je	LBB0_39
## %bb.38:
	shrl	$4, %eax
	movl	%eax, 4(%r15)
	movq	_CTS_SATA_VALID_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_39:
	movq	_CTS_SATA_CAPS_D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	movl	16(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_41
## %bb.40:
	movq	_CTS_SATA_CAPS_H_PMREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_41:
	orl	%ecx, %eax
	movq	_CTS_SATA_CAPS_H_AN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
	movq	8(%r14), %rcx
	movq	8(%r15), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	andl	4(%rcx,%rdx,8), %eax
	movl	%eax, 8(%r15)
	movq	_CTS_SATA_VALID_CAPS@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
LBB0_42:
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	32(%rbx), %ecx
	movl	%ecx, 40(%r15)
	movq	_CTS_SATA_VALID_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	24(%rbx), %rcx
	movq	%rcx, 32(%r15)
	movq	_CTS_SATA_VALID_BYTECOUNT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	(%r14), %ecx
	movl	%ecx, 24(%r15)
	movq	_CTS_SATA_VALID_PM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movq	_CTS_SATA_VALID_TAGS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	8(%rbx), %ecx
	movl	%ecx, 12(%r15)
	movq	_CTS_SATA_VALID_ATAPI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_43:
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rax
LBB0_44:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fsl_sata_done                  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_CAM_DEBUG_TRACE,4,2            ## @CAM_DEBUG_TRACE
	.comm	_CAM_SEL_TIMEOUT,8,3            ## @CAM_SEL_TIMEOUT
	.comm	_RECOVERY_NONE,4,2              ## @RECOVERY_NONE
	.comm	_CAM_REQ_INVALID,8,3            ## @CAM_REQ_INVALID
	.comm	_CTS_TYPE_CURRENT_SETTINGS,4,2  ## @CTS_TYPE_CURRENT_SETTINGS
	.comm	_CTS_SATA_VALID_REVISION,4,2    ## @CTS_SATA_VALID_REVISION
	.comm	_CTS_SATA_VALID_MODE,4,2        ## @CTS_SATA_VALID_MODE
	.comm	_CTS_SATA_VALID_BYTECOUNT,4,2   ## @CTS_SATA_VALID_BYTECOUNT
	.comm	_CTS_SATA_VALID_TAGS,4,2        ## @CTS_SATA_VALID_TAGS
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ## @FSL_SATA_MAX_SLOTS
	.comm	_CTS_SATA_VALID_PM,4,2          ## @CTS_SATA_VALID_PM
	.comm	_CTS_SATA_VALID_ATAPI,4,2       ## @CTS_SATA_VALID_ATAPI
	.comm	_CAM_REQ_CMP,8,3                ## @CAM_REQ_CMP
	.comm	_PROTO_UNSPECIFIED,4,2          ## @PROTO_UNSPECIFIED
	.comm	_PROTO_VERSION_UNSPECIFIED,8,3  ## @PROTO_VERSION_UNSPECIFIED
	.comm	_XPORT_SATA,8,3                 ## @XPORT_SATA
	.comm	_XPORT_VERSION_UNSPECIFIED,8,3  ## @XPORT_VERSION_UNSPECIFIED
	.comm	_FSL_SATA_P_SSTS,4,2            ## @FSL_SATA_P_SSTS
	.comm	_ATA_SS_SPD_MASK,4,2            ## @ATA_SS_SPD_MASK
	.comm	_CTS_SATA_CAPS_D,4,2            ## @CTS_SATA_CAPS_D
	.comm	_CTS_SATA_CAPS_H_PMREQ,4,2      ## @CTS_SATA_CAPS_H_PMREQ
	.comm	_CTS_SATA_CAPS_H_AN,4,2         ## @CTS_SATA_CAPS_H_AN
	.comm	_CTS_SATA_VALID_CAPS,4,2        ## @CTS_SATA_VALID_CAPS
	.comm	_PI_SDTR_ABLE,4,2               ## @PI_SDTR_ABLE
	.comm	_PI_TAG_ABLE,4,2                ## @PI_TAG_ABLE
	.comm	_PIM_SEQSCAN,4,2                ## @PIM_SEQSCAN
	.comm	_PIM_UNMAPPED,4,2               ## @PIM_UNMAPPED
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"FreeBSD"

	.comm	_SIM_IDLEN,4,2                  ## @SIM_IDLEN
L_.str.2:                               ## @.str.2
	.asciz	"FSL SATA"

	.comm	_HBA_IDLEN,4,2                  ## @HBA_IDLEN
	.comm	_DEV_IDLEN,4,2                  ## @DEV_IDLEN
	.comm	_PROTO_ATA,4,2                  ## @PROTO_ATA
	.comm	_MAXPHYS,4,2                    ## @MAXPHYS
	.comm	_PI_SATAPM,4,2                  ## @PI_SATAPM
	.no_dead_strip	_fsl_sataaction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sataaction
_fsl_sataaction:                        ; @fsl_sataaction
	.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	x21, x0
	ldr	w0, [x1, #28]
Lloh0:
	adrp	x8, _CAM_DEBUG_TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAM_DEBUG_TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldrsw	x2, [x19]
	bl	_CAM_DEBUG
	mov	x0, x21
	bl	_cam_sim_softc
	mov	x20, x0
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_7
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_fsl_sata_check_ids
	cbnz	w0, LBB0_24
; %bb.3:
	ldr	w8, [x20, #48]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x20]
	cbnz	w8, LBB0_25
; %bb.5:
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	cmp	x8, #13
	b.hi	LBB0_25
LBB0_6:
Lloh5:
	adrp	x8, _CAM_SEL_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAM_SEL_TIMEOUT@GOTPAGEOFF]
	b	LBB0_41
LBB0_7:
Lloh7:
	adrp	x8, _CAM_REQ_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CAM_REQ_INVALID@GOTPAGEOFF]
	b	LBB0_41
LBB0_8:
	mov	x0, x20
	bl	_fsl_sata_reset
	b	LBB0_40
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_fsl_sata_check_ids
	cbnz	w0, LBB0_24
; %bb.10:
	ldr	w8, [x19, #48]
Lloh9:
	adrp	x9, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #8
	mov	w9, #24
	csel	x8, x9, x8, eq
	ldr	x21, [x20, x8]
	ldr	x22, [x19, #8]
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _CTS_SATA_VALID_REVISION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CTS_SATA_VALID_REVISION@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w9, [x19, #4]
	mov	w10, #40
	mul	x10, x22, x10
	str	w9, [x21, x10]
LBB0_12:
Lloh15:
	adrp	x9, _CTS_SATA_VALID_MODE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CTS_SATA_VALID_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w9, [x19, #40]
	mov	w10, #40
	madd	x10, x22, x10, x21
	str	w9, [x10, #32]
LBB0_14:
Lloh18:
	adrp	x9, _CTS_SATA_VALID_BYTECOUNT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CTS_SATA_VALID_BYTECOUNT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	ldr	x1, [x19, #32]
	mov	w0, #8192
	bl	_min
	mov	w8, #40
	madd	x8, x22, x8, x21
	str	x0, [x8, #24]
	ldr	w8, [x19]
LBB0_16:
Lloh21:
	adrp	x9, _CTS_SATA_VALID_TAGS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CTS_SATA_VALID_TAGS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh24:
	adrp	x8, _FSL_SATA_MAX_SLOTS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FSL_SATA_MAX_SLOTS@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_min
	mov	w8, #40
	madd	x8, x22, x8, x21
	str	x0, [x8, #16]
	ldr	w8, [x19]
LBB0_18:
Lloh27:
	adrp	x9, _CTS_SATA_VALID_PM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CTS_SATA_VALID_PM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	ldr	w9, [x19, #24]
	str	w9, [x20]
LBB0_20:
Lloh30:
	adrp	x9, _CTS_SATA_VALID_ATAPI@GOTPAGE
Lloh31:
	ldr	x9, [x9, _CTS_SATA_VALID_ATAPI@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.21:
	ldr	w8, [x19, #12]
	mov	w9, #40
	madd	x9, x22, x9, x21
	str	w8, [x9, #8]
	b	LBB0_40
LBB0_22:
	mov	w8, #1
Lloh33:
	adrp	x9, _PI_SDTR_ABLE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PI_SDTR_ABLE@GOTPAGEOFF]
	str	w8, [x19]
Lloh35:
	ldr	w8, [x9]
Lloh36:
	adrp	x9, _PI_TAG_ABLE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PI_TAG_ABLE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	wzr, w8, [x19, #100]
Lloh39:
	adrp	x8, _PIM_SEQSCAN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PIM_SEQSCAN@GOTPAGEOFF]
Lloh41:
	adrp	x9, _PIM_UNMAPPED@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PIM_UNMAPPED@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	stur	xzr, [x19, #92]
	stur	xzr, [x19, #84]
	mov	x0, x21
	bl	_cam_sim_bus
	str	w0, [x19, #80]
	mov	w8, #18928
	movk	w8, #2, lsl #16
	str	w8, [x19, #8]
	ldr	w0, [x19, #76]
Lloh45:
	adrp	x8, _SIM_IDLEN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SIM_IDLEN@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strncpy
	ldr	w0, [x19, #72]
Lloh50:
	adrp	x8, _HBA_IDLEN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _HBA_IDLEN@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strncpy
	ldr	w22, [x19, #68]
	mov	x0, x21
	bl	_cam_sim_name
	mov	x1, x0
Lloh55:
	adrp	x8, _DEV_IDLEN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _DEV_IDLEN@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_strncpy
	mov	x0, x21
	bl	_cam_sim_unit
	str	w0, [x19, #64]
Lloh58:
	adrp	x8, _XPORT_SATA@GOTPAGE
Lloh59:
	ldr	x8, [x8, _XPORT_SATA@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
Lloh61:
	adrp	x9, _XPORT_VERSION_UNSPECIFIED@GOTPAGE
Lloh62:
	ldr	x9, [x9, _XPORT_VERSION_UNSPECIFIED@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #48]
Lloh64:
	adrp	x8, _PROTO_ATA@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PROTO_ATA@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	str	w8, [x19, #40]
Lloh67:
	adrp	x8, _PROTO_VERSION_UNSPECIFIED@GOTPAGE
Lloh68:
	ldr	x8, [x8, _PROTO_VERSION_UNSPECIFIED@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	str	x8, [x19, #32]
Lloh70:
	adrp	x8, _MAXPHYS@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MAXPHYS@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	b	LBB0_40
LBB0_23:
	mov	x0, x20
	mov	x1, x19
	bl	_fsl_sata_check_ids
	cbz	w0, LBB0_27
LBB0_24:
	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
	ret
LBB0_25:
Lloh73:
	adrp	x8, _RECOVERY_NONE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _RECOVERY_NONE@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_fsl_sata_check_collision
	cbz	w0, LBB0_35
; %bb.26:
	str	x19, [x20, #40]
	ldr	w0, [x20, #32]
	mov	w1, #1
	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	_xpt_freeze_simq
LBB0_27:
	ldr	w8, [x19, #48]
Lloh76:
	adrp	x9, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGE
Lloh77:
	ldr	x9, [x9, _CTS_TYPE_CURRENT_SETTINGS@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.ne	LBB0_29
; %bb.28:
	ldr	x11, [x20, #24]
	b	LBB0_30
LBB0_29:
	ldr	x11, [x20, #8]
LBB0_30:
	ldr	x10, [x19, #8]
	mov	w12, #40
	madd	x21, x10, x12, x11
Lloh78:
	adrp	x11, _PROTO_UNSPECIFIED@GOTPAGE
Lloh79:
	ldr	x11, [x11, _PROTO_UNSPECIFIED@GOTPAGEOFF]
Lloh80:
	ldr	w11, [x11]
	str	w11, [x19, #80]
Lloh81:
	adrp	x11, _PROTO_VERSION_UNSPECIFIED@GOTPAGE
Lloh82:
	ldr	x11, [x11, _PROTO_VERSION_UNSPECIFIED@GOTPAGEOFF]
Lloh83:
	ldr	x11, [x11]
	str	x11, [x19, #72]
Lloh84:
	adrp	x11, _XPORT_SATA@GOTPAGE
Lloh85:
	ldr	x11, [x11, _XPORT_SATA@GOTPAGEOFF]
Lloh86:
	ldr	x11, [x11]
Lloh87:
	adrp	x12, _XPORT_VERSION_UNSPECIFIED@GOTPAGE
Lloh88:
	ldr	x12, [x12, _XPORT_VERSION_UNSPECIFIED@GOTPAGEOFF]
Lloh89:
	ldr	x12, [x12]
	stp	x12, x11, [x19, #56]
	str	wzr, [x19, #52]
	str	wzr, [x19]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_34
; %bb.31:
	cmp	x10, #15
	b.eq	LBB0_36
; %bb.32:
	cbnz	x10, LBB0_34
; %bb.33:
	ldr	w8, [x20]
	cbz	w8, LBB0_36
LBB0_34:
Lloh90:
	adrp	x8, _CTS_SATA_VALID_REVISION@GOTPAGE
Lloh91:
	ldr	x8, [x8, _CTS_SATA_VALID_REVISION@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	d0, [x21]
	stur	d0, [x19, #4]
Lloh93:
	adrp	x9, _CTS_SATA_VALID_CAPS@GOTPAGE
Lloh94:
	ldr	x9, [x9, _CTS_SATA_VALID_CAPS@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	b	LBB0_39
LBB0_35:
	mov	x0, x20
	mov	x1, 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	_fsl_sata_begin_transaction
LBB0_36:
	ldr	w0, [x20, #20]
Lloh96:
	adrp	x8, _FSL_SATA_P_SSTS@GOTPAGE
Lloh97:
	ldr	x8, [x8, _FSL_SATA_P_SSTS@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	bl	_ATA_INL
Lloh99:
	adrp	x8, _ATA_SS_SPD_MASK@GOTPAGE
Lloh100:
	ldr	x8, [x8, _ATA_SS_SPD_MASK@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	and	w8, w0, w8
	ands	w8, w8, #0xf0
	b.eq	LBB0_38
; %bb.37:
Lloh102:
	adrp	x9, _CTS_SATA_VALID_REVISION@GOTPAGE
Lloh103:
	ldr	x9, [x9, _CTS_SATA_VALID_REVISION@GOTPAGEOFF]
	lsr	w8, w8, #4
Lloh104:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
LBB0_38:
	ldr	w8, [x21, #4]
Lloh105:
	adrp	x9, _CTS_SATA_CAPS_D@GOTPAGE
Lloh106:
	ldr	x9, [x9, _CTS_SATA_CAPS_D@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [x20, #16]
Lloh108:
	adrp	x10, _CTS_SATA_CAPS_H_PMREQ@GOTPAGE
Lloh109:
	ldr	x10, [x10, _CTS_SATA_CAPS_H_PMREQ@GOTPAGEOFF]
Lloh110:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh111:
	adrp	x9, _CTS_SATA_CAPS_H_AN@GOTPAGE
Lloh112:
	ldr	x9, [x9, _CTS_SATA_CAPS_H_AN@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #8]
	mov	w11, #40
	madd	x9, x10, x11, x9
	ldr	w9, [x9, #4]
	and	w8, w9, w8
	str	w8, [x19, #8]
Lloh114:
	adrp	x8, _CTS_SATA_VALID_CAPS@GOTPAGE
Lloh115:
	ldr	x8, [x8, _CTS_SATA_VALID_CAPS@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	ldr	w9, [x19]
LBB0_39:
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x21, #32]
	str	w9, [x19, #40]
Lloh117:
	adrp	x9, _CTS_SATA_VALID_MODE@GOTPAGE
Lloh118:
	ldr	x9, [x9, _CTS_SATA_VALID_MODE@GOTPAGEOFF]
Lloh119:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x9, [x21, #24]
	str	x9, [x19, #32]
Lloh120:
	adrp	x9, _CTS_SATA_VALID_BYTECOUNT@GOTPAGE
Lloh121:
	ldr	x9, [x9, _CTS_SATA_VALID_BYTECOUNT@GOTPAGEOFF]
Lloh122:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20]
	str	w9, [x19, #24]
Lloh123:
	adrp	x9, _CTS_SATA_VALID_PM@GOTPAGE
Lloh124:
	ldr	x9, [x9, _CTS_SATA_VALID_PM@GOTPAGEOFF]
Lloh125:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh126:
	adrp	x9, _CTS_SATA_VALID_TAGS@GOTPAGE
Lloh127:
	ldr	x9, [x9, _CTS_SATA_VALID_TAGS@GOTPAGEOFF]
Lloh128:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x21, #8]
	str	w9, [x19, #12]
Lloh129:
	adrp	x9, _CTS_SATA_VALID_ATAPI@GOTPAGE
Lloh130:
	ldr	x9, [x9, _CTS_SATA_VALID_ATAPI@GOTPAGEOFF]
Lloh131:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_40:
Lloh132:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh133:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
LBB0_41:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x20
	mov	x1, 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	_fsl_sata_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGot	Lloh132, Lloh133
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_CAM_DEBUG_TRACE,4,2            ; @CAM_DEBUG_TRACE
	.comm	_CAM_SEL_TIMEOUT,8,3            ; @CAM_SEL_TIMEOUT
	.comm	_RECOVERY_NONE,4,2              ; @RECOVERY_NONE
	.comm	_CAM_REQ_INVALID,8,3            ; @CAM_REQ_INVALID
	.comm	_CTS_TYPE_CURRENT_SETTINGS,4,2  ; @CTS_TYPE_CURRENT_SETTINGS
	.comm	_CTS_SATA_VALID_REVISION,4,2    ; @CTS_SATA_VALID_REVISION
	.comm	_CTS_SATA_VALID_MODE,4,2        ; @CTS_SATA_VALID_MODE
	.comm	_CTS_SATA_VALID_BYTECOUNT,4,2   ; @CTS_SATA_VALID_BYTECOUNT
	.comm	_CTS_SATA_VALID_TAGS,4,2        ; @CTS_SATA_VALID_TAGS
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ; @FSL_SATA_MAX_SLOTS
	.comm	_CTS_SATA_VALID_PM,4,2          ; @CTS_SATA_VALID_PM
	.comm	_CTS_SATA_VALID_ATAPI,4,2       ; @CTS_SATA_VALID_ATAPI
	.comm	_CAM_REQ_CMP,8,3                ; @CAM_REQ_CMP
	.comm	_PROTO_UNSPECIFIED,4,2          ; @PROTO_UNSPECIFIED
	.comm	_PROTO_VERSION_UNSPECIFIED,8,3  ; @PROTO_VERSION_UNSPECIFIED
	.comm	_XPORT_SATA,8,3                 ; @XPORT_SATA
	.comm	_XPORT_VERSION_UNSPECIFIED,8,3  ; @XPORT_VERSION_UNSPECIFIED
	.comm	_FSL_SATA_P_SSTS,4,2            ; @FSL_SATA_P_SSTS
	.comm	_ATA_SS_SPD_MASK,4,2            ; @ATA_SS_SPD_MASK
	.comm	_CTS_SATA_CAPS_D,4,2            ; @CTS_SATA_CAPS_D
	.comm	_CTS_SATA_CAPS_H_PMREQ,4,2      ; @CTS_SATA_CAPS_H_PMREQ
	.comm	_CTS_SATA_CAPS_H_AN,4,2         ; @CTS_SATA_CAPS_H_AN
	.comm	_CTS_SATA_VALID_CAPS,4,2        ; @CTS_SATA_VALID_CAPS
	.comm	_PI_SDTR_ABLE,4,2               ; @PI_SDTR_ABLE
	.comm	_PI_TAG_ABLE,4,2                ; @PI_TAG_ABLE
	.comm	_PIM_SEQSCAN,4,2                ; @PIM_SEQSCAN
	.comm	_PIM_UNMAPPED,4,2               ; @PIM_UNMAPPED
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"FreeBSD"

	.comm	_SIM_IDLEN,4,2                  ; @SIM_IDLEN
l_.str.2:                               ; @.str.2
	.asciz	"FSL SATA"

	.comm	_HBA_IDLEN,4,2                  ; @HBA_IDLEN
	.comm	_DEV_IDLEN,4,2                  ; @DEV_IDLEN
	.comm	_PROTO_ATA,4,2                  ; @PROTO_ATA
	.comm	_MAXPHYS,4,2                    ; @MAXPHYS
	.comm	_PI_SATAPM,4,2                  ; @PI_SATAPM
	.no_dead_strip	_fsl_sataaction
.subsections_via_symbols
