	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_zbusreq_w                  ## -- Begin function gen_zbusreq_w
	.p2align	4, 0x90
_gen_zbusreq_w:                         ## @gen_zbusreq_w
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_zstate@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movl	%esi, %edi
	callq	_z80_run
	movq	_z80_read_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_m68k@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 2572(%rcx)
	movq	_z80_read_word@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 2568(%rcx)
	movq	_z80_write_byte@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 2564(%rcx)
	movq	_z80_write_word@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 2560(%rcx)
	movl	(%rbx), %eax
LBB0_3:
	orl	$2, %eax
	jmp	LBB0_7
LBB0_4:
	cmpl	$3, %eax
	jne	LBB0_6
## %bb.5:
	movq	_Z80@GOTPCREL(%rip), %rcx
	movl	%esi, (%rcx)
	movq	_m68k_read_bus_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_m68k@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, 2572(%rdx)
	movq	_m68k_read_bus_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 2568(%rdx)
	movq	_m68k_unused_8_w@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 2564(%rdx)
	movq	_m68k_unused_16_w@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 2560(%rdx)
LBB0_6:
	andl	$1, %eax
LBB0_7:
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zstate,4,2                     ## @zstate
	.comm	_z80_read_byte,4,2              ## @z80_read_byte
	.comm	_m68k,8,3                       ## @m68k
	.comm	_z80_read_word,4,2              ## @z80_read_word
	.comm	_z80_write_byte,4,2             ## @z80_write_byte
	.comm	_z80_write_word,4,2             ## @z80_write_word
	.comm	_Z80,4,2                        ## @Z80
	.comm	_m68k_read_bus_8,4,2            ## @m68k_read_bus_8
	.comm	_m68k_read_bus_16,4,2           ## @m68k_read_bus_16
	.comm	_m68k_unused_8_w,4,2            ## @m68k_unused_8_w
	.comm	_m68k_unused_16_w,4,2           ## @m68k_unused_16_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_zbusreq_w                  ; -- Begin function gen_zbusreq_w
	.p2align	2
_gen_zbusreq_w:                         ; @gen_zbusreq_w
	.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
Lloh0:
	adrp	x19, _zstate@GOTPAGE
Lloh1:
	ldr	x19, [x19, _zstate@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w0, LBB0_4
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x1
	bl	_z80_run
Lloh2:
	adrp	x8, _z80_read_byte@GOTPAGE
Lloh3:
	ldr	x8, [x8, _z80_read_byte@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _m68k@GOTPAGE
Lloh6:
	ldr	x9, [x9, _m68k@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _z80_read_word@GOTPAGE
Lloh9:
	ldr	x10, [x10, _z80_read_word@GOTPAGEOFF]
	str	w8, [x9, #2572]
Lloh10:
	ldr	w8, [x10]
	str	w8, [x9, #2568]
Lloh11:
	adrp	x8, _z80_write_byte@GOTPAGE
Lloh12:
	ldr	x8, [x8, _z80_write_byte@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x9, #2564]
Lloh14:
	adrp	x8, _z80_write_word@GOTPAGE
Lloh15:
	ldr	x8, [x8, _z80_write_word@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x9, #2560]
	ldr	w8, [x19]
LBB0_3:
	orr	w8, w8, #0x2
	b	LBB0_7
LBB0_4:
	cmp	w8, #3
	b.ne	LBB0_6
; %bb.5:
Lloh17:
	adrp	x9, _Z80@GOTPAGE
Lloh18:
	ldr	x9, [x9, _Z80@GOTPAGEOFF]
Lloh19:
	adrp	x10, _m68k_read_bus_8@GOTPAGE
Lloh20:
	ldr	x10, [x10, _m68k_read_bus_8@GOTPAGEOFF]
Lloh21:
	str	w1, [x9]
Lloh22:
	ldr	w9, [x10]
Lloh23:
	adrp	x10, _m68k@GOTPAGE
Lloh24:
	ldr	x10, [x10, _m68k@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	str	w9, [x10, #2572]
Lloh26:
	adrp	x9, _m68k_read_bus_16@GOTPAGE
Lloh27:
	ldr	x9, [x9, _m68k_read_bus_16@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	str	w9, [x10, #2568]
Lloh29:
	adrp	x9, _m68k_unused_8_w@GOTPAGE
Lloh30:
	ldr	x9, [x9, _m68k_unused_8_w@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	str	w9, [x10, #2564]
Lloh32:
	adrp	x9, _m68k_unused_16_w@GOTPAGE
Lloh33:
	ldr	x9, [x9, _m68k_unused_16_w@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	str	w9, [x10, #2560]
LBB0_6:
	and	w8, w8, #0x1
LBB0_7:
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_zstate,4,2                     ; @zstate
	.comm	_z80_read_byte,4,2              ; @z80_read_byte
	.comm	_m68k,8,3                       ; @m68k
	.comm	_z80_read_word,4,2              ; @z80_read_word
	.comm	_z80_write_byte,4,2             ; @z80_write_byte
	.comm	_z80_write_word,4,2             ; @z80_write_word
	.comm	_Z80,4,2                        ; @Z80
	.comm	_m68k_read_bus_8,4,2            ; @m68k_read_bus_8
	.comm	_m68k_read_bus_16,4,2           ; @m68k_read_bus_16
	.comm	_m68k_unused_8_w,4,2            ; @m68k_unused_8_w
	.comm	_m68k_unused_16_w,4,2           ; @m68k_unused_16_w
.subsections_via_symbols
