	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ata_eh_park_issue_cmd
LCPI0_0:
	.long	68                              ## 0x44
	.long	76                              ## 0x4c
	.long	78                              ## 0x4e
	.long	85                              ## 0x55
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ata_eh_park_issue_cmd:                 ## @ata_eh_park_issue_cmd
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	-64(%rbp), %rsi
	callq	_ata_tf_init
	movb	(%rbx), %cl
	movl	$1, %eax
	shll	%cl, %eax
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	%eax, (%r15)
	movq	_ATA_CMD_IDLEIMMEDIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [68,76,78,85]
	movaps	%xmm0, -64(%rbp)
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	%eax, (%r15)
	movq	_ATA_CMD_CHK_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, -40(%rbp)
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, -48(%rbp)
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
	movq	_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ata_exec_internal
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$196, -60(%rbp)
	je	LBB0_7
LBB0_6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ata_dev_printk
	movb	(%rbx), %cl
	movl	$-2, %eax
	roll	%cl, %eax
	andl	%eax, (%r15)
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_CMD_IDLEIMMEDIATE,4,2      ## @ATA_CMD_IDLEIMMEDIATE
	.comm	_ATA_CMD_CHK_POWER,4,2          ## @ATA_CMD_CHK_POWER
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_PROT_NODATA,4,2            ## @ATA_PROT_NODATA
	.comm	_DMA_NONE,4,2                   ## @DMA_NONE
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head unload failed!\n"

	.no_dead_strip	_ata_eh_park_issue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ata_eh_park_issue_cmd
lCPI0_0:
	.long	68                              ; 0x44
	.long	76                              ; 0x4c
	.long	78                              ; 0x4e
	.long	85                              ; 0x55
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ata_eh_park_issue_cmd:                 ; @ata_eh_park_issue_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x21, [x0, #8]
	mov	x1, sp
	bl	_ata_tf_init
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh0:
	adrp	x8, _ATA_CMD_IDLEIMMEDIATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_CMD_IDLEIMMEDIATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
Lloh5:
	adrp	x8, _ATA_CMD_CHK_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATA_CMD_CHK_POWER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
LBB0_3:
Lloh8:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
	str	w8, [sp, #24]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldp	w9, w10, [sp, #16]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _ATA_PROT_NODATA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATA_PROT_NODATA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w8, w9, [sp, #16]
Lloh17:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ata_exec_internal
	cbz	w20, LBB0_7
; %bb.4:
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #4]
	cmp	w8, #196
	b.eq	LBB0_7
LBB0_6:
Lloh20:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_CMD_IDLEIMMEDIATE,4,2      ; @ATA_CMD_IDLEIMMEDIATE
	.comm	_ATA_CMD_CHK_POWER,4,2          ; @ATA_CMD_CHK_POWER
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_PROT_NODATA,4,2            ; @ATA_PROT_NODATA
	.comm	_DMA_NONE,4,2                   ; @DMA_NONE
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head unload failed!\n"

	.no_dead_strip	_ata_eh_park_issue_cmd
.subsections_via_symbols
