	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atapi_start_stop_unit
_atapi_start_stop_unit:                 ## @atapi_start_stop_unit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	16(%rdx), %eax
	movl	272(%rdx), %r8d
	andl	$3, %r8d
	andl	$-8, %eax
	movq	_ATA_I_CMD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ATA_I_IN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rdx)
	cmpl	$2, %r8d
	jne	LBB0_1
## %bb.2:
	movq	_ATA_SENSE_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movl	$83, 4(%rdi)
	shll	$12, %ecx
	movq	_ATA_S_READY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ATA_S_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ATA_S_DSC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ATA_S_READY@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ecx
	popq	%rbp
	jmp	_ahci_write_fis_d2h             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_I_CMD,4,2                  ## @ATA_I_CMD
	.comm	_ATA_I_IN,4,2                   ## @ATA_I_IN
	.comm	_ATA_S_READY,4,2                ## @ATA_S_READY
	.comm	_ATA_S_DSC,4,2                  ## @ATA_S_DSC
	.comm	_ATA_SENSE_ILLEGAL_REQUEST,4,2  ## @ATA_SENSE_ILLEGAL_REQUEST
	.comm	_ATA_S_ERROR,4,2                ## @ATA_S_ERROR
	.no_dead_strip	_atapi_start_stop_unit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atapi_start_stop_unit
_atapi_start_stop_unit:                 ; @atapi_start_stop_unit
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2, #272]
	and	w8, w8, #0x3
	ldr	w9, [x2, #16]
	and	w9, w9, #0xfffffff8
Lloh0:
	adrp	x10, _ATA_I_CMD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATA_I_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh3:
	adrp	x10, _ATA_I_IN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATA_I_IN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x2, #16]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ATA_SENSE_ILLEGAL_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_SENSE_ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #83
	stp	w8, w9, [x0]
Lloh9:
	adrp	x9, _ATA_S_READY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATA_S_READY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #12
Lloh12:
	adrp	x9, _ATA_S_ERROR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_S_ERROR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _ATA_S_DSC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATA_S_DSC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ATA_S_READY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_S_READY@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	orr	w3, w8, w9
	b	_ahci_write_fis_d2h
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_I_CMD,4,2                  ; @ATA_I_CMD
	.comm	_ATA_I_IN,4,2                   ; @ATA_I_IN
	.comm	_ATA_S_READY,4,2                ; @ATA_S_READY
	.comm	_ATA_S_DSC,4,2                  ; @ATA_S_DSC
	.comm	_ATA_SENSE_ILLEGAL_REQUEST,4,2  ; @ATA_SENSE_ILLEGAL_REQUEST
	.comm	_ATA_S_ERROR,4,2                ; @ATA_S_ERROR
	.no_dead_strip	_atapi_start_stop_unit
.subsections_via_symbols
