	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc20621_ata_sg
_pdc20621_ata_sg:                       ## @pdc20621_ata_sg
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	_PDC_DIMM_APKT_PRD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	sarl	$2, %r13d
	movq	_PDC_20621_DIMM_BASE@GOTPCREL(%rip), %rcx
	movq	_PDC_20621_DIMM_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
	movq	_PDC_DIMM_DATA_STEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	imull	%edx, %ebx
	addl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_VPRINTK
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r14,%r13,4)
	movq	_ATA_PRD_EOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movl	%r13d, %ecx
	incl	%ecx
	movl	%eax, (%r14,%rcx,4)
	movq	_PDC_DIMM_WINDOW_STEP@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r12d
	movq	_PDC_20621_DIMM_BASE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	movq	_PDC_DIMM_APKT_PRD@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r12d
	movl	(%r14,%r13,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VPRINTK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_DIMM_APKT_PRD,4,2          ## @PDC_DIMM_APKT_PRD
	.comm	_PDC_20621_DIMM_BASE,4,2        ## @PDC_20621_DIMM_BASE
	.comm	_PDC_20621_DIMM_DATA,4,2        ## @PDC_20621_DIMM_DATA
	.comm	_PDC_DIMM_DATA_STEP,4,2         ## @PDC_DIMM_DATA_STEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATA sg addr 0x%x, %d\n"

	.comm	_ATA_PRD_EOT,4,2                ## @ATA_PRD_EOT
L_.str.1:                               ## @.str.1
	.asciz	"ATA PSG @ %x == (0x%x, 0x%x)\n"

	.comm	_PDC_DIMM_WINDOW_STEP,4,2       ## @PDC_DIMM_WINDOW_STEP
	.no_dead_strip	_pdc20621_ata_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc20621_ata_sg
_pdc20621_ata_sg:                       ; @pdc20621_ata_sg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x23, _PDC_DIMM_APKT_PRD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PDC_DIMM_APKT_PRD@GOTPAGEOFF]
	ldr	w8, [x23]
	asr	w24, w8, #2
Lloh2:
	adrp	x25, _PDC_20621_DIMM_BASE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PDC_20621_DIMM_BASE@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _PDC_20621_DIMM_DATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PDC_20621_DIMM_DATA@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w9, w8
Lloh7:
	adrp	x9, _PDC_DIMM_DATA_STEP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PDC_DIMM_DATA_STEP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	madd	w22, w9, w2, w8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x22
	bl	_VPRINTK
	mov	x0, x22
	bl	_cpu_to_le32
	lsl	x22, x24, #2
	str	w0, [x21, x22]
Lloh12:
	adrp	x8, _ATA_PRD_EOT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATA_PRD_EOT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w0, w8, w19
	bl	_cpu_to_le32
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w24, #1
	str	w0, [x21, w8, uxtw #2]
	ldr	w8, [x25]
Lloh15:
	adrp	x9, _PDC_DIMM_WINDOW_STEP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PDC_DIMM_WINDOW_STEP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	madd	w8, w9, w20, w8
	ldr	w9, [x23]
	add	w1, w8, w9
	ldr	w2, [x21, x22]
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_VPRINTK
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_DIMM_APKT_PRD,4,2          ; @PDC_DIMM_APKT_PRD
	.comm	_PDC_20621_DIMM_BASE,4,2        ; @PDC_20621_DIMM_BASE
	.comm	_PDC_20621_DIMM_DATA,4,2        ; @PDC_20621_DIMM_DATA
	.comm	_PDC_DIMM_DATA_STEP,4,2         ; @PDC_DIMM_DATA_STEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATA sg addr 0x%x, %d\n"

	.comm	_ATA_PRD_EOT,4,2                ; @ATA_PRD_EOT
l_.str.1:                               ; @.str.1
	.asciz	"ATA PSG @ %x == (0x%x, 0x%x)\n"

	.comm	_PDC_DIMM_WINDOW_STEP,4,2       ; @PDC_DIMM_WINDOW_STEP
	.no_dead_strip	_pdc20621_ata_sg
.subsections_via_symbols
