	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoRead16_32x_on
_PicoRead16_32x_on:                     ## @PicoRead16_32x_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	%edi, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	cmpl	$20736, %eax                    ## imm = 0x5100
	jne	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_p32x_reg_read16
LBB0_2:
	movl	%eax, %r14d
LBB0_3:
	movq	_EL_32X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %eax
	andl	$64512, %eax                    ## imm = 0xFC00
	cmpl	$20480, %eax                    ## imm = 0x5000
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	cmpl	$20864, %eax                    ## imm = 0x5180
	jne	LBB0_10
## %bb.7:
	movl	%ebx, %edi
	callq	_p32x_vdp_read16
	jmp	LBB0_2
LBB0_8:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.9:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoRead16_mcd_io              ## TAILCALL
LBB0_10:
	movl	%ebx, %eax
	andl	$65024, %eax                    ## imm = 0xFE00
	cmpl	$20992, %eax                    ## imm = 0x5200
	jne	LBB0_13
## %bb.11:
	movq	_Pico32xMem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	movzbl	%cl, %ecx
	movl	(%rax,%rcx,4), %r14d
	jmp	LBB0_3
LBB0_12:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoRead16_io                  ## TAILCALL
LBB0_13:
	movl	%ebx, %eax
	andl	$65532, %eax                    ## imm = 0xFFFC
	cmpl	$12524, %eax                    ## imm = 0x30EC
	jne	LBB0_15
## %bb.14:
	testb	$2, %bl
	movl	$19777, %eax                    ## imm = 0x4D41
	movl	$21075, %r14d                   ## imm = 0x5253
	cmovel	%eax, %r14d
	jmp	LBB0_3
LBB0_15:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elprintf
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_Pico32xMem,8,3                 ## @Pico32xMem
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m68k unmapped r16 [%06x] @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_EL_32X,4,2                     ## @EL_32X
L_.str.1:                               ## @.str.1
	.asciz	"m68k 32x r16 [%06x] %04x @%06x"

	.no_dead_strip	_PicoRead16_32x_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoRead16_32x_on
_PicoRead16_32x_on:                     ; @PicoRead16_32x_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	and	w8, w0, #0xffc0
	mov	w9, #20736
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_p32x_reg_read16
LBB0_2:
	mov	x20, x0
LBB0_3:
Lloh0:
	adrp	x8, _EL_32X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_32X@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SekPc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_elprintf
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	and	w8, w19, #0xfc00
	cmp	w8, #5, lsl #12                 ; =20480
	b.ne	LBB0_8
; %bb.6:
	and	w8, w19, #0xfff0
	mov	w9, #20864
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_p32x_vdp_read16
	b	LBB0_2
LBB0_8:
Lloh8:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PAHW_MCD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAHW_MCD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PicoRead16_mcd_io
LBB0_10:
	and	w8, w19, #0xfe00
	mov	w9, #20992
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
Lloh14:
	adrp	x8, _Pico32xMem@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Pico32xMem@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ubfx	w9, w19, #1, #8
	ldr	w20, [x8, w9, uxtw #2]
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PicoRead16_io
LBB0_13:
	and	w8, w19, #0xfffc
	mov	w9, #12524
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
	tst	w19, #0x2
	mov	w8, #21075
	mov	w9, #19777
	csel	w20, w9, w8, eq
	b	LBB0_3
LBB0_15:
Lloh17:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _SekPc@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elprintf
	mov	w20, #0
	b	LBB0_4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_Pico32xMem,8,3                 ; @Pico32xMem
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m68k unmapped r16 [%06x] @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_EL_32X,4,2                     ; @EL_32X
l_.str.1:                               ; @.str.1
	.asciz	"m68k 32x r16 [%06x] %04x @%06x"

	.no_dead_strip	_PicoRead16_32x_on
.subsections_via_symbols
