	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdp_dma_fill
_vdp_dma_fill:                          ## @vdp_dma_fill
	.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, %ebx
	movq	_code@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	$31, %eax
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	movq	_dmafill@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_addr@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_vram@GOTPCREL(%rip), %r12
	movq	_reg@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	xorl	$1, %esi
	movl	%r14d, %edx
	callq	_WRITE_BYTE
	movl	(%r15), %edi
	callq	_MARK_BG_DIRTY
	movq	(%r13), %rax
	movl	(%r15), %esi
	addl	60(%rax), %esi
	movl	%esi, (%r15)
	decl	%ebx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	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
	xorl	$1, %esi
	movl	%r14d, %edx
	callq	_WRITE_BYTE
	movl	(%r15), %esi
	jmp	LBB0_4
LBB0_5:
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imull	60(%rax), %ebx
	movq	_addr@GOTPCREL(%rip), %rax
	addl	%ebx, (%rax)
LBB0_6:
	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	_dmafill,4,2                    ## @dmafill
	.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	_vram,4,2                       ## @vram
	.comm	_reg,8,3                        ## @reg
	.no_dead_strip	_vdp_dma_fill
.subsections_via_symbols

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