	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zbank_write_ctrl_io            ## -- Begin function zbank_write_ctrl_io
	.p2align	4, 0x90
_zbank_write_ctrl_io:                   ## @zbank_write_ctrl_io
	.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, %eax
	shrl	$8, %eax
	cmpb	$80, %al
	ja	LBB0_3
## %bb.1:
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	popq	%rbp
	jmp	_zbank_unused_w                 ## TAILCALL
LBB0_3:
	popq	%rbp
	jmp	_zbank_lockup_w                 ## TAILCALL
LBB0_4:
	testb	$1, %dil
	jne	LBB0_15
## %bb.5:
	andl	$1, %esi
	movq	_Z80@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	popq	%rbp
	jmp	_gen_zbusreq_w                  ## TAILCALL
LBB0_6:
	testb	$1, %dil
	jne	LBB0_15
## %bb.7:
	andl	$1, %esi
	movq	_Z80@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	popq	%rbp
	jmp	_gen_zreset_w                   ## TAILCALL
LBB0_8:
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	testb	$1, %al
	je	LBB0_15
## %bb.9:
	andl	$1, %esi
	movl	%esi, %edi
	popq	%rbp
	jmp	_gen_bankswitch_w               ## TAILCALL
LBB0_10:
	movl	%edi, %eax
	andl	$225, %eax
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.11:
	shrl	%edi
	andl	$15, %edi
	popq	%rbp
	jmp	_io_68k_write                   ## TAILCALL
LBB0_12:
	movq	_cart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_15
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_Z80,4,2                        ## @Z80
	.comm	_cart,8,3                       ## @cart
	.comm	_config,4,2                     ## @config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zbank_write_ctrl_io            ; -- Begin function zbank_write_ctrl_io
	.p2align	2
_zbank_write_ctrl_io:                   ; @zbank_write_ctrl_io
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	ubfx	w8, w0, #8, #8
	cmp	w8, #80
	b.hi	LBB0_3
; %bb.1:
	ubfx	x8, x0, #8, #8
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
                                        ; kill: def $w0 killed $w0 killed $x0
	b	_zbank_unused_w
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	b	_zbank_lockup_w
LBB0_4:
	tbnz	w0, #0, LBB0_2
; %bb.5:
	and	w0, w1, #0x1
Lloh2:
	adrp	x8, _Z80@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Z80@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	_gen_zbusreq_w
LBB0_6:
	tbnz	w0, #0, LBB0_2
; %bb.7:
	and	w0, w1, #0x1
Lloh5:
	adrp	x8, _Z80@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z80@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	b	_gen_zreset_w
LBB0_8:
Lloh8:
	adrp	x8, _config@GOTPAGE
Lloh9:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w0, w8
	tbz	w8, #0, LBB0_2
; %bb.9:
	and	w0, w1, #0x1
	b	_gen_bankswitch_w
LBB0_10:
	mov	w8, #225
	and	w8, w0, w8
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.11:
	ubfx	w0, w0, #1, #4
	b	_io_68k_write
LBB0_12:
Lloh11:
	adrp	x8, _cart@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cart@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	br	x2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>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BB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_Z80,4,2                        ; @Z80
	.comm	_cart,8,3                       ; @cart
	.comm	_config,4,2                     ; @config
.subsections_via_symbols
