	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_data_xfer_vlb
_pdc_data_xfer_vlb:                     ## @pdc_data_xfer_vlb
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %edi
	callq	_ata_id_has_dword_io
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	%r15d, %r13d
	andl	$3, %r13d
	cmpl	$3, %r13d
	je	LBB0_3
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_13
LBB0_3:
	movq	_ATA_PFLAG_PIO32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.4:
	callq	_local_irq_save
	movl	8(%r14), %edi
	callq	_ioread8
	movl	8(%r14), %edi
	callq	_ioread8
	movl	8(%r14), %edi
	callq	_ioread8
	movq	_READ@GOTPCREL(%rip), %rbx
	movl	%r15d, %edx
	shrl	$2, %edx
	movl	4(%r14), %edi
	cmpl	%r12d, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ioread32_rep
	jmp	LBB0_7
LBB0_13:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_sff_data_xfer_noirq        ## TAILCALL
LBB0_6:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iowrite32_rep
LBB0_7:
	movl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpl	%r12d, (%rbx)
	jne	LBB0_10
## %bb.9:
	movl	4(%r14), %edi
	callq	_ioread32
	movl	%eax, %edi
	callq	_cpu_to_le32
	movb	%al, -41(%rbp)
	movl	%r15d, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	movl	%r13d, %eax
	subq	%rax, %rdi
	leaq	-41(%rbp), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	jmp	LBB0_11
LBB0_10:
	movl	%r15d, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movl	%r13d, %eax
	subq	%rax, %rsi
	leaq	-41(%rbp), %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movzbl	-41(%rbp), %edi
	callq	_le32_to_cpu
	movl	4(%r14), %esi
	movl	%eax, %edi
	callq	_iowrite32
LBB0_11:
	addl	$4, %r15d
	andl	$-4, %r15d
LBB0_12:
	callq	_local_irq_restore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_PFLAG_PIO32,4,2            ## @ATA_PFLAG_PIO32
	.comm	_READ,4,2                       ## @READ
	.no_dead_strip	_pdc_data_xfer_vlb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_data_xfer_vlb
_pdc_data_xfer_vlb:                     ; @pdc_data_xfer_vlb
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	w0, [x0]
	bl	_ata_id_has_dword_io
	cbz	x0, LBB0_6
; %bb.1:
	and	w21, w19, #0x3
	cmp	w21, #3
	b.eq	LBB0_3
; %bb.2:
	cbnz	w21, LBB0_6
LBB0_3:
	ldr	w8, [x24]
Lloh0:
	adrp	x9, _ATA_PFLAG_PIO32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_PFLAG_PIO32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	bl	_local_irq_save
	ldr	w0, [x24, #8]
	bl	_ioread8
	ldr	w0, [x24, #8]
	bl	_ioread8
	ldr	w0, [x24, #8]
	bl	_ioread8
Lloh3:
	adrp	x23, _READ@GOTPAGE
Lloh4:
	ldr	x23, [x23, _READ@GOTPAGEOFF]
	ldr	w8, [x23]
	ldr	w0, [x24, #4]
	lsr	w2, w19, #2
	mov	x1, x20
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.5:
	bl	_ioread32_rep
	b	LBB0_8
LBB0_6:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	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
	b	_ata_sff_data_xfer_noirq
LBB0_7:
	bl	_iowrite32_rep
LBB0_8:
	mov	x0, x21
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w8, [x23]
	cmp	w8, w22
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x24, #4]
	bl	_ioread32
	bl	_cpu_to_le32
	strb	w0, [sp, #15]
	add	x8, x20, w19, uxtw
	sub	x0, x8, w21, uxtw
	add	x1, sp, #15
	mov	x2, x21
	bl	_memcpy
	b	LBB0_12
LBB0_11:
	add	x8, x20, w19, uxtw
	sub	x1, x8, w21, uxtw
	add	x0, sp, #15
	mov	x2, x21
	bl	_memcpy
	ldrb	w0, [sp, #15]
	bl	_le32_to_cpu
	ldr	w1, [x24, #4]
	bl	_iowrite32
LBB0_12:
	add	w8, w19, #4
	and	w19, w8, #0xfffffffc
LBB0_13:
	bl	_local_irq_restore
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_PFLAG_PIO32,4,2            ; @ATA_PFLAG_PIO32
	.comm	_READ,4,2                       ; @READ
	.no_dead_strip	_pdc_data_xfer_vlb
.subsections_via_symbols
