	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_process_request_sense
_fsl_sata_process_request_sense:        ## @fsl_sata_process_request_sense
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, 16(%rdi)
	movslq	(%rsi), %r15
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rsi), %ecx
	andl	%eax, %ecx
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	movq	_CAM_AUTOSNS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rcx, %rsi
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	movq	8(%rbx), %rcx
	movq	(%rcx,%r15,8), %rsi
	andl	(%rsi), %eax
	movl	%eax, (%rsi)
	movq	_CAM_AUTOSENSE_FAIL@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rcx), %eax
	movl	%eax, (%rsi)
	movq	%rbx, %rdi
	callq	_fsl_sata_done
	movq	8(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	decl	4(%rbx)
	movq	%r14, %rdi
	callq	_xpt_free_ccb
	movl	(%rbx), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpt_release_simq               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.comm	_CAM_AUTOSNS_VALID,4,2          ## @CAM_AUTOSNS_VALID
	.comm	_CAM_AUTOSENSE_FAIL,4,2         ## @CAM_AUTOSENSE_FAIL
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_fsl_sata_process_request_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_process_request_sense
_fsl_sata_process_request_sense:        ; @fsl_sata_process_request_sense
	.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	x20, x1
	mov	x19, x0
	str	xzr, [x0, #16]
	ldp	w21, w9, [x1]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
Lloh0:
	adrp	x8, _CAM_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w9
Lloh3:
	adrp	x10, _CAM_REQ_CMP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CAM_AUTOSNS_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_AUTOSNS_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x21, lsl #3]
	mov	x1, x9
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x21, lsl #3]
	ldr	w9, [x1]
	bic	w8, w9, w8
	str	w8, [x1]
Lloh9:
	adrp	x9, _CAM_AUTOSENSE_FAIL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAM_AUTOSENSE_FAIL@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x1]
	mov	x0, x19
	bl	_fsl_sata_done
	ldr	x8, [x19, #8]
	str	xzr, [x8, x21, lsl #3]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_xpt_free_ccb
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	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_release_simq
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.comm	_CAM_AUTOSNS_VALID,4,2          ; @CAM_AUTOSNS_VALID
	.comm	_CAM_AUTOSENSE_FAIL,4,2         ; @CAM_AUTOSENSE_FAIL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_fsl_sata_process_request_sense
.subsections_via_symbols
