	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_scsi_park_store
_ata_scsi_park_store:                   ## @ata_scsi_park_store
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	_to_scsi_device
	movq	%rax, %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strict_strtol
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rcx
	cmpq	$-3, %rcx
	jle	LBB0_2
## %bb.3:
	movq	_ATA_TMOUT_MAX_PARK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ebx, %ebx
	cmpq	%rax, %rcx
	jle	LBB0_5
## %bb.4:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	movq	%rax, -40(%rbp)
LBB0_5:
	movl	(%r15), %edi
	callq	_ata_shost_to_port
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ata_scsi_find_dev
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_8:
	movq	(%r15), %rax
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	js	LBB0_13
## %bb.11:
	movq	_ATA_DFLAG_NO_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_12
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	(%r14), %edi
	callq	_spin_unlock_irqrestore
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	cmpq	$-2, %rsi
	je	LBB0_16
## %bb.14:
	cmpq	$-1, %rsi
	jne	LBB0_17
## %bb.15:
	movq	_ATA_DFLAG_NO_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r15)
	jmp	LBB0_17
LBB0_12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ata_deadline
	movl	%eax, 32(%r15)
	movq	_ATA_EH_PARK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r15), %rcx
	movq	24(%r15), %rdx
	movq	(%rdx), %rdx
	orl	%eax, (%rdx,%rcx,4)
	movq	%r14, %rdi
	callq	_ata_port_schedule_eh
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_complete
	jmp	LBB0_17
LBB0_16:
	movq	_ATA_DFLAG_NO_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATA_TMOUT_MAX_PARK,8,3         ## @ATA_TMOUT_MAX_PARK
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ATA_DEV_ATA,8,3                ## @ATA_DEV_ATA
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ATA_DFLAG_NO_UNLOAD,4,2        ## @ATA_DFLAG_NO_UNLOAD
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_ATA_EH_PARK,4,2                ## @ATA_EH_PARK
	.no_dead_strip	_ata_scsi_park_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_scsi_park_store
_ata_scsi_park_store:                   ; @ata_scsi_park_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x2
	bl	_to_scsi_device
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_strict_strtol
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x9, [sp, #8]
	cmn	x9, #3
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ATA_TMOUT_MAX_PARK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TMOUT_MAX_PARK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _EOVERFLOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EOVERFLOW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	neg	w22, w9
	str	x8, [sp, #8]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	w0, [x21]
	bl	_ata_shost_to_port
	mov	x20, x0
	ldr	w0, [x0]
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x21
	bl	_ata_scsi_find_dev
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _ATA_DEV_ATA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	x1, [sp, #8]
	tbnz	x1, #63, LBB0_15
; %bb.10:
	ldr	w8, [x21, #8]
Lloh14:
	adrp	x9, _ATA_DFLAG_NO_UNLOAD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATA_DFLAG_NO_UNLOAD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
LBB0_11:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	ldr	w0, [x20]
	bl	_spin_unlock_irqrestore
	cmp	w22, #0
	csel	w0, w19, w22, eq
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	cmn	x1, #2
	b.eq	LBB0_19
; %bb.16:
	cmn	x1, #1
	b.ne	LBB0_13
; %bb.17:
Lloh19:
	adrp	x8, _ATA_DFLAG_NO_UNLOAD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATA_DFLAG_NO_UNLOAD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	bic	w8, w9, w8
	b	LBB0_20
LBB0_18:
Lloh22:
	adrp	x8, _jiffies@GOTPAGE
Lloh23:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_ata_deadline
	str	w0, [x21, #32]
Lloh25:
	adrp	x8, _ATA_EH_PARK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATA_EH_PARK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldp	x10, x9, [x21, #16]
	ldr	x9, [x9]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	bl	_ata_port_schedule_eh
	add	x0, x20, #4
	bl	_complete
	b	LBB0_13
LBB0_19:
Lloh28:
	adrp	x8, _ATA_DFLAG_NO_UNLOAD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATA_DFLAG_NO_UNLOAD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
LBB0_20:
	str	w8, [x21, #8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATA_TMOUT_MAX_PARK,8,3         ; @ATA_TMOUT_MAX_PARK
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ATA_DEV_ATA,8,3                ; @ATA_DEV_ATA
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ATA_DFLAG_NO_UNLOAD,4,2        ; @ATA_DFLAG_NO_UNLOAD
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_ATA_EH_PARK,4,2                ; @ATA_EH_PARK
	.no_dead_strip	_ata_scsi_park_store
.subsections_via_symbols
