	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_tmss_w                     ## -- Begin function gen_tmss_w
	.p2align	4, 0x90
_gen_tmss_w:                            ## @gen_tmss_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
	movl	%esi, %edx
	movl	%edi, %esi
	movq	_tmss@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_WRITE_WORD
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	movq	_m68k@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_m68k_lockup_r_8@GOTPCREL(%rip), %rdx
	cmoveq	_vdp_read_byte@GOTPCREL(%rip), %rdx
	movq	_zbank_memory_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdx), %r8d
	movl	%r8d, 3084(%rax)
	movq	_m68k_lockup_r_16@GOTPCREL(%rip), %rsi
	cmoveq	_vdp_read_word@GOTPCREL(%rip), %rsi
	movq	_m68k_lockup_w_8@GOTPCREL(%rip), %rbx
	cmoveq	_vdp_write_byte@GOTPCREL(%rip), %rbx
	movl	(%rsi), %edi
	movl	%edi, 3080(%rax)
	movl	(%rbx), %r9d
	movl	%r9d, 3076(%rax)
	movq	_m68k_lockup_w_16@GOTPCREL(%rip), %rbx
	cmoveq	_vdp_write_word@GOTPCREL(%rip), %rbx
	movq	_zbank_lockup_r@GOTPCREL(%rip), %rdx
	cmoveq	_zbank_read_vdp@GOTPCREL(%rip), %rdx
	movl	(%rbx), %ebx
	movl	%ebx, 3072(%rax)
	movl	(%rdx), %edx
	movl	%edx, 1540(%rcx)
	movq	_zbank_lockup_w@GOTPCREL(%rip), %rsi
	cmoveq	_zbank_write_vdp@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 1536(%rcx)
	movl	%r8d, 3212(%rax)
	movl	%edi, 3208(%rax)
	movl	%r9d, 3204(%rax)
	movl	%ebx, 3200(%rax)
	movl	%edx, 1604(%rcx)
	movl	%esi, 1600(%rcx)
	movl	%r8d, 3340(%rax)
	movl	%edi, 3336(%rax)
	movl	%r9d, 3332(%rax)
	movl	%ebx, 3328(%rax)
	movl	%edx, 1668(%rcx)
	movl	%esi, 1664(%rcx)
	movl	%r8d, 3468(%rax)
	movl	%edi, 3464(%rax)
	movl	%r9d, 3460(%rax)
	movl	%ebx, 3456(%rax)
	movl	%edx, 1732(%rcx)
	movl	%esi, 1728(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tmss,8,3                       ## @tmss
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEGA"

	.comm	_vdp_read_byte,4,2              ## @vdp_read_byte
	.comm	_m68k,8,3                       ## @m68k
	.comm	_vdp_read_word,4,2              ## @vdp_read_word
	.comm	_vdp_write_byte,4,2             ## @vdp_write_byte
	.comm	_vdp_write_word,4,2             ## @vdp_write_word
	.comm	_zbank_read_vdp,4,2             ## @zbank_read_vdp
	.comm	_zbank_memory_map,8,3           ## @zbank_memory_map
	.comm	_zbank_write_vdp,4,2            ## @zbank_write_vdp
	.comm	_m68k_lockup_r_8,4,2            ## @m68k_lockup_r_8
	.comm	_m68k_lockup_r_16,4,2           ## @m68k_lockup_r_16
	.comm	_m68k_lockup_w_8,4,2            ## @m68k_lockup_w_8
	.comm	_m68k_lockup_w_16,4,2           ## @m68k_lockup_w_16
	.comm	_zbank_lockup_r,4,2             ## @zbank_lockup_r
	.comm	_zbank_lockup_w,4,2             ## @zbank_lockup_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_tmss_w                     ; -- Begin function gen_tmss_w
	.p2align	2
_gen_tmss_w:                            ; @gen_tmss_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
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x19, _tmss@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tmss@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_WRITE_WORD
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_memcmp
Lloh4:
	adrp	x8, _m68k@GOTPAGE
Lloh5:
	ldr	x8, [x8, _m68k@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _zbank_memory_map@GOTPAGE
Lloh8:
	ldr	x9, [x9, _zbank_memory_map@GOTPAGEOFF]
Lloh9:
	adrp	x10, _vdp_read_byte@GOTPAGE
Lloh10:
	ldr	x10, [x10, _vdp_read_byte@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x11, _m68k_lockup_r_8@GOTPAGE
Lloh13:
	ldr	x11, [x11, _m68k_lockup_r_8@GOTPAGEOFF]
	cmp	x0, #0
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	str	w10, [x8, #3084]
Lloh14:
	adrp	x11, _vdp_read_word@GOTPAGE
Lloh15:
	ldr	x11, [x11, _vdp_read_word@GOTPAGEOFF]
Lloh16:
	adrp	x12, _m68k_lockup_r_16@GOTPAGE
Lloh17:
	ldr	x12, [x12, _m68k_lockup_r_16@GOTPAGEOFF]
	csel	x11, x11, x12, eq
	ldr	w11, [x11]
	str	w11, [x8, #3080]
Lloh18:
	adrp	x12, _vdp_write_byte@GOTPAGE
Lloh19:
	ldr	x12, [x12, _vdp_write_byte@GOTPAGEOFF]
Lloh20:
	adrp	x13, _m68k_lockup_w_8@GOTPAGE
Lloh21:
	ldr	x13, [x13, _m68k_lockup_w_8@GOTPAGEOFF]
	csel	x12, x12, x13, eq
	ldr	w12, [x12]
Lloh22:
	adrp	x13, _vdp_write_word@GOTPAGE
Lloh23:
	ldr	x13, [x13, _vdp_write_word@GOTPAGEOFF]
Lloh24:
	adrp	x14, _m68k_lockup_w_16@GOTPAGE
Lloh25:
	ldr	x14, [x14, _m68k_lockup_w_16@GOTPAGEOFF]
	str	w12, [x8, #3076]
	csel	x13, x13, x14, eq
	ldr	w13, [x13]
	str	w13, [x8, #3072]
Lloh26:
	adrp	x14, _zbank_read_vdp@GOTPAGE
Lloh27:
	ldr	x14, [x14, _zbank_read_vdp@GOTPAGEOFF]
Lloh28:
	adrp	x15, _zbank_lockup_r@GOTPAGE
Lloh29:
	ldr	x15, [x15, _zbank_lockup_r@GOTPAGEOFF]
	csel	x14, x14, x15, eq
	ldr	w14, [x14]
Lloh30:
	adrp	x15, _zbank_write_vdp@GOTPAGE
Lloh31:
	ldr	x15, [x15, _zbank_write_vdp@GOTPAGEOFF]
	str	w14, [x9, #1540]
Lloh32:
	adrp	x16, _zbank_lockup_w@GOTPAGE
Lloh33:
	ldr	x16, [x16, _zbank_lockup_w@GOTPAGEOFF]
	csel	x15, x15, x16, eq
	ldr	w15, [x15]
	str	w15, [x9, #1536]
	str	w10, [x8, #3212]
	str	w11, [x8, #3208]
	str	w12, [x8, #3204]
	str	w13, [x8, #3200]
	str	w14, [x9, #1604]
	str	w15, [x9, #1600]
	str	w10, [x8, #3340]
	str	w11, [x8, #3336]
	str	w12, [x8, #3332]
	str	w13, [x8, #3328]
	str	w14, [x9, #1668]
	str	w15, [x9, #1664]
	str	w10, [x8, #3468]
	str	w11, [x8, #3464]
	str	w12, [x8, #3460]
	str	w13, [x8, #3456]
	str	w14, [x9, #1732]
	str	w15, [x9, #1728]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tmss,8,3                       ; @tmss
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEGA"

	.comm	_vdp_read_byte,4,2              ; @vdp_read_byte
	.comm	_m68k,8,3                       ; @m68k
	.comm	_vdp_read_word,4,2              ; @vdp_read_word
	.comm	_vdp_write_byte,4,2             ; @vdp_write_byte
	.comm	_vdp_write_word,4,2             ; @vdp_write_word
	.comm	_zbank_read_vdp,4,2             ; @zbank_read_vdp
	.comm	_zbank_memory_map,8,3           ; @zbank_memory_map
	.comm	_zbank_write_vdp,4,2            ; @zbank_write_vdp
	.comm	_m68k_lockup_r_8,4,2            ; @m68k_lockup_r_8
	.comm	_m68k_lockup_r_16,4,2           ; @m68k_lockup_r_16
	.comm	_m68k_lockup_w_8,4,2            ; @m68k_lockup_w_8
	.comm	_m68k_lockup_w_16,4,2           ; @m68k_lockup_w_16
	.comm	_zbank_lockup_r,4,2             ; @zbank_lockup_r
	.comm	_zbank_lockup_w,4,2             ; @zbank_lockup_w
.subsections_via_symbols
