	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma64_dd_upd
_dma64_dd_upd:                          ## @dma64_dd_upd
	.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	%r9d, %r14d
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_D64_CTRL2_BC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PCI32ADDR_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edi
	andl	%edx, %edi
	je	LBB0_3
## %bb.2:
	movq	_PCI32ADDR_HIGH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edi
	notl	%esi
	andl	%edx, %esi
	movq	_D64_CTRL2_AE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_D64_CTRL2_AE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%edi, %r14d
	movl	%eax, %edx
	movl	%esi, %eax
LBB0_3:
	addl	%eax, %edx
	movl	%edx, %edi
	callq	_cpu_to_le32
	shlq	$5, %rbx
	movq	%rax, 24(%r15,%rbx)
	movl	8(%r12), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15,%rbx)
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15,%rbx)
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15,%rbx)
	movq	_DMA_CTRL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r12)
	je	LBB0_6
## %bb.4:
	addq	%rbx, %r15
	movq	%r15, %rdi
	callq	_dma64_dd_parity
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_D64_CTRL2_PARITY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D64_CTRL2_BC_MASK,4,2          ## @D64_CTRL2_BC_MASK
	.comm	_PCI32ADDR_HIGH,4,2             ## @PCI32ADDR_HIGH
	.comm	_PCI32ADDR_HIGH_SHIFT,4,2       ## @PCI32ADDR_HIGH_SHIFT
	.comm	_D64_CTRL2_AE_SHIFT,4,2         ## @D64_CTRL2_AE_SHIFT
	.comm	_D64_CTRL2_AE,4,2               ## @D64_CTRL2_AE
	.comm	_DMA_CTRL_PEN,4,2               ## @DMA_CTRL_PEN
	.comm	_D64_CTRL2_PARITY,4,2           ## @D64_CTRL2_PARITY
	.no_dead_strip	_dma64_dd_upd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma64_dd_upd
_dma64_dd_upd:                          ; @dma64_dd_upd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _D64_CTRL2_BC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D64_CTRL2_BC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w5
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _PCI32ADDR_HIGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI32ADDR_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w10, w9, w2
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x11, _PCI32ADDR_HIGH_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PCI32ADDR_HIGH_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	asr	w10, w10, w11
	bic	w9, w2, w9
Lloh9:
	adrp	x11, _D64_CTRL2_AE_SHIFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _D64_CTRL2_AE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _D64_CTRL2_AE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _D64_CTRL2_AE@GOTPAGEOFF]
	lsl	w10, w10, w11
Lloh14:
	ldr	w11, [x12]
	and	w10, w10, w11
	orr	w19, w10, w19
	mov	x2, x8
	mov	x8, x9
LBB0_3:
	add	w0, w8, w2
	bl	_cpu_to_le32
	add	x22, x23, x22, lsl #5
	str	x0, [x22, #24]
	ldr	w0, [x20, #8]
	bl	_cpu_to_le32
	str	x0, [x22, #16]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	mov	x0, x19
	bl	_cpu_to_le32
	str	x0, [x22]
	ldr	w8, [x20, #12]
Lloh15:
	adrp	x9, _DMA_CTRL_PEN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DMA_CTRL_PEN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_dma64_dd_parity
	cbz	x0, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _D64_CTRL2_PARITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _D64_CTRL2_PARITY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w0, w8, w19
	bl	_cpu_to_le32
	str	x0, [x22]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_D64_CTRL2_BC_MASK,4,2          ; @D64_CTRL2_BC_MASK
	.comm	_PCI32ADDR_HIGH,4,2             ; @PCI32ADDR_HIGH
	.comm	_PCI32ADDR_HIGH_SHIFT,4,2       ; @PCI32ADDR_HIGH_SHIFT
	.comm	_D64_CTRL2_AE_SHIFT,4,2         ; @D64_CTRL2_AE_SHIFT
	.comm	_D64_CTRL2_AE,4,2               ; @D64_CTRL2_AE
	.comm	_DMA_CTRL_PEN,4,2               ; @DMA_CTRL_PEN
	.comm	_D64_CTRL2_PARITY,4,2           ; @D64_CTRL2_PARITY
	.no_dead_strip	_dma64_dd_upd
.subsections_via_symbols
