	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_disable                ## -- Begin function ata_dev_disable
	.p2align	4, 0x90
_ata_dev_disable:                       ## @ata_dev_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ata_dev_enabled
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_ata_msg_drv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ata_dev_printk
LBB0_3:
	movq	%rbx, %rdi
	callq	_ata_acpi_on_disable
	movq	_ATA_DNXFER_FORCE_PIO0@GOTPCREL(%rip), %rax
	movq	_ATA_DNXFER_QUIET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ata_down_xfermask_limit
	incl	4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ata_ering_clear                ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabled\n"

	.comm	_ATA_DNXFER_FORCE_PIO0,4,2      ## @ATA_DNXFER_FORCE_PIO0
	.comm	_ATA_DNXFER_QUIET,4,2           ## @ATA_DNXFER_QUIET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_disable                ; -- Begin function ata_dev_disable
	.p2align	2
_ata_dev_disable:                       ; @ata_dev_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ata_dev_enabled
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_ata_msg_drv
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
LBB0_3:
	mov	x0, x19
	bl	_ata_acpi_on_disable
Lloh5:
	adrp	x8, _ATA_DNXFER_FORCE_PIO0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATA_DNXFER_FORCE_PIO0@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ATA_DNXFER_QUIET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_DNXFER_QUIET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_ata_down_xfermask_limit
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ata_ering_clear
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled\n"

	.comm	_ATA_DNXFER_FORCE_PIO0,4,2      ; @ATA_DNXFER_FORCE_PIO0
	.comm	_ATA_DNXFER_QUIET,4,2           ; @ATA_DNXFER_QUIET
.subsections_via_symbols
