	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoRead8_32x_on
_PicoRead8_32x_on:                      ## @PicoRead8_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, %r14d
	movl	%edi, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	cmpl	$20736, %eax                    ## imm = 0x5100
	jne	LBB0_5
## %bb.1:
	movl	%r14d, %edi
	callq	_p32x_reg_read16
LBB0_2:
	movl	%eax, %ebx
	testb	$1, %r14b
	jne	LBB0_8
LBB0_4:
	sarl	$8, %ebx
	jmp	LBB0_9
LBB0_5:
	movl	%r14d, %eax
	andl	$64512, %eax                    ## imm = 0xFC00
	cmpl	$20480, %eax                    ## imm = 0x5000
	jne	LBB0_11
## %bb.6:
	movl	%r14d, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	cmpl	$20864, %eax                    ## imm = 0x5180
	jne	LBB0_13
## %bb.7:
	movl	%r14d, %edi
	callq	_p32x_vdp_read16
	jmp	LBB0_2
LBB0_11:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_MCD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.12:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoRead8_mcd_io               ## TAILCALL
LBB0_13:
	movl	%r14d, %eax
	andl	$65024, %eax                    ## imm = 0xFE00
	cmpl	$20992, %eax                    ## imm = 0x5200
	jne	LBB0_16
## %bb.14:
	movq	_Pico32xMem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	shrl	%ecx
	movzbl	%cl, %ecx
	movl	(%rax,%rcx,4), %ebx
	testb	$1, %r14b
	je	LBB0_4
LBB0_8:
	movzbl	%bl, %ebx
LBB0_9:
	movq	_EL_32X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoRead8_io                   ## TAILCALL
LBB0_16:
	movl	%r14d, %eax
	andl	$65532, %eax                    ## imm = 0xFFFC
	cmpl	$12524, %eax                    ## imm = 0x30EC
	jne	LBB0_18
## %bb.17:
	movq	_str_mars@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	andl	$3, %ecx
	movl	(%rax,%rcx,4), %ebx
	jmp	LBB0_9
LBB0_18:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_MCD,4,2                   ## @PAHW_MCD
	.comm	_Pico32xMem,8,3                 ## @Pico32xMem
	.comm	_str_mars,8,3                   ## @str_mars
	.comm	_EL_UIO,4,2                     ## @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m68k unmapped r8  [%06x] @%06x"

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

	.no_dead_strip	_PicoRead8_32x_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoRead8_32x_on
_PicoRead8_32x_on:                      ; @PicoRead8_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:
	asr	w8, w0, #8
	and	w9, w0, #0xff
	tst	w19, #0x1
	csel	w20, w8, w9, eq
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	_PicoRead8_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	w0, [x8, w9, uxtw #2]
	b	LBB0_2
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	_PicoRead8_io
LBB0_13:
	and	w8, w19, #0xfffc
	mov	w9, #12524
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh17:
	adrp	x8, _str_mars@GOTPAGE
Lloh18:
	ldr	x8, [x8, _str_mars@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	and	w9, w19, #0x3
	ldr	w20, [x8, w9, uxtw #2]
	b	LBB0_3
LBB0_15:
Lloh20:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _SekPc@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	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 AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_MCD,4,2                   ; @PAHW_MCD
	.comm	_Pico32xMem,8,3                 ; @Pico32xMem
	.comm	_str_mars,8,3                   ; @str_mars
	.comm	_EL_UIO,4,2                     ; @EL_UIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m68k unmapped r8  [%06x] @%06x"

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

	.no_dead_strip	_PicoRead8_32x_on
.subsections_via_symbols
