	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s68k_reg_write16               ## -- Begin function s68k_reg_write16
	.p2align	4, 0x90
_s68k_reg_write16:                      ## @s68k_reg_write16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_Pico_mcd@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rcx), %rax
	movl	%edi, %edx
	andl	$496, %edx                      ## imm = 0x1F0
	cmpl	$32, %edx
	jne	LBB0_1
## %bb.13:
	movl	%r14d, %edx
	sarl	$8, %edx
	movslq	%ebx, %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	%r14d, 4(%rax,%rsi,4)
	cmpq	$0, 8(%rcx)
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	callq	_SekEndRunS68k
	movq	(%r15), %rcx
LBB0_15:
	movq	$0, 8(%rcx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leal	-14(%rbx), %ecx
	cmpl	$88, %ecx
	ja	LBB0_12
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	%r14d, 60(%rax)
	jmp	LBB0_16
LBB0_12:
	movl	%r14d, %esi
	sarl	$8, %esi
	movl	%ebx, %edi
	callq	_s68k_reg_write8
	incl	%ebx
	movzbl	%r14b, %esi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s68k_reg_write8                ## TAILCALL
LBB0_4:
	andl	$7, %r14d
	movl	%r14d, 356(%rax)
	jmp	LBB0_16
LBB0_5:
	movl	%r14d, %ecx
	sarl	$8, %ecx
	movl	%ecx, 360(%rax)
	andl	$224, %r14d
	movl	%r14d, 364(%rax)
	jmp	LBB0_16
LBB0_6:
	andl	$31, %r14d
	movl	%r14d, 372(%rax)
	jmp	LBB0_16
LBB0_7:
	movl	%r14d, %ecx
	sarl	$8, %ecx
	movl	%ecx, 376(%rax)
	andl	$248, %r14d
	movl	%r14d, 380(%rax)
	jmp	LBB0_16
LBB0_8:
	andl	$63, %r14d
	movl	%r14d, 388(%rax)
	jmp	LBB0_16
LBB0_9:
	movl	%r14d, %ecx
	shrl	$8, %ecx
	andl	$1, %ecx
	movl	%ecx, 392(%rax)
	movl	%r14d, 396(%rax)
	jmp	LBB0_16
LBB0_10:
	movl	%r14d, 404(%rax)
	jmp	LBB0_16
LBB0_11:
	andl	$65534, %r14d                   ## imm = 0xFFFE
	movl	%r14d, %ecx
	shrl	$8, %ecx
	movl	%ecx, 408(%rax)
	movl	%r14d, 412(%rax)
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gfx_start                      ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s68k_reg_write16               ; -- Begin function s68k_reg_write16
	.p2align	2
_s68k_reg_write16:                      ; @s68k_reg_write16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Pico_mcd@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x9]
	and	w10, w0, #0x1f0
	cmp	w10, #32
	b.ne	LBB0_5
; %bb.1:
	asr	w10, w19, #8
	add	x8, x8, w20, sxtw #2
	stp	w10, w19, [x8]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_SekEndRunS68k
	ldr	x9, [x21]
LBB0_3:
	str	xzr, [x9, #8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	sub	w9, w20, #14
	cmp	w9, #88
	b.hi	LBB0_8
; %bb.6:
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
	str	w19, [x8, #60]
	b	LBB0_4
LBB0_8:
	asr	w1, w19, #8
	mov	x0, x20
	bl	_s68k_reg_write8
	add	w0, w20, #1
	and	w1, w19, #0xff
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_s68k_reg_write8
LBB0_9:
	and	w9, w19, #0x7
	str	w9, [x8, #356]
	b	LBB0_4
LBB0_10:
	asr	w9, w19, #8
	str	w9, [x8, #360]
	and	w9, w19, #0xe0
	str	w9, [x8, #364]
	b	LBB0_4
LBB0_11:
	and	w9, w19, #0x1f
	str	w9, [x8, #372]
	b	LBB0_4
LBB0_12:
	asr	w9, w19, #8
	str	w9, [x8, #376]
	and	w9, w19, #0xf8
	str	w9, [x8, #380]
	b	LBB0_4
LBB0_13:
	and	w9, w19, #0x3f
	str	w9, [x8, #388]
	b	LBB0_4
LBB0_14:
	ubfx	w9, w19, #8, #1
	str	w9, [x8, #392]
	str	w19, [x8, #396]
	b	LBB0_4
LBB0_15:
	str	w19, [x8, #404]
	b	LBB0_4
LBB0_16:
	and	w0, w19, #0xfffe
	ubfx	w9, w19, #8, #8
	str	w9, [x8, #408]
	str	w0, [x8, #412]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gfx_start
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.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7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
.subsections_via_symbols
