	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdp_dma_copy
_vdp_dma_copy:                          ## @vdp_dma_copy
	.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	%edi, %r14d
	movq	_code@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$30, %eax
	cmpl	$16, %eax
	jne	LBB0_5
## %bb.1:
	movq	_dma_src@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_vram@GOTPCREL(%rip), %r12
	movq	_addr@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	%r15d, %edx
	callq	_WRITE_BYTE
	movl	(%r13), %edi
	callq	_MARK_BG_DIRTY
	incq	%rbx
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	60(%rax), %eax
	addl	%eax, (%r13)
	decl	%r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_READ_BYTE
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_sat_base_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_satb@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_sat@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sat_addr_mask@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movl	%r15d, %edx
	callq	_WRITE_BYTE
	movl	(%r13), %esi
	jmp	LBB0_4
LBB0_5:
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ebx
	imull	60(%rax), %r14d
	movq	_addr@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movq	_dma_src@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
LBB0_6:
	movq	_dma_src@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_code,4,2                       ## @code
	.comm	_dma_src,8,3                    ## @dma_src
	.comm	_vram,4,2                       ## @vram
	.comm	_addr,4,2                       ## @addr
	.comm	_sat_base_mask,4,2              ## @sat_base_mask
	.comm	_satb,4,2                       ## @satb
	.comm	_sat,4,2                        ## @sat
	.comm	_sat_addr_mask,4,2              ## @sat_addr_mask
	.comm	_reg,8,3                        ## @reg
	.no_dead_strip	_vdp_dma_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdp_dma_copy
_vdp_dma_copy:                          ; @vdp_dma_copy
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _code@GOTPAGE
Lloh1:
	ldr	x8, [x8, _code@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, #0x1e
Lloh3:
	adrp	x11, _dma_src@GOTPAGE
Lloh4:
	ldr	x11, [x11, _dma_src@GOTPAGEOFF]
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.1:
	ldr	x20, [x11]
Lloh5:
	adrp	x23, _vram@GOTPAGE
Lloh6:
	ldr	x23, [x23, _vram@GOTPAGEOFF]
Lloh7:
	adrp	x24, _addr@GOTPAGE
Lloh8:
	ldr	x24, [x24, _addr@GOTPAGEOFF]
Lloh9:
	adrp	x25, _sat_base_mask@GOTPAGE
Lloh10:
	ldr	x25, [x25, _sat_base_mask@GOTPAGEOFF]
Lloh11:
	adrp	x26, _satb@GOTPAGE
Lloh12:
	ldr	x26, [x26, _satb@GOTPAGEOFF]
Lloh13:
	adrp	x27, _sat@GOTPAGE
Lloh14:
	ldr	x27, [x27, _sat@GOTPAGEOFF]
Lloh15:
	adrp	x28, _sat_addr_mask@GOTPAGE
Lloh16:
	ldr	x28, [x28, _sat_addr_mask@GOTPAGEOFF]
Lloh17:
	adrp	x22, _reg@GOTPAGE
Lloh18:
	ldr	x22, [x22, _reg@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	mov	x2, x21
	bl	_WRITE_BYTE
	ldr	w0, [x24]
	bl	_MARK_BG_DIRTY
	add	x20, x20, #1
	ldr	x8, [x22]
	ldr	w8, [x8, #60]
	ldr	w9, [x24]
	add	w8, w9, w8
	str	w8, [x24]
	subs	w19, w19, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_READ_BYTE
	mov	x21, x0
	ldr	w1, [x24]
	ldr	w8, [x25]
	and	w8, w8, w1
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	ldr	w8, [x28]
	and	w1, w8, w1
	mov	x2, x21
	bl	_WRITE_BYTE
	ldr	w1, [x24]
	b	LBB0_2
LBB0_5:
Lloh19:
	adrp	x8, _reg@GOTPAGE
Lloh20:
	ldr	x8, [x8, _reg@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _addr@GOTPAGE
Lloh23:
	ldr	x9, [x9, _addr@GOTPAGEOFF]
	ldr	w8, [x8, #60]
	ldr	w10, [x9]
	madd	w8, w8, w19, w10
	str	w8, [x9]
	ldr	x8, [x11]
	add	x20, x8, w19, uxtw
LBB0_6:
Lloh24:
	adrp	x8, _dma_src@GOTPAGE
Lloh25:
	ldr	x8, [x8, _dma_src@GOTPAGEOFF]
Lloh26:
	str	x20, [x8]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_code,4,2                       ; @code
	.comm	_dma_src,8,3                    ; @dma_src
	.comm	_vram,4,2                       ; @vram
	.comm	_addr,4,2                       ; @addr
	.comm	_sat_base_mask,4,2              ; @sat_base_mask
	.comm	_satb,4,2                       ; @satb
	.comm	_sat,4,2                        ; @sat
	.comm	_sat_addr_mask,4,2              ; @sat_addr_mask
	.comm	_reg,8,3                        ; @reg
	.no_dead_strip	_vdp_dma_copy
.subsections_via_symbols
