	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc_sata_tf_load
_vsc_sata_tf_load:                      ## @vsc_sata_tf_load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ATA_TFLAG_ISADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%rsi), %ebx
	movl	4(%rsi), %esi
	movq	_ATA_NIEN@GOTPCREL(%rip), %rax
	movl	(%rdi), %ecx
	xorl	%esi, %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%esi, (%r14)
	andl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vsc_intr_mask_update
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	movq	_ATA_TFLAG_LBA48@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r15), %edi
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	movl	64(%r15), %eax
	shll	$8, %eax
	orl	%edi, %eax
	movl	24(%r14), %esi
	movl	%eax, %edi
	callq	_writew
	movl	56(%r15), %edi
	shll	$8, %edi
	orl	12(%r15), %edi
	movl	20(%r14), %esi
	callq	_writew
	movl	48(%r15), %edi
	shll	$8, %edi
	orl	16(%r15), %edi
	movl	16(%r14), %esi
	callq	_writew
	movl	40(%r15), %edi
	shll	$8, %edi
	orl	20(%r15), %edi
	movl	12(%r14), %esi
	callq	_writew
	movl	32(%r15), %edi
	shll	$8, %edi
	orl	24(%r15), %edi
	jmp	LBB0_6
LBB0_5:
	movl	24(%r14), %esi
	callq	_writew
	movl	12(%r15), %edi
	movl	20(%r14), %esi
	callq	_writew
	movl	16(%r15), %edi
	movl	16(%r14), %esi
	callq	_writew
	movl	20(%r15), %edi
	movl	12(%r14), %esi
	callq	_writew
	movl	24(%r15), %edi
LBB0_6:
	movl	8(%r14), %esi
	callq	_writew
LBB0_7:
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.8:
	movl	28(%r15), %edi
	movl	4(%r14), %esi
	callq	_writeb
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_wait_idle                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ## @ATA_TFLAG_ISADDR
	.comm	_ATA_NIEN,4,2                   ## @ATA_NIEN
	.comm	_ATA_TFLAG_LBA48,4,2            ## @ATA_TFLAG_LBA48
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.no_dead_strip	_vsc_sata_tf_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc_sata_tf_load
_vsc_sata_tf_load:                      ; @vsc_sata_tf_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATA_TFLAG_ISADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TFLAG_ISADDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldp	w10, w8, [x1]
	and	w21, w9, w10
Lloh3:
	adrp	x9, _ATA_NIEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATA_NIEN@GOTPAGEOFF]
	ldr	w10, [x9]
	ldr	w11, [x0]
	eor	w11, w11, w8
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19]
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_vsc_intr_mask_update
LBB0_2:
	cbz	w21, LBB0_7
; %bb.3:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _ATA_TFLAG_LBA48@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATA_TFLAG_LBA48@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w0, [x20, #8]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20, #64]
	orr	w0, w0, w8, lsl #8
	ldr	w1, [x19, #24]
	bl	_writew
	ldr	w8, [x20, #12]
	ldr	w9, [x20, #56]
	orr	w0, w8, w9, lsl #8
	ldr	w1, [x19, #20]
	bl	_writew
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #48]
	orr	w0, w8, w9, lsl #8
	ldr	w1, [x19, #16]
	bl	_writew
	ldr	w8, [x20, #20]
	ldr	w9, [x20, #40]
	orr	w0, w8, w9, lsl #8
	ldr	w1, [x19, #12]
	bl	_writew
	ldr	w8, [x20, #24]
	ldr	w9, [x20, #32]
	orr	w0, w8, w9, lsl #8
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #24]
	bl	_writew
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #20]
	bl	_writew
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #16]
	bl	_writew
	ldr	w0, [x20, #20]
	ldr	w1, [x19, #12]
	bl	_writew
	ldr	w0, [x20, #24]
LBB0_6:
	ldr	w1, [x19, #8]
	bl	_writew
LBB0_7:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x20, #28]
	ldr	w1, [x19, #4]
	bl	_writeb
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ata_wait_idle
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_ISADDR,4,2           ; @ATA_TFLAG_ISADDR
	.comm	_ATA_NIEN,4,2                   ; @ATA_NIEN
	.comm	_ATA_TFLAG_LBA48,4,2            ; @ATA_TFLAG_LBA48
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.no_dead_strip	_vsc_sata_tf_load
.subsections_via_symbols
