	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_scsi_verify_xlat
_ata_scsi_verify_xlat:                  ## @ata_scsi_verify_xlat
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	104(%rdi), %r14
	movq	(%r15), %r12
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	(%r14), %rdi
	orl	%ecx, 8(%rbx)
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	(%rdi), %rax
	movq	_VERIFY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$10, 8(%r14)
	jl	LBB0_27
## %bb.2:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_scsi_10_lba_len
	jmp	LBB0_6
LBB0_3:
	movq	_VERIFY_16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.4:
	cmpl	$16, 8(%r14)
	jge	LBB0_5
LBB0_27:
	movq	_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$36, %edx
	jmp	LBB0_28
LBB0_5:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_scsi_16_lba_len
LBB0_6:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.7:
	movq	-56(%rbp), %rdi
	cmpq	%r12, %rdi
	jge	LBB0_29
## %bb.8:
	leaq	(%rdi,%rsi), %rax
	cmpq	%r12, %rax
	jg	LBB0_29
## %bb.9:
	movq	_ATA_DFLAG_LBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_16
## %bb.10:
	movq	_ATA_TFLAG_LBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	callq	_lba_28_ok
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_ATA_CMD_VERIFY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	-56(%rbp), %rax
	movl	%eax, %ecx
	shrl	$24, %ecx
	andl	$15, %ecx
	orq	16(%rbx), %rcx
	movzbl	-48(%rbp), %edx
LBB0_15:
	movzbl	%dl, %edx
	movq	%rdx, 48(%rbx)
	movl	%eax, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movq	%rdx, 24(%rbx)
	movzbl	%ah, %edx
	movq	%rdx, 32(%rbx)
	movzbl	%al, %eax
	movq	%rax, 40(%rbx)
	movq	_ATA_LBA@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_30:
	movq	_SAM_STAT_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_31
LBB0_16:
	callq	_lba_28_ok
	testq	%rax, %rax
	je	LBB0_29
## %bb.17:
	movq	-56(%rbp), %rsi
	movq	16(%r15), %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_18
## %bb.19:
	movq	%rsi, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r8
	movq	%rax, %rcx
	jmp	LBB0_20
LBB0_12:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rsi
	callq	_lba_48_ok
	testq	%rax, %rax
	je	LBB0_29
## %bb.13:
	movq	_ATA_DFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_29
## %bb.14:
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_ATA_CMD_VERIFY_EXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	-48(%rbp), %rdx
	movzbl	%dh, %eax
	movq	%rax, 88(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, %rcx
	shrq	$40, %rcx
	movzbl	%cl, %ecx
	movq	%rcx, 80(%rbx)
	movq	%rax, %rcx
	shrq	$32, %rcx
	movzbl	%cl, %ecx
	movq	%rcx, 72(%rbx)
	movl	%eax, %ecx
	shrl	$24, %ecx
	movq	%rcx, 64(%rbx)
	movq	16(%rbx), %rcx
	jmp	LBB0_15
LBB0_18:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r8d
	movl	%eax, %ecx
LBB0_20:
	movq	24(%r15), %rdi
	movq	%rcx, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_21
## %bb.22:
	movq	%rcx, %rax
	cqto
	idivq	%rdi
	movq	%rdx, %r12
	movq	%rax, %r13
	jmp	LBB0_23
LBB0_21:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %r12d
	movl	%eax, %r13d
LBB0_23:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	leaq	1(%r8), %r15
	leaq	L_.str(%rip), %rdi
	movq	%rcx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	callq	_DPRINTK
	cmpq	$65535, %r13                    ## imm = 0xFFFF
	ja	LBB0_29
## %bb.24:
	cmpq	$15, %r12
	ja	LBB0_29
## %bb.25:
	cmpq	$254, -64(%rbp)                 ## 8-byte Folded Reload
	ja	LBB0_29
## %bb.26:
	movq	_ATA_CMD_VERIFY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movzbl	-48(%rbp), %eax
	movq	%rax, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	%r13, 32(%rbx)
	shrq	$8, %r13
	movq	%r13, 24(%rbx)
	orq	%r12, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_32
LBB0_29:
	movq	_ILLEGAL_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$33, %edx
LBB0_28:
	xorl	%ecx, %ecx
	callq	_ata_scsi_set_sense
LBB0_31:
	movl	$1, %eax
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ## @ATA_PROT_NODATA
	.comm	_VERIFY,8,3                     ## @VERIFY
	.comm	_VERIFY_16,8,3                  ## @VERIFY_16
	.comm	_ATA_DFLAG_LBA,4,2              ## @ATA_DFLAG_LBA
	.comm	_ATA_TFLAG_LBA,4,2              ## @ATA_TFLAG_LBA
	.comm	_ATA_CMD_VERIFY,8,3             ## @ATA_CMD_VERIFY
	.comm	_ATA_DFLAG_LBA48,4,2            ## @ATA_DFLAG_LBA48
	.comm	_ATA_TFLAG_LBA48,4,2            ## @ATA_TFLAG_LBA48
	.comm	_ATA_CMD_VERIFY_EXT,8,3         ## @ATA_CMD_VERIFY_EXT
	.comm	_ATA_LBA,8,3                    ## @ATA_LBA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"block %u track %u cyl %u head %u sect %u\n"

	.comm	_ILLEGAL_REQUEST,4,2            ## @ILLEGAL_REQUEST
	.comm	_SAM_STAT_GOOD,4,2              ## @SAM_STAT_GOOD
	.no_dead_strip	_ata_scsi_verify_xlat
.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_scsi_verify_xlat
lCPI0_0:
	.quad	-24                             ; 0xffffffffffffffe8
	.quad	-32                             ; 0xffffffffffffffe0
lCPI0_1:
	.quad	-16                             ; 0xfffffffffffffff0
	.quad	-8                              ; 0xfffffffffffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ata_scsi_verify_xlat:                  ; @ata_scsi_verify_xlat
	.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	x19, x0
	ldr	x20, [x0, #104]
	ldr	x21, [x0]
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, _ATA_PROT_NODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_PROT_NODATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #96]
	ldr	x8, [x0]
Lloh9:
	adrp	x9, _VERIFY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VERIFY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x20, #8]
	cmp	w8, #10
	b.lt	LBB0_11
; %bb.2:
	add	x1, sp, #8
	mov	x2, sp
	bl	_scsi_10_lba_len
	ldr	x1, [sp]
	cbz	x1, LBB0_13
LBB0_3:
	ldr	x0, [sp, #8]
	cmp	x0, x22
	b.ge	LBB0_21
; %bb.4:
	add	x8, x0, x1
	cmp	x8, x22
	b.gt	LBB0_21
; %bb.5:
	ldr	w8, [x21, #8]
Lloh12:
	adrp	x9, _ATA_DFLAG_LBA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATA_DFLAG_LBA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.6:
Lloh15:
	adrp	x8, _ATA_TFLAG_LBA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATA_TFLAG_LBA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	bl	_lba_28_ok
	cbz	x0, LBB0_18
; %bb.7:
Lloh18:
	adrp	x8, _ATA_CMD_VERIFY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATA_CMD_VERIFY@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #56]
	ldr	x8, [sp, #8]
	ubfx	x9, x8, #24, #4
	ldr	x10, [x19, #16]
	orr	x10, x9, x10
	ldrb	w9, [sp]
LBB0_8:
	mov	w0, #0
Lloh21:
	adrp	x11, lCPI0_1@PAGE
Lloh22:
	ldr	q0, [x11, lCPI0_1@PAGEOFF]
	and	x9, x9, #0xff
	dup.2d	v1, x8
	ushl.2d	v0, v1, v0
	movi.2d	v1, #0x000000000000ff
	and.16b	v0, v0, v1
	stur	q0, [x19, #24]
	and	x8, x8, #0xff
	stp	x8, x9, [x19, #40]
Lloh23:
	adrp	x8, _ATA_LBA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATA_LBA@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	orr	x8, x10, x8
	str	x8, [x19, #16]
	b	LBB0_24
LBB0_9:
Lloh26:
	adrp	x9, _VERIFY_16@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VERIFY_16@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x20, #8]
	cmp	w8, #16
	b.ge	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #36
	b	LBB0_22
LBB0_12:
	add	x1, sp, #8
	mov	x2, sp
	bl	_scsi_16_lba_len
	ldr	x1, [sp]
	cbnz	x1, LBB0_3
LBB0_13:
Lloh32:
	adrp	x8, _SAM_STAT_GOOD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SAM_STAT_GOOD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	b	LBB0_23
LBB0_14:
	bl	_lba_28_ok
	cbz	x0, LBB0_21
; %bb.15:
	ldr	x1, [sp, #8]
	ldp	x8, x9, [x21, #16]
	sdiv	x2, x1, x8
	sdiv	x22, x2, x9
	msub	x21, x22, x9, x2
	msub	x24, x2, x8, x1
	add	x23, x24, #1
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x21
	mov	x5, x23
	bl	_DPRINTK
	lsr	x8, x22, #16
	cmp	x8, #0
	ccmp	x21, #15, #2, eq
	b.hi	LBB0_21
; %bb.16:
	cmp	x24, #254
	b.hi	LBB0_21
; %bb.17:
	mov	w0, #0
Lloh37:
	adrp	x8, _ATA_CMD_VERIFY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ATA_CMD_VERIFY@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	ldrb	w9, [sp]
	stp	x9, x8, [x19, #48]
	stp	x22, x23, [x19, #32]
	lsr	x8, x22, #8
	ldr	x9, [x19, #16]
	orr	x9, x9, x21
	stp	x9, x8, [x19, #16]
	b	LBB0_24
LBB0_18:
	ldp	x1, x0, [sp]
	bl	_lba_48_ok
	cbz	x0, LBB0_21
; %bb.19:
	ldr	w8, [x21, #8]
Lloh40:
	adrp	x9, _ATA_DFLAG_LBA48@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ATA_DFLAG_LBA48@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
Lloh43:
	adrp	x8, _ATA_TFLAG_LBA48@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
Lloh46:
	adrp	x9, _ATA_CMD_VERIFY_EXT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ATA_CMD_VERIFY_EXT@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh48:
	ldr	x8, [x9]
	str	x8, [x19, #56]
	ldp	x9, x8, [sp]
	ubfx	x10, x9, #8, #8
	ubfx	x11, x8, #40, #8
	stp	x11, x10, [x19, #80]
	dup.2d	v0, x8
Lloh49:
	adrp	x10, lCPI0_0@PAGE
Lloh50:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	ushl.2d	v0, v0, v1
	movi.2d	v1, #0x000000000000ff
	and.16b	v0, v0, v1
	str	q0, [x19, #64]
	ldr	x10, [x19, #16]
	b	LBB0_8
LBB0_21:
Lloh51:
	adrp	x8, _ILLEGAL_REQUEST@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ILLEGAL_REQUEST@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #33
LBB0_22:
	mov	w3, #0
	bl	_ata_scsi_set_sense
LBB0_23:
	mov	w0, #1
LBB0_24:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdr	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ; @ATA_PROT_NODATA
	.comm	_VERIFY,8,3                     ; @VERIFY
	.comm	_VERIFY_16,8,3                  ; @VERIFY_16
	.comm	_ATA_DFLAG_LBA,4,2              ; @ATA_DFLAG_LBA
	.comm	_ATA_TFLAG_LBA,4,2              ; @ATA_TFLAG_LBA
	.comm	_ATA_CMD_VERIFY,8,3             ; @ATA_CMD_VERIFY
	.comm	_ATA_DFLAG_LBA48,4,2            ; @ATA_DFLAG_LBA48
	.comm	_ATA_TFLAG_LBA48,4,2            ; @ATA_TFLAG_LBA48
	.comm	_ATA_CMD_VERIFY_EXT,8,3         ; @ATA_CMD_VERIFY_EXT
	.comm	_ATA_LBA,8,3                    ; @ATA_LBA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"block %u track %u cyl %u head %u sect %u\n"

	.comm	_ILLEGAL_REQUEST,4,2            ; @ILLEGAL_REQUEST
	.comm	_SAM_STAT_GOOD,4,2              ; @SAM_STAT_GOOD
	.no_dead_strip	_ata_scsi_verify_xlat
.subsections_via_symbols
