	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p32x_vdp_read16
_p32x_vdp_read16:                       ## @p32x_vdp_read16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	andl	$14, %edi
	movq	_Pico32x@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movl	%edi, %edx
	shrl	%edx
	movl	(%rax,%rdx,4), %eax
	cmpl	$10, %edi
	jne	LBB0_3
## %bb.1:
	movl	8(%rcx), %edx
	incl	%edx
	movl	%edx, 8(%rcx)
	movl	%edx, %ecx
	shll	$29, %ecx
	sarl	$31, %ecx
	movq	_P32XV_HBLK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	orl	%ecx, %eax
	testb	$7, %dl
	je	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movq	_P32XV_nFEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico32x,16,3                   ## @Pico32x
	.comm	_P32XV_HBLK,4,2                 ## @P32XV_HBLK
	.comm	_P32XV_nFEN,4,2                 ## @P32XV_nFEN
	.no_dead_strip	_p32x_vdp_read16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p32x_vdp_read16
_p32x_vdp_read16:                       ; @p32x_vdp_read16
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Pico32x@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico32x@GOTPAGEOFF]
	and	w9, w0, #0xe
	ldr	x10, [x8]
	ubfx	w11, w0, #1, #3
	ldr	w0, [x10, w11, uxtw #2]
	cmp	w9, #10
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	lsl	w8, w9, #29
Lloh2:
	adrp	x10, _P32XV_HBLK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _P32XV_HBLK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w8, w10, w8, asr #31
	orr	w0, w8, w0
	tst	w9, #0x7
	b.eq	LBB0_3
LBB0_2:
	ret
LBB0_3:
Lloh5:
	adrp	x8, _P32XV_nFEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _P32XV_nFEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico32x,16,3                   ; @Pico32x
	.comm	_P32XV_HBLK,4,2                 ; @P32XV_HBLK
	.comm	_P32XV_nFEN,4,2                 ; @P32XV_nFEN
	.no_dead_strip	_p32x_vdp_read16
.subsections_via_symbols
