	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cart_prot_write_byte
_cart_prot_write_byte:                  ## @cart_prot_write_byte
	.cfi_startproc
## %bb.0:
	testb	$1, %dil
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_m68k@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	testb	$1, %sil
	jne	LBB0_2
## %bb.4:
	movq	_m68k_unused_8_w@GOTPCREL(%rip), %r8
	movq	_m68k_unused_16_w@GOTPCREL(%rip), %r9
	movq	_zbank_unused_w@GOTPCREL(%rip), %r10
	movq	_zbank_memory_map@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rdx
	movq	%rdx, 1544(%rax,%rcx,2)
	movl	(%r9), %edx
	movl	%edx, 1536(%rax,%rcx,2)
	movq	(%r10), %rdx
	movq	(%r11), %rdi
	movq	%rdx, 768(%rdi,%rcx)
	movq	(%r8), %rdx
	movq	%rdx, 1560(%rax,%rcx,2)
	movl	(%r9), %edx
	movl	%edx, 1552(%rax,%rcx,2)
	movq	(%r10), %rdx
	movq	(%r11), %rdi
	movq	%rdx, 776(%rdi,%rcx)
	addq	$16, %rcx
	cmpq	$128, %rcx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	_cart_ram_write_byte@GOTPCREL(%rip), %r10
	movq	_cart_ram_write_word@GOTPCREL(%rip), %r8
	movq	_zbank_memory_map@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rdi
	movq	%rdi, 1544(%rax,%rcx,2)
	movl	(%r8), %edi
	movl	%edi, 1536(%rax,%rcx,2)
	movq	(%r10), %rdi
	movq	(%r9), %rdx
	movq	%rdi, 768(%rdx,%rcx)
	movq	(%r10), %rdx
	movq	%rdx, 1560(%rax,%rcx,2)
	movl	(%r8), %edx
	movl	%edx, 1552(%rax,%rcx,2)
	movq	(%r10), %rdx
	movq	(%r9), %rdi
	movq	%rdx, 776(%rdi,%rcx)
	addq	$16, %rcx
	cmpq	$128, %rcx
	jne	LBB0_3
LBB0_6:
	movq	_scd@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	popq	%rbp
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cart_ram_write_byte,8,3        ## @cart_ram_write_byte
	.comm	_m68k,8,3                       ## @m68k
	.comm	_cart_ram_write_word,4,2        ## @cart_ram_write_word
	.comm	_zbank_memory_map,8,3           ## @zbank_memory_map
	.comm	_m68k_unused_8_w,8,3            ## @m68k_unused_8_w
	.comm	_m68k_unused_16_w,4,2           ## @m68k_unused_16_w
	.comm	_zbank_unused_w,8,3             ## @zbank_unused_w
	.comm	_scd,4,2                        ## @scd
	.no_dead_strip	_cart_prot_write_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cart_prot_write_byte
_cart_prot_write_byte:                  ; @cart_prot_write_byte
	.cfi_startproc
; %bb.0:
	tbz	w0, #0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _m68k@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, #1544
	mov	w9, #768
	tbnz	w1, #0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x10, _m68k_unused_8_w@GOTPAGE
Lloh4:
	ldr	x10, [x10, _m68k_unused_8_w@GOTPAGEOFF]
Lloh5:
	adrp	x11, _m68k_unused_16_w@GOTPAGE
Lloh6:
	ldr	x11, [x11, _m68k_unused_16_w@GOTPAGEOFF]
Lloh7:
	adrp	x12, _zbank_unused_w@GOTPAGE
Lloh8:
	ldr	x12, [x12, _zbank_unused_w@GOTPAGEOFF]
Lloh9:
	adrp	x13, _zbank_memory_map@GOTPAGE
Lloh10:
	ldr	x13, [x13, _zbank_memory_map@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10]
	str	x14, [x8]
	ldr	w14, [x11]
	stur	w14, [x8, #-8]
	ldr	x14, [x12]
	ldr	x15, [x13]
	str	x14, [x15, x9]
	add	x8, x8, #16
	add	x9, x9, #8
	cmp	x9, #896
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x10, _cart_ram_write_byte@GOTPAGE
Lloh12:
	ldr	x10, [x10, _cart_ram_write_byte@GOTPAGEOFF]
Lloh13:
	adrp	x11, _cart_ram_write_word@GOTPAGE
Lloh14:
	ldr	x11, [x11, _cart_ram_write_word@GOTPAGEOFF]
Lloh15:
	adrp	x12, _zbank_memory_map@GOTPAGE
Lloh16:
	ldr	x12, [x12, _zbank_memory_map@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	str	x13, [x8]
	ldr	w13, [x11]
	stur	w13, [x8, #-8]
	ldr	x13, [x10]
	ldr	x14, [x12]
	str	x13, [x14, x9]
	add	x8, x8, #16
	add	x9, x9, #8
	cmp	x9, #896
	b.ne	LBB0_5
LBB0_6:
Lloh17:
	adrp	x8, _scd@GOTPAGE
Lloh18:
	ldr	x8, [x8, _scd@GOTPAGEOFF]
Lloh19:
	str	w1, [x8]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cart_ram_write_byte,8,3        ; @cart_ram_write_byte
	.comm	_m68k,8,3                       ; @m68k
	.comm	_cart_ram_write_word,4,2        ; @cart_ram_write_word
	.comm	_zbank_memory_map,8,3           ; @zbank_memory_map
	.comm	_m68k_unused_8_w,8,3            ; @m68k_unused_8_w
	.comm	_m68k_unused_16_w,4,2           ; @m68k_unused_16_w
	.comm	_zbank_unused_w,8,3             ; @zbank_unused_w
	.comm	_scd,4,2                        ; @scd
	.no_dead_strip	_cart_prot_write_byte
.subsections_via_symbols
