	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdp_z80_data_r_m4
_vdp_z80_data_r_m4:                     ## @vdp_z80_data_r_m4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_fifo@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %eax
	movq	_pending@GOTPCREL(%rip), %rdx
	movq	$0, (%rdx)
	movq	_vram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_addr@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	andl	$16383, %edi                    ## imm = 0x3FFF
	movl	(%rdx,%rdi,4), %edx
	movl	%edx, (%rcx)
	movq	_reg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	120(%rcx), %ecx
	movl	(%rsi), %edx
	addl	%edx, %ecx
	incl	%ecx
	movl	%ecx, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fifo,8,3                       ## @fifo
	.comm	_pending,8,3                    ## @pending
	.comm	_vram,8,3                       ## @vram
	.comm	_addr,4,2                       ## @addr
	.comm	_reg,8,3                        ## @reg
	.no_dead_strip	_vdp_z80_data_r_m4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdp_z80_data_r_m4
_vdp_z80_data_r_m4:                     ; @vdp_z80_data_r_m4
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _fifo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fifo@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x9, _pending@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pending@GOTPAGEOFF]
Lloh5:
	adrp	x10, _vram@GOTPAGE
Lloh6:
	ldr	x10, [x10, _vram@GOTPAGEOFF]
Lloh7:
	str	xzr, [x9]
Lloh8:
	ldr	x9, [x10]
Lloh9:
	adrp	x10, _addr@GOTPAGE
Lloh10:
	ldr	x10, [x10, _addr@GOTPAGEOFF]
	ldr	w11, [x10]
	and	x11, x11, #0x3fff
	ldr	w9, [x9, x11, lsl #2]
	str	w9, [x8]
Lloh11:
	adrp	x8, _reg@GOTPAGE
Lloh12:
	ldr	x8, [x8, _reg@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w8, [x8, #120]
	ldr	w9, [x10]
	add	w8, w8, w9
	add	w8, w8, #1
	str	w8, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fifo,8,3                       ; @fifo
	.comm	_pending,8,3                    ; @pending
	.comm	_vram,8,3                       ; @vram
	.comm	_addr,4,2                       ; @addr
	.comm	_reg,8,3                        ; @reg
	.no_dead_strip	_vdp_z80_data_r_m4
.subsections_via_symbols
