	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z80_write_byte                 ## -- Begin function z80_write_byte
	.p2align	4, 0x90
_z80_write_byte:                        ## @z80_write_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	%esi, %edx
	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_8
## %bb.2:
	movq	_m68k@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_fm_write                       ## TAILCALL
LBB0_3:
	movl	%esi, %eax
	shrl	$8, %eax
	andl	$127, %eax
	cmpl	$127, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$96, %eax
	jne	LBB0_7
## %bb.5:
	andl	$1, %edx
	movl	%edx, %edi
	popq	%rbp
	jmp	_gen_zbank_w                    ## TAILCALL
LBB0_8:
	movq	_zram@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$8191, %esi                     ## imm = 0x1FFF
	movl	%edx, (%rax,%rsi,4)
	movq	_m68k@GOTPCREL(%rip), %rax
	addl	$8, (%rax)
	popq	%rbp
	retq
LBB0_6:
	movl	%esi, %edi
	movl	%edx, %esi
	popq	%rbp
	jmp	_m68k_lockup_w_8                ## TAILCALL
LBB0_7:
	movl	%esi, %edi
	movl	%edx, %esi
	popq	%rbp
	jmp	_m68k_unused_8_w                ## TAILCALL
	.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_write_byte                 ; -- Begin function z80_write_byte
	.p2align	2
_z80_write_byte:                        ; @z80_write_byte
	.cfi_startproc
; %bb.0:
	mov	x2, x1
	ubfx	w8, w0, #13, #2
	cmp	w8, #3
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _m68k@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w1, w0, #0x3
	mov	x0, x8
	b	_fm_write
LBB0_3:
	ubfx	w8, w0, #8, #7
	cmp	w8, #127
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #96
	b.ne	LBB0_8
; %bb.5:
	and	w0, w2, #0x1
	b	_gen_zbank_w
LBB0_6:
Lloh3:
	adrp	x8, _zram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zram@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	w9, w0, #0x1fff
	str	w2, [x8, w9, uxtw #2]
Lloh6:
	adrp	x8, _m68k@GOTPAGE
Lloh7:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #8
	str	w9, [x8]
	ret
LBB0_7:
	mov	x1, x2
	b	_m68k_lockup_w_8
LBB0_8:
	mov	x1, x2
	b	_m68k_unused_8_w
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_m68k,4,2                       ; @m68k
	.comm	_zram,8,3                       ; @zram
.subsections_via_symbols
