	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_init                   ## -- Begin function ata_dev_init
	.p2align	4, 0x90
_ata_dev_init:                          ## @ata_dev_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ata_dev_phys_link
	movq	16(%rax), %r14
	movl	8(%rax), %ecx
	movl	%ecx, 12(%rax)
	movq	$0, (%rax)
	movl	(%r14), %edi
	callq	_spin_lock_irqsave
	movq	_ATA_DFLAG_INIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	(%r14), %edi
	callq	_spin_unlock_irqrestore
	movq	_ATA_DEVICE_CLEAR_BEGIN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movq	_ATA_DEVICE_CLEAR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%edi, %edx
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_DFLAG_INIT_MASK,4,2        ## @ATA_DFLAG_INIT_MASK
	.comm	_ATA_DEVICE_CLEAR_BEGIN,4,2     ## @ATA_DEVICE_CLEAR_BEGIN
	.comm	_ATA_DEVICE_CLEAR_END,4,2       ## @ATA_DEVICE_CLEAR_END
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_init                   ; -- Begin function ata_dev_init
	.p2align	2
_ata_dev_init:                          ; @ata_dev_init
	.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_phys_link
	ldr	x20, [x0, #16]
	ldr	w8, [x0, #8]
	str	w8, [x0, #12]
	str	xzr, [x0]
	ldr	w0, [x20]
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ATA_DFLAG_INIT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_DFLAG_INIT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	ldr	w0, [x20]
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _ATA_DEVICE_CLEAR_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_DEVICE_CLEAR_BEGIN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x19, x8
Lloh6:
	adrp	x9, _ATA_DEVICE_CLEAR_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_DEVICE_CLEAR_END@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w2, w9, w8
	mov	w1, #0
	bl	_memset
Lloh9:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_DFLAG_INIT_MASK,4,2        ; @ATA_DFLAG_INIT_MASK
	.comm	_ATA_DEVICE_CLEAR_BEGIN,4,2     ; @ATA_DEVICE_CLEAR_BEGIN
	.comm	_ATA_DEVICE_CLEAR_END,4,2       ; @ATA_DEVICE_CLEAR_END
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
.subsections_via_symbols
