	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m68k_reg_read16
_m68k_reg_read16:                       ## @m68k_reg_read16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	andl	$62, %ebx
	cmpl	$12, %ebx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	204(%rcx), %r14d
	andl	$4, %r14d
	shll	$13, %r14d
	orl	8(%rax), %r14d
	jmp	LBB0_13
LBB0_9:
	cmpl	$47, %ebx
	ja	LBB0_11
## %bb.10:
	movl	%ebx, %edi
	callq	_m68k_comm_check
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %r14d
	shll	$8, %r14d
	orl	$1, %ebx
	orl	(%rax,%rbx,4), %r14d
	jmp	LBB0_13
LBB0_3:
	movl	$2, %edi
	callq	_m68k_comm_check
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	shll	$8, %ecx
	movl	$199, %r14d
	andl	12(%rax), %r14d
	orl	%ecx, %r14d
	movq	_EL_CDREG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	jmp	LBB0_13
LBB0_4:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	16(%rax), %r14d
	shll	$8, %r14d
	jmp	LBB0_13
LBB0_5:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	16(%rax), %rax
	movl	114(%rax), %r14d
	jmp	LBB0_13
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cdc_host_r                     ## TAILCALL
LBB0_7:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_elprintf
	jmp	LBB0_13
LBB0_8:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movl	%eax, %edi
	callq	_pcd_cycles_m68k_to_s68k
	movq	_Pico_mcd@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	12(%rcx), %eax
	cltq
	imulq	$715827883, %rax, %r14          ## imm = 0x2AAAAAAB
	movq	%r14, %rax
	shrq	$63, %rax
	shrq	$38, %r14
	addl	%eax, %r14d
	andl	$4095, %r14d                    ## imm = 0xFFF
	movq	_EL_CDREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	jmp	LBB0_12
LBB0_11:
	movq	_EL_UIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
LBB0_12:
	xorl	%eax, %eax
	callq	_elprintf
LBB0_13:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_3, LBB0_3-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
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_EL_CDREG3,4,2                  ## @EL_CDREG3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m68k_regs r3: %02x @%06x"

	.comm	_SekPc,4,2                      ## @SekPc
	.comm	_EL_UIO,4,2                     ## @EL_UIO
L_.str.1:                               ## @.str.1
	.asciz	"m68k FIXME: reserved read"

	.comm	_EL_CDREGS,4,2                  ## @EL_CDREGS
L_.str.2:                               ## @.str.2
	.asciz	"m68k stopwatch timer read (%04x)"

L_.str.3:                               ## @.str.3
	.asciz	"m68k_regs FIXME invalid read @ %02x"

	.no_dead_strip	_m68k_reg_read16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m68k_reg_read16
_m68k_reg_read16:                       ; @m68k_reg_read16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	and	w19, w0, #0x3e
	cmp	w19, #12
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x8, x19]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_2:
Lloh2:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x8]
	ldr	w9, [x9, #204]
	lsl	w9, w9, #13
	and	w9, w9, #0x8000
	ldr	w8, [x8, #8]
	orr	w19, w9, w8
	b	LBB0_13
LBB0_3:
	cmp	w19, #47
	b.hi	LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_m68k_comm_check
Lloh5:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8, w19, uxtw #2]
	orr	w10, w19, #0x1
	ldr	w8, [x8, w10, uxtw #2]
	orr	w19, w8, w9, lsl #8
	b	LBB0_13
LBB0_5:
	mov	w0, #2
	bl	_m68k_comm_check
Lloh8:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w9, w8, [x8, #8]
	mov	w10, #199
	and	w19, w8, w10
	bfi	w19, w9, #8, #24
Lloh11:
	adrp	x8, _EL_CDREG3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EL_CDREG3@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SekPc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SekPc@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	x19, x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	b	LBB0_13
LBB0_6:
Lloh19:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh20:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8, #16]
	lsl	w19, w8, #8
	b	LBB0_13
LBB0_7:
Lloh22:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldrsw	x8, [x8, #16]
	ldur	w19, [x8, #114]
	b	LBB0_13
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_cdc_host_r
LBB0_9:
Lloh25:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	bl	_SekCyclesDone
	bl	_pcd_cycles_m68k_to_s68k
Lloh30:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	w8, [x8, #12]
	sub	w8, w0, w8
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	and	w19, w8, #0xfff
Lloh33:
	adrp	x8, _EL_CDREGS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EL_CDREGS@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elprintf
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_13
LBB0_11:
Lloh38:
	adrp	x8, _EL_UIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EL_UIO@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	bl	_elprintf
	mov	w19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_EL_CDREG3,4,2                  ; @EL_CDREG3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m68k_regs r3: %02x @%06x"

	.comm	_SekPc,4,2                      ; @SekPc
	.comm	_EL_UIO,4,2                     ; @EL_UIO
l_.str.1:                               ; @.str.1
	.asciz	"m68k FIXME: reserved read"

	.comm	_EL_CDREGS,4,2                  ; @EL_CDREGS
l_.str.2:                               ; @.str.2
	.asciz	"m68k stopwatch timer read (%04x)"

l_.str.3:                               ; @.str.3
	.asciz	"m68k_regs FIXME invalid read @ %02x"

	.no_dead_strip	_m68k_reg_read16
.subsections_via_symbols
