	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoRead16_io                  ## -- Begin function PicoRead16_io
	.p2align	4, 0x90
_PicoRead16_io:                         ## @PicoRead16_io
	.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
	testl	$65504, %edi                    ## imm = 0xFFE0
	je	LBB0_1
## %bb.2:
	movq	_Pico@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$65, %ecx
	movl	%ecx, (%rax)
	movl	%edi, %edx
	andl	$64512, %edx                    ## imm = 0xFC00
	cmpl	$4096, %edx                     ## imm = 0x1000
	jne	LBB0_6
## %bb.3:
	movl	%ecx, %edx
	shll	$5, %edx
	movl	%ecx, %ebx
	shll	$8, %ebx
	xorl	%ecx, %ebx
	xorl	%edx, %ebx
	andl	$-257, %ebx                     ## imm = 0xFEFF
	andl	$65280, %edi                    ## imm = 0xFF00
	cmpl	$4352, %edi                     ## imm = 0x1100
	jne	LBB0_5
## %bb.4:
	movl	8(%rax), %ecx
	orl	4(%rax), %ecx
	andl	$1, %ecx
	shll	$8, %ecx
	orl	%ecx, %ebx
	movq	_EL_BUSREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_SekPc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_elprintf
	jmp	LBB0_5
LBB0_1:
	callq	_io_ports_read
	movl	%eax, %ebx
	shll	$8, %ebx
	orl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movq	_POPT_EN_32X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PicoRead16_32x                 ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_m68k_unmapped_read16           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,12,2                      ## @Pico
	.comm	_EL_BUSREQ,4,2                  ## @EL_BUSREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_zrun: %04x [%i] @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_32X,4,2                ## @POPT_EN_32X
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoRead16_io                  ; -- Begin function PicoRead16_io
	.p2align	2
_PicoRead16_io:                         ; @PicoRead16_io
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tst	w0, #0xffe0
	b.eq	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _Pico@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #65
	str	w9, [x8]
	and	w10, w0, #0xfc00
	cmp	w10, #1, lsl #12                ; =4096
	b.ne	LBB0_6
; %bb.2:
	eor	w10, w9, w9, lsl #8
	eor	w9, w10, w9, lsl #5
	and	w19, w9, #0xfffffeff
	and	w9, w0, #0xff00
	mov	w10, #4352
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.3:
	ldp	w9, w8, [x8, #4]
	orr	w8, w8, w9
	ubfiz	w8, w8, #8, #1
	orr	w19, w8, w19
Lloh2:
	adrp	x8, _EL_BUSREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_BUSREQ@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_SekCyclesDone
	mov	x3, x0
Lloh5:
	adrp	x8, _SekPc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_elprintf
	b	LBB0_5
LBB0_4:
	bl	_io_ports_read
	orr	w19, w0, w0, lsl #8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _POPT_EN_32X@GOTPAGE
Lloh14:
	ldr	x9, [x9, _POPT_EN_32X@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PicoRead16_32x
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_m68k_unmapped_read16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,12,2                      ; @Pico
	.comm	_EL_BUSREQ,4,2                  ; @EL_BUSREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_zrun: %04x [%i] @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_32X,4,2                ; @POPT_EN_32X
.subsections_via_symbols
