	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z80_read_byte                  ## -- Begin function z80_read_byte
	.p2align	4, 0x90
_z80_read_byte:                         ## @z80_read_byte
	.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, %esi
	movl	%edi, %eax
	shrl	$13, %eax
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.2:
	movq	_m68k@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_fm_read                        ## TAILCALL
LBB0_3:
	movl	%esi, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	movl	%esi, %edi
	cmpl	$32512, %eax                    ## imm = 0x7F00
	jne	LBB0_4
## %bb.7:
	popq	%rbp
	jmp	_m68k_lockup_r_8                ## TAILCALL
LBB0_5:
	movq	_zram@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$8191, %esi                     ## imm = 0x1FFF
	movl	(%rax,%rsi,4), %eax
	popq	%rbp
	retq
LBB0_4:
	callq	_m68k_read_bus_8
	orl	$255, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m68k,4,2                       ## @m68k
	.comm	_zram,8,3                       ## @zram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z80_read_byte                  ; -- Begin function z80_read_byte
	.p2align	2
_z80_read_byte:                         ; @z80_read_byte
	.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
	ubfx	w8, w0, #13, #2
	cmp	w8, #3
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _m68k@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w0, #0x3
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_fm_read
LBB0_3:
	and	w8, w0, #0xff00
	mov	w9, #32512
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_m68k_lockup_r_8
LBB0_5:
Lloh3:
	adrp	x8, _zram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zram@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	w9, w0, #0x1fff
	ldr	w0, [x8, w9, uxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_m68k_read_bus_8
	orr	w0, w0, #0xff
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_m68k,4,2                       ; @m68k
	.comm	_zram,8,3                       ; @zram
.subsections_via_symbols
