	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function handle_identify
LCPI0_0:
	.long	32896                           ## 0x8080
	.long	0                               ## 0x0
	.long	2816                            ## 0xb00
	.long	16384                           ## 0x4000
LCPI0_1:
	.long	3                               ## 0x3
	.long	120                             ## 0x78
	.long	120                             ## 0x78
	.long	120                             ## 0x78
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_handle_identify:                       ## @handle_identify
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 24(%rdi)
	je	LBB0_1
LBB0_2:
	movq	_ATA_E_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$8, %ecx
	movq	_ATA_S_READY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ATA_S_ERROR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ahci_write_fis_d2h             ## TAILCALL
LBB0_1:
	movq	32(%rbx), %rax
	movq	_AHCI_CL_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r15d, %rdx
	imulq	%rcx, %rdx
	cmpq	$0, (%rax,%rdx)
	je	LBB0_2
## %bb.4:
	movl	20(%rbx), %edi
	callq	_blockif_is_ro
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movl	20(%rbx), %edi
	callq	_blockif_candelete
	movl	%eax, -1080(%rbp)               ## 4-byte Spill
	movl	20(%rbx), %edi
	callq	_blockif_sectsz
	movl	%eax, %r12d
	movl	20(%rbx), %edi
	callq	_blockif_size
	cltd
	idivl	%r12d
	movl	%eax, %r13d
	movl	20(%rbx), %edi
	leaq	-1092(%rbp), %rsi
	leaq	-1084(%rbp), %rdx
	leaq	-1088(%rbp), %rcx
	callq	_blockif_chs
	movl	20(%rbx), %edi
	leaq	-1100(%rbp), %rsi
	leaq	-1096(%rbp), %rdx
	callq	_blockif_psectsz
	leaq	-1072(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movl	$64, -1072(%rbp)
	movl	-1092(%rbp), %eax
	movl	%eax, -1068(%rbp)
	movl	-1084(%rbp), %eax
	movl	%eax, -1060(%rbp)
	movl	-1088(%rbp), %eax
	movl	%eax, -1048(%rbp)
	leaq	-1032(%rbp), %rdi
	movq	(%rbx), %rsi
	movl	$20, %edx
	callq	_ata_string
	leaq	-980(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	callq	_ata_string
	leaq	-964(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$40, %edx
	callq	_ata_string
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [32896,0,2816,16384]
	movups	%xmm0, -884(%rbp)
	movl	$6, -860(%rbp)
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	orl	$256, %eax                      ## imm = 0x100
	movl	%eax, -836(%rbp)
LBB0_6:
	movl	%r13d, %eax
	sarl	$16, %eax
	cmpl	$268435456, %r13d               ## imm = 0x10000000
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovll	%r13d, %ecx
	movl	$4095, %edx                     ## imm = 0xFFF
	cmovll	%eax, %edx
	movl	%ecx, -832(%rbp)
	movl	%edx, -828(%rbp)
	movl	$7, -820(%rbp)
	movl	12(%rbx), %ecx
	movq	_ATA_WDMA0@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.7:
	movl	%ecx, %edx
	andb	$7, %dl
	orb	$8, %dl
	movl	$7, %esi
	btsl	%edx, %esi
	movl	%esi, -820(%rbp)
LBB0_8:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [3,120,120,120]
	movq	_ATA_SATA_GEN1@GOTPCREL(%rip), %rdx
	movq	_ATA_SATA_GEN2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movaps	%xmm0, -816(%rbp)
	movq	_ATA_SATA_GEN3@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	$120, -800(%rbp)
	movq	_ATA_SUPPORT_NCQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movl	$31, -772(%rbp)
	movl	%esi, -768(%rbp)
	movq	_ATA_SUPPORT_RCVSND_FPDMA_QUEUED@GOTPCREL(%rip), %rdx
	movq	_ATA_SS_SPD_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	16(%rbx), %esi
	sarl	$3, %esi
	orl	(%rdx), %esi
	movl	%esi, -764(%rbp)
	movq	_ATA_SUPPORT_POWERMGT@GOTPCREL(%rip), %rdx
	movq	_ATA_SUPPORT_WRITECACHE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	movq	_ATA_SUPPORT_LOOKAHEAD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_ATA_SUPPORT_NOP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
	movq	_ATA_SUPPORT_ADDRESS48@GOTPCREL(%rip), %rdx
	movq	_ATA_SUPPORT_FLUSHCACHE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	movabsq	$171798692848, %rdx             ## imm = 0x28000003F0
	movq	%rdx, -752(%rbp)
	movq	_ATA_SUPPORT_FLUSHCACHE48@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	movl	%esi, -744(%rbp)
	movl	%edi, %edx
	orl	$16384, %edx                    ## imm = 0x4000
	movl	%edx, -740(%rbp)
	movl	$16384, -736(%rbp)              ## imm = 0x4000
	movl	%esi, -732(%rbp)
	orl	$32768, %edi                    ## imm = 0x8000
	movl	%edi, -728(%rbp)
	movabsq	$545460862976, %rdx             ## imm = 0x7F00004000
	movq	%rdx, -724(%rbp)
	movq	_ATA_UDMA0@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_10
## %bb.9:
	andb	$7, %cl
	orb	$8, %cl
	movl	$127, %edx
	btsl	%ecx, %edx
	movl	%edx, -720(%rbp)
LBB0_10:
	movl	%r13d, -672(%rbp)
	movl	%eax, -668(%rbp)
	cmpl	$0, -1080(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.11:
	cmpl	$0, -1076(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.12:
	movq	_ATA_SUPPORT_RZAT@GOTPCREL(%rip), %rax
	movq	_ATA_SUPPORT_DRAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -796(%rbp)
	movl	$1, -652(%rbp)
	movq	_ATA_SUPPORT_DSM_TRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -396(%rbp)
LBB0_13:
	movl	$16384, -648(%rbp)              ## imm = 0x4000
	movl	$16384, -236(%rbp)              ## imm = 0x4000
	movl	-1100(%rbp), %eax
	movl	$20480, %ecx                    ## imm = 0x5000
	cmpl	%r12d, %eax
	jle	LBB0_15
## %bb.14:
	cltd
	idivl	%r12d
	bsfl	%eax, %edx
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	sbbl	%ecx, %ecx
	orl	%edx, %ecx
	movl	%ecx, %eax
	orl	$24576, %eax                    ## imm = 0x6000
	movl	%eax, -648(%rbp)
	movl	-1096(%rbp), %eax
	cltd
	idivl	%r12d
	orl	$16384, %eax                    ## imm = 0x4000
	movl	%eax, -236(%rbp)
	orl	$28672, %ecx                    ## imm = 0x7000
LBB0_15:
	cmpl	$513, %r12d                     ## imm = 0x201
	jl	LBB0_17
## %bb.16:
	movl	%ecx, -648(%rbp)
	movl	%r12d, %eax
	shrl	%eax
	movl	%eax, -604(%rbp)
	shrl	$17, %r12d
	movl	%r12d, -600(%rbp)
LBB0_17:
	movq	_ATA_SUPPORT_RWLOGDMAEXT@GOTPCREL(%rip), %rax
	movl	$16384, %ecx                    ## imm = 0x4000
	orl	(%rax), %ecx
	movl	%ecx, -596(%rbp)
	movl	%ecx, -592(%rbp)
	movl	$4128, -184(%rbp)               ## imm = 0x1020
	movl	$165, -52(%rbp)
	leaq	-1072(%rbp), %r12
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_ahci_checksum
	movq	%rbx, %rdi
	callq	_ahci_write_fis_piosetup
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_write_prdt
	movq	_ATA_S_DSC@GOTPCREL(%rip), %rax
	movq	_ATA_S_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_ahci_write_fis_d2h
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AHCI_CL_SIZE,4,2               ## @AHCI_CL_SIZE
	.comm	_ATA_E_ABORT,4,2                ## @ATA_E_ABORT
	.comm	_ATA_S_READY,4,2                ## @ATA_S_READY
	.comm	_ATA_S_ERROR,4,2                ## @ATA_S_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"001"

L_.str.1:                               ## @.str.1
	.asciz	"BHYVE SATA DISK"

	.comm	_ATA_WDMA0,4,2                  ## @ATA_WDMA0
	.comm	_ATA_SATA_GEN1,4,2              ## @ATA_SATA_GEN1
	.comm	_ATA_SATA_GEN2,4,2              ## @ATA_SATA_GEN2
	.comm	_ATA_SATA_GEN3,4,2              ## @ATA_SATA_GEN3
	.comm	_ATA_SUPPORT_NCQ,4,2            ## @ATA_SUPPORT_NCQ
	.comm	_ATA_SUPPORT_RCVSND_FPDMA_QUEUED,4,2 ## @ATA_SUPPORT_RCVSND_FPDMA_QUEUED
	.comm	_ATA_SS_SPD_MASK,4,2            ## @ATA_SS_SPD_MASK
	.comm	_ATA_SUPPORT_POWERMGT,4,2       ## @ATA_SUPPORT_POWERMGT
	.comm	_ATA_SUPPORT_WRITECACHE,4,2     ## @ATA_SUPPORT_WRITECACHE
	.comm	_ATA_SUPPORT_LOOKAHEAD,4,2      ## @ATA_SUPPORT_LOOKAHEAD
	.comm	_ATA_SUPPORT_NOP,4,2            ## @ATA_SUPPORT_NOP
	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ## @ATA_SUPPORT_ADDRESS48
	.comm	_ATA_SUPPORT_FLUSHCACHE,4,2     ## @ATA_SUPPORT_FLUSHCACHE
	.comm	_ATA_SUPPORT_FLUSHCACHE48,4,2   ## @ATA_SUPPORT_FLUSHCACHE48
	.comm	_ATA_UDMA0,4,2                  ## @ATA_UDMA0
	.comm	_ATA_SUPPORT_RZAT,4,2           ## @ATA_SUPPORT_RZAT
	.comm	_ATA_SUPPORT_DRAT,4,2           ## @ATA_SUPPORT_DRAT
	.comm	_ATA_SUPPORT_DSM_TRIM,4,2       ## @ATA_SUPPORT_DSM_TRIM
	.comm	_ATA_SUPPORT_RWLOGDMAEXT,4,2    ## @ATA_SUPPORT_RWLOGDMAEXT
	.comm	_ATA_S_DSC,4,2                  ## @ATA_S_DSC
	.no_dead_strip	_handle_identify
.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 handle_identify
lCPI0_0:
	.long	32896                           ; 0x8080
	.long	0                               ; 0x0
	.long	2816                            ; 0xb00
	.long	16384                           ; 0x4000
lCPI0_1:
	.long	3                               ; 0x3
	.long	120                             ; 0x78
	.long	120                             ; 0x78
	.long	120                             ; 0x78
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_2:
	.long	120                             ; 0x78
	.long	0                               ; 0x0
lCPI0_3:
	.long	1008                            ; 0x3f0
	.long	40                              ; 0x28
lCPI0_4:
	.long	16384                           ; 0x4000
	.long	127                             ; 0x7f
lCPI0_5:
	.long	4294967295                      ; 0xffffffff
	.long	4294967279                      ; 0xffffffef
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_handle_identify:                       ; @handle_identify
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _ATA_E_ABORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_E_ABORT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATA_S_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_S_READY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ATA_S_ERROR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ATA_S_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	ldur	x11, [x29, #-88]
Lloh12:
	adrp	x12, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x12, [x12, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x12, x11
	b.ne	LBB0_19
; %bb.2:
	orr	w8, w9, w8, lsl #8
	orr	w3, w8, w10
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ahci_write_fis_d2h
LBB0_3:
Lloh15:
	adrp	x8, _AHCI_CL_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AHCI_CL_SIZE@GOTPAGEOFF]
	ldr	x9, [x21, #32]
Lloh17:
	ldrsw	x8, [x8]
	sxtw	x10, w20
	mul	x8, x8, x10
	ldr	x8, [x9, x8]
	cbz	x8, LBB0_1
; %bb.4:
	add	x26, sp, #24
	ldr	w0, [x21, #20]
	bl	_blockif_is_ro
	mov	x23, x0
	ldr	w0, [x21, #20]
	bl	_blockif_candelete
	mov	x24, x0
	ldr	w0, [x21, #20]
	bl	_blockif_sectsz
	mov	x22, x0
	ldr	w0, [x21, #20]
	bl	_blockif_size
	ldr	w8, [x21, #20]
	sdiv	w25, w0, w22
	add	x1, sp, #12
	add	x2, sp, #4
	add	x3, sp, #8
	mov	x0, x8
	bl	_blockif_chs
	ldr	w0, [x21, #20]
	add	x1, sp, #20
	add	x2, sp, #16
	bl	_blockif_psectsz
	add	x27, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	mov	w8, #64
	ldr	w9, [sp, #12]
	stp	w8, w9, [sp, #24]
	ldp	w8, w9, [sp, #4]
	str	w8, [sp, #36]
	str	w9, [sp, #48]
	add	x0, x27, #40
	ldr	x1, [x21]
	mov	w2, #20
	bl	_ata_string
	add	x0, x27, #92
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_ata_string
	add	x0, x27, #108
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #40
	bl	_ata_string
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x26, #188]
	mov	w8, #6
	str	w8, [sp, #236]
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_6
; %bb.5:
	orr	w8, w8, #0x100
	str	w8, [sp, #260]
LBB0_6:
	add	x8, x26, #348
	asr	w9, w25, #16
	mov	w10, #268435456
	mov	w11, #65535
	cmp	w25, w10
	csel	w10, w25, w11, lt
	mov	w11, #4095
	csel	w11, w9, w11, lt
	str	w10, [sp, #264]
	str	w11, [sp, #268]
	mov	w10, #7
	str	w10, [sp, #276]
	ldr	w10, [x21, #12]
Lloh24:
	adrp	x11, _ATA_WDMA0@GOTPAGE
Lloh25:
	ldr	x11, [x11, _ATA_WDMA0@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.7:
	mov	w11, #8
	bfxil	w11, w10, #0, #3
	mov	w12, #1
	lsl	w11, w12, w11
	orr	w11, w11, #0x7
	str	w11, [sp, #276]
LBB0_8:
Lloh27:
	adrp	x11, lCPI0_1@PAGE
Lloh28:
	ldr	q0, [x11, lCPI0_1@PAGEOFF]
	str	q0, [x26, #256]
Lloh29:
	adrp	x11, lCPI0_2@PAGE
Lloh30:
	ldr	d0, [x11, lCPI0_2@PAGEOFF]
	str	d0, [x26, #272]
	mov	w11, #31
	str	w11, [sp, #324]
Lloh31:
	adrp	x11, _ATA_SATA_GEN1@GOTPAGE
Lloh32:
	ldr	x11, [x11, _ATA_SATA_GEN1@GOTPAGEOFF]
Lloh33:
	adrp	x12, _ATA_SATA_GEN2@GOTPAGE
Lloh34:
	ldr	x12, [x12, _ATA_SATA_GEN2@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
Lloh36:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh37:
	adrp	x12, _ATA_SATA_GEN3@GOTPAGE
Lloh38:
	ldr	x12, [x12, _ATA_SATA_GEN3@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh40:
	adrp	x12, _ATA_SUPPORT_NCQ@GOTPAGE
Lloh41:
	ldr	x12, [x12, _ATA_SUPPORT_NCQ@GOTPAGEOFF]
Lloh42:
	ldr	w12, [x12]
	orr	w11, w11, w12
	str	w11, [sp, #328]
Lloh43:
	adrp	x11, _ATA_SUPPORT_RCVSND_FPDMA_QUEUED@GOTPAGE
Lloh44:
	ldr	x11, [x11, _ATA_SUPPORT_RCVSND_FPDMA_QUEUED@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
	ldr	w12, [x21, #16]
Lloh46:
	adrp	x13, _ATA_SS_SPD_MASK@GOTPAGE
Lloh47:
	ldr	x13, [x13, _ATA_SS_SPD_MASK@GOTPAGEOFF]
Lloh48:
	ldr	w13, [x13]
	and	w12, w13, w12
	orr	w11, w11, w12, asr #3
	str	w11, [sp, #332]
Lloh49:
	adrp	x11, lCPI0_3@PAGE
Lloh50:
	ldr	d0, [x11, lCPI0_3@PAGEOFF]
	str	d0, [x26, #320]
Lloh51:
	adrp	x11, _ATA_SUPPORT_POWERMGT@GOTPAGE
Lloh52:
	ldr	x11, [x11, _ATA_SUPPORT_POWERMGT@GOTPAGEOFF]
Lloh53:
	ldr	w11, [x11]
Lloh54:
	adrp	x12, _ATA_SUPPORT_WRITECACHE@GOTPAGE
Lloh55:
	ldr	x12, [x12, _ATA_SUPPORT_WRITECACHE@GOTPAGEOFF]
Lloh56:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh57:
	adrp	x12, _ATA_SUPPORT_LOOKAHEAD@GOTPAGE
Lloh58:
	ldr	x12, [x12, _ATA_SUPPORT_LOOKAHEAD@GOTPAGEOFF]
Lloh59:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh60:
	adrp	x12, _ATA_SUPPORT_NOP@GOTPAGE
Lloh61:
	ldr	x12, [x12, _ATA_SUPPORT_NOP@GOTPAGEOFF]
Lloh62:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh63:
	adrp	x12, _ATA_SUPPORT_ADDRESS48@GOTPAGE
Lloh64:
	ldr	x12, [x12, _ATA_SUPPORT_ADDRESS48@GOTPAGEOFF]
	str	w11, [sp, #352]
Lloh65:
	ldr	w12, [x12]
Lloh66:
	adrp	x13, _ATA_SUPPORT_FLUSHCACHE@GOTPAGE
Lloh67:
	ldr	x13, [x13, _ATA_SUPPORT_FLUSHCACHE@GOTPAGEOFF]
Lloh68:
	ldr	w13, [x13]
	orr	w12, w13, w12
Lloh69:
	adrp	x13, _ATA_SUPPORT_FLUSHCACHE48@GOTPAGE
Lloh70:
	ldr	x13, [x13, _ATA_SUPPORT_FLUSHCACHE48@GOTPAGEOFF]
Lloh71:
	ldr	w13, [x13]
	orr	w12, w12, w13
	orr	w13, w12, #0x4000
	str	w13, [sp, #356]
	mov	w13, #16384
	str	w13, [sp, #360]
	str	w11, [sp, #364]
	orr	w11, w12, #0x8000
	str	w11, [sp, #368]
Lloh72:
	adrp	x11, lCPI0_4@PAGE
Lloh73:
	ldr	d0, [x11, lCPI0_4@PAGEOFF]
	str	d0, [x8]
Lloh74:
	adrp	x11, _ATA_UDMA0@GOTPAGE
Lloh75:
	ldr	x11, [x11, _ATA_UDMA0@GOTPAGEOFF]
Lloh76:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_10
; %bb.9:
	mov	w11, #8
	bfxil	w11, w10, #0, #3
	mov	w10, #1
	lsl	w10, w10, w11
	orr	w10, w10, #0x7f
	str	w10, [sp, #376]
LBB0_10:
	str	w25, [sp, #424]
	str	w9, [sp, #428]
	cbz	w24, LBB0_13
; %bb.11:
	cbnz	w23, LBB0_13
; %bb.12:
Lloh77:
	adrp	x9, _ATA_SUPPORT_RZAT@GOTPAGE
Lloh78:
	ldr	x9, [x9, _ATA_SUPPORT_RZAT@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
Lloh80:
	adrp	x10, _ATA_SUPPORT_DRAT@GOTPAGE
Lloh81:
	ldr	x10, [x10, _ATA_SUPPORT_DRAT@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [sp, #300]
	mov	w9, #1
	str	w9, [sp, #444]
Lloh83:
	adrp	x9, _ATA_SUPPORT_DSM_TRIM@GOTPAGE
Lloh84:
	ldr	x9, [x9, _ATA_SUPPORT_DSM_TRIM@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	str	w9, [sp, #700]
LBB0_13:
	mov	w9, #16384
	str	w9, [sp, #448]
	str	w9, [sp, #860]
	ldr	w9, [sp, #20]
	cmp	w9, w22
	b.le	LBB0_15
; %bb.14:
	sdiv	w9, w9, w22
	rbit	w10, w9
	clz	w10, w10
	orr	w10, w10, #0x6000
	cmp	w9, #0
	csinv	w9, w10, wzr, ne
	str	w9, [sp, #448]
	ldr	w10, [sp, #16]
	sdiv	w10, w10, w22
	orr	w10, w10, #0x4000
	str	w10, [sp, #860]
	orr	w9, w9, #0x1000
	cmp	w22, #513
	b.ge	LBB0_16
	b	LBB0_17
LBB0_15:
	mov	w9, #20480
	cmp	w22, #513
	b.lt	LBB0_17
LBB0_16:
	str	w9, [sp, #448]
	dup.2s	v0, w22
Lloh86:
	adrp	x9, lCPI0_5@PAGE
Lloh87:
	ldr	d1, [x9, lCPI0_5@PAGEOFF]
	ushl.2s	v0, v0, v1
	str	d0, [x8, #120]
LBB0_17:
Lloh88:
	adrp	x8, _ATA_SUPPORT_RWLOGDMAEXT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ATA_SUPPORT_RWLOGDMAEXT@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	orr	w8, w8, #0x4000
	str	w8, [sp, #500]
	str	w8, [sp, #504]
	mov	w8, #4128
	str	w8, [sp, #912]
	mov	w8, #165
	str	w8, [sp, #1044]
	add	x0, sp, #24
	mov	w1, #1024
	bl	_ahci_checksum
	mov	x0, x21
	bl	_ahci_write_fis_piosetup
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #1024
	bl	_write_prdt
Lloh91:
	adrp	x8, _ATA_S_DSC@GOTPAGE
Lloh92:
	ldr	x8, [x8, _ATA_S_DSC@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
Lloh94:
	adrp	x9, _ATA_S_READY@GOTPAGE
Lloh95:
	ldr	x9, [x9, _ATA_S_READY@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_ahci_write_fis_d2h
	ldur	x8, [x29, #-88]
Lloh97:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh98:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh99:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdrp	Lloh72, Lloh74
	.loh AdrpLdr	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdrp	Lloh49, Lloh51
	.loh AdrpLdr	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdr	Lloh29, Lloh30
	.loh AdrpAdrp	Lloh27, Lloh29
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdr	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
                                        ; -- End function
	.comm	_AHCI_CL_SIZE,4,2               ; @AHCI_CL_SIZE
	.comm	_ATA_E_ABORT,4,2                ; @ATA_E_ABORT
	.comm	_ATA_S_READY,4,2                ; @ATA_S_READY
	.comm	_ATA_S_ERROR,4,2                ; @ATA_S_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"001"

l_.str.1:                               ; @.str.1
	.asciz	"BHYVE SATA DISK"

	.comm	_ATA_WDMA0,4,2                  ; @ATA_WDMA0
	.comm	_ATA_SATA_GEN1,4,2              ; @ATA_SATA_GEN1
	.comm	_ATA_SATA_GEN2,4,2              ; @ATA_SATA_GEN2
	.comm	_ATA_SATA_GEN3,4,2              ; @ATA_SATA_GEN3
	.comm	_ATA_SUPPORT_NCQ,4,2            ; @ATA_SUPPORT_NCQ
	.comm	_ATA_SUPPORT_RCVSND_FPDMA_QUEUED,4,2 ; @ATA_SUPPORT_RCVSND_FPDMA_QUEUED
	.comm	_ATA_SS_SPD_MASK,4,2            ; @ATA_SS_SPD_MASK
	.comm	_ATA_SUPPORT_POWERMGT,4,2       ; @ATA_SUPPORT_POWERMGT
	.comm	_ATA_SUPPORT_WRITECACHE,4,2     ; @ATA_SUPPORT_WRITECACHE
	.comm	_ATA_SUPPORT_LOOKAHEAD,4,2      ; @ATA_SUPPORT_LOOKAHEAD
	.comm	_ATA_SUPPORT_NOP,4,2            ; @ATA_SUPPORT_NOP
	.comm	_ATA_SUPPORT_ADDRESS48,4,2      ; @ATA_SUPPORT_ADDRESS48
	.comm	_ATA_SUPPORT_FLUSHCACHE,4,2     ; @ATA_SUPPORT_FLUSHCACHE
	.comm	_ATA_SUPPORT_FLUSHCACHE48,4,2   ; @ATA_SUPPORT_FLUSHCACHE48
	.comm	_ATA_UDMA0,4,2                  ; @ATA_UDMA0
	.comm	_ATA_SUPPORT_RZAT,4,2           ; @ATA_SUPPORT_RZAT
	.comm	_ATA_SUPPORT_DRAT,4,2           ; @ATA_SUPPORT_DRAT
	.comm	_ATA_SUPPORT_DSM_TRIM,4,2       ; @ATA_SUPPORT_DSM_TRIM
	.comm	_ATA_SUPPORT_RWLOGDMAEXT,4,2    ; @ATA_SUPPORT_RWLOGDMAEXT
	.comm	_ATA_S_DSC,4,2                  ; @ATA_S_DSC
	.no_dead_strip	_handle_identify
.subsections_via_symbols
