	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ahci_check_stopped
_ahci_check_stopped:                    ## @ahci_check_stopped
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_AHCI_P_CMD_ST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 8(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	$0, 40(%rdi)
	movq	_AHCI_P_CMD_CR@GOTPCREL(%rip), %rcx
	movq	_AHCI_P_CMD_CCS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movq	$0, 32(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AHCI_P_CMD_ST,4,2              ## @AHCI_P_CMD_ST
	.comm	_AHCI_P_CMD_CR,4,2              ## @AHCI_P_CMD_CR
	.comm	_AHCI_P_CMD_CCS_MASK,4,2        ## @AHCI_P_CMD_CCS_MASK
	.no_dead_strip	_ahci_check_stopped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ahci_check_stopped
_ahci_check_stopped:                    ; @ahci_check_stopped
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AHCI_P_CMD_ST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AHCI_P_CMD_ST@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ret
LBB0_2:
	ldr	x9, [x0, #8]
	cbnz	x9, LBB0_1
; %bb.3:
Lloh3:
	adrp	x9, _AHCI_P_CMD_CR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AHCI_P_CMD_CR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AHCI_P_CMD_CCS_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AHCI_P_CMD_CCS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w8, w8, w9
	str	w8, [x0]
	stp	xzr, xzr, [x0, #32]
	stp	xzr, xzr, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AHCI_P_CMD_ST,4,2              ; @AHCI_P_CMD_ST
	.comm	_AHCI_P_CMD_CR,4,2              ; @AHCI_P_CMD_CR
	.comm	_AHCI_P_CMD_CCS_MASK,4,2        ; @AHCI_P_CMD_CCS_MASK
	.no_dead_strip	_ahci_check_stopped
.subsections_via_symbols
