	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sata_pmp_qc_defer_cmd_switch   ## -- Begin function sata_pmp_qc_defer_cmd_switch
	.p2align	4, 0x90
_sata_pmp_qc_defer_cmd_switch:          ## @sata_pmp_qc_defer_cmd_switch
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %r15
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, %rax
	jne	LBB0_5
LBB0_2:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_ata_link_active
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	_ATA_QCFLAG_CLEAR_EXCL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_std_qc_defer               ## TAILCALL
LBB0_4:
	movq	%rbx, 8(%r15)
LBB0_5:
	movq	_ATA_DEFER_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_QCFLAG_CLEAR_EXCL,4,2      ## @ATA_QCFLAG_CLEAR_EXCL
	.comm	_ATA_DEFER_PORT,4,2             ## @ATA_DEFER_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sata_pmp_qc_defer_cmd_switch   ; -- Begin function sata_pmp_qc_defer_cmd_switch
	.p2align	2
_sata_pmp_qc_defer_cmd_switch:          ; @sata_pmp_qc_defer_cmd_switch
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	x21, [x20]
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ccmp	x8, x20, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_ata_link_active
	cbz	x0, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ATA_QCFLAG_CLEAR_EXCL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_QCFLAG_CLEAR_EXCL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, 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	_ata_std_qc_defer
LBB0_4:
	str	x20, [x21, #8]
LBB0_5:
Lloh3:
	adrp	x8, _ATA_DEFER_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_DEFER_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_QCFLAG_CLEAR_EXCL,4,2      ; @ATA_QCFLAG_CLEAR_EXCL
	.comm	_ATA_DEFER_PORT,4,2             ; @ATA_DEFER_PORT
.subsections_via_symbols
