	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_revalidate             ## -- Begin function ata_dev_revalidate
	.p2align	4, 0x90
_ata_dev_revalidate:                    ## @ata_dev_revalidate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	callq	_ata_dev_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_ata_class_enabled
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	%ebx, (%r14)
	je	LBB0_7
## %bb.4:
	movq	_ATA_DEV_ATAPI@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_ATA_DEV_SEMB@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ata_dev_printk
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_18
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_7:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_ata_dev_reread_id
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	%r15, %rdi
	callq	_ata_dev_configure
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_18:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_ata_dev_printk
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	16(%r15), %eax
	xorl	%r12d, %r12d
	cmpl	(%r14), %eax
	jne	LBB0_19
## %bb.10:
	testq	%r13, %r13
	je	LBB0_19
## %bb.11:
	movq	(%r15), %r8
	cmpq	%r13, %r8
	je	LBB0_19
## %bb.12:
	movq	_KERN_WARNING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_ata_dev_printk
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, 8(%r15)
	jne	LBB0_16
## %bb.13:
	movq	(%r15), %rax
	cmpq	%r13, %rax
	jle	LBB0_16
## %bb.14:
	cmpq	%rcx, %rax
	jne	LBB0_16
## %bb.15:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ata_dev_printk
	movq	%r13, (%r15)
	jmp	LBB0_19
LBB0_16:
	movq	%rcx, 8(%r15)
	movq	%r13, (%r15)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ATA_DEV_ATA,4,2                ## @ATA_DEV_ATA
	.comm	_ATA_DEV_ATAPI,4,2              ## @ATA_DEV_ATAPI
	.comm	_ATA_DEV_SEMB,4,2               ## @ATA_DEV_SEMB
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"class mismatch %u != %u\n"

	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"n_sectors mismatch %llu != %llu\n"

L_.str.2:                               ## @.str.2
	.asciz	"new n_sectors matches native, probably late HPA unlock, continuing\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.3:                               ## @.str.3
	.asciz	"revalidation failed (errno=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_dev_revalidate             ; -- Begin function ata_dev_revalidate
	.p2align	2
_ata_dev_revalidate:                    ; @ata_dev_revalidate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x22, x23, [x0]
	bl	_ata_dev_enabled
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_ata_class_enabled
Lloh0:
	adrp	x24, _ATA_DEV_ATA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ATA_DEV_ATA@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _ATA_DEV_ATAPI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATA_DEV_ATAPI@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _ATA_DEV_SEMB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ATA_DEV_SEMB@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x19, #16]
	stp	x8, x20, [sp]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
LBB0_4:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_ata_dev_reread_id
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ata_dev_configure
	mov	x20, x0
	cbz	w0, LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w8, [x19, #16]
	ldr	w9, [x24]
	cmp	w8, w9
	ccmp	x22, #0, #4, eq
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x19]
	cmp	x8, x22
	b.ne	LBB0_13
LBB0_12:
	mov	w20, #0
	b	LBB0_9
LBB0_13:
Lloh24:
	adrp	x20, _KERN_WARNING@GOTPAGE
Lloh25:
	ldr	x20, [x20, _KERN_WARNING@GOTPAGEOFF]
	ldr	w1, [x20]
	stp	x22, x8, [sp]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_17
; %bb.14:
	ldr	x8, [x19]
	cmp	x8, x22
	b.le	LBB0_17
; %bb.15:
	cmp	x8, x23
	b.ne	LBB0_17
; %bb.16:
	ldr	w1, [x20]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ata_dev_printk
	mov	w20, #0
	str	x22, [x19]
	b	LBB0_9
LBB0_17:
	stp	x22, x23, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ATA_DEV_ATA,4,2                ; @ATA_DEV_ATA
	.comm	_ATA_DEV_ATAPI,4,2              ; @ATA_DEV_ATAPI
	.comm	_ATA_DEV_SEMB,4,2               ; @ATA_DEV_SEMB
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"class mismatch %u != %u\n"

	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"n_sectors mismatch %llu != %llu\n"

l_.str.2:                               ; @.str.2
	.asciz	"new n_sectors matches native, probably late HPA unlock, continuing\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.3:                               ; @.str.3
	.asciz	"revalidation failed (errno=%d)\n"

.subsections_via_symbols
