	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoRead8_z80
_PicoRead8_z80:                         ## @PicoRead8_z80
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	movq	_Pico@GOTPCREL(%rip), %rax
	testb	$1, 8(%rax)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rax)
	jne	LBB0_2
## %bb.3:
	testl	$16384, %edx                    ## imm = 0x4000
	jne	LBB0_5
## %bb.4:
	movq	(%rax), %rax
	andl	$8191, %edx                     ## imm = 0x1FFF
	movl	(%rax,%rdx,4), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elprintf
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	%edx, %eax
	andl	$24576, %eax                    ## imm = 0x6000
	cmpl	$16384, %eax                    ## imm = 0x4000
	jne	LBB0_6
## %bb.8:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ym2612_read_local_68k          ## TAILCALL
LBB0_6:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_elprintf
	movl	$255, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,24,3                      ## @Pico
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"68k z80 read with no bus! [%06x] @ %06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_EL_UIO,4,2                     ## @EL_UIO
L_.str.1:                               ## @.str.1
	.asciz	"68k bad read [%06x] @%06x"

	.no_dead_strip	_PicoRead8_z80
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoRead8_z80
_PicoRead8_z80:                         ; @PicoRead8_z80
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x2, x0
Lloh0:
	adrp	x8, _Pico@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
	ldrb	w9, [x8, #8]
	tbnz	w9, #0, LBB0_4
; %bb.1:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_4
; %bb.2:
	tbnz	w2, #14, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	and	w9, w2, #0x1fff
	ldr	w0, [x8, w9, uxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _SekPc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	and	w8, w2, #0x6000
	cmp	w8, #4, lsl #12                 ; =16384
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_ym2612_read_local_68k
LBB0_7:
Lloh10:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh12:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh16:
	adrp	x8, _SekPc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elprintf
	mov	w0, #255
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,24,3                      ; @Pico
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"68k z80 read with no bus! [%06x] @ %06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_EL_UIO,4,2                     ; @EL_UIO
l_.str.1:                               ; @.str.1
	.asciz	"68k bad read [%06x] @%06x"

	.no_dead_strip	_PicoRead8_z80
.subsections_via_symbols
