	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p32x_sh2reg_read16
_p32x_sh2reg_read16:                    ## @p32x_sh2reg_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_Pico32x@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	movl	%edi, %ebx
	andl	$62, %ebx
	xorl	%r15d, %r15d
	cmpl	$28, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	shrl	%ebx
	movl	(%r12,%rbx,4), %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_P32XS_FM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%r12), %r15d
	movq	8(%r13), %rax
	orl	(%rax), %r15d
	movq	16(%r13), %rax
	movq	(%r14), %rcx
	orl	(%rax,%rcx,4), %r15d
	jmp	LBB0_17
LBB0_3:
	movq	_SH2_STATE_CPOLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$3, %ecx
	callq	_sh2_poll_detect
	movq	%r14, %rdi
	callq	_sh2s_sync_on_read
	movq	8(%r13), %rax
	movl	8(%rax), %r15d
	jmp	LBB0_17
LBB0_4:
	movq	_P32XS_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	notl	%r15d
	andl	12(%r12), %r15d
	orl	$16384, %r15d                   ## imm = 0x4000
	jmp	LBB0_17
LBB0_5:
	movl	24(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	leal	-1(%rax), %ecx
	movl	%ecx, 24(%r13)
	movq	32(%r13), %rdi
	movl	(%rdi), %ecx
	movl	%ecx, 36(%r12)
	leaq	4(%rdi), %rsi
	leal	(%rax,%rax), %edx
	addl	$-2, %edx
	callq	_memmove
LBB0_7:
	movl	36(%r12), %r15d
	jmp	LBB0_17
LBB0_8:
	movl	%edi, %eax
	andl	$48, %eax
	cmpl	$48, %eax
	je	LBB0_15
## %bb.9:
	cmpl	$32, %eax
	jne	LBB0_16
## %bb.10:
	shrb	%dil
	andb	$7, %dil
	movl	$1, %eax
	movl	%edi, %ecx
	shll	%cl, %eax
	movl	40(%r13), %ecx
	movzbl	%dil, %edx
	btl	%edx, %ecx
	jae	LBB0_12
## %bb.11:
	notl	%eax
	andl	%eax, %ecx
	movl	%ecx, 40(%r13)
	jmp	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	callq	_sh2_cycles_done_m68k
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p32x_pwm_read16                ## TAILCALL
LBB0_16:
	movq	_EL_32X@GOTPCREL(%rip), %rax
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_sh2_pc
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_elprintf_sh2
	jmp	LBB0_17
LBB0_12:
	movq	_SH2_STATE_CPOLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$3, %ecx
	callq	_sh2_poll_detect
LBB0_13:
	movq	%r14, %rdi
	callq	_sh2s_sync_on_read
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_8
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_Pico32x,48,3                   ## @Pico32x
	.comm	_P32XS_FM,4,2                   ## @P32XS_FM
	.comm	_SH2_STATE_CPOLL,4,2            ## @SH2_STATE_CPOLL
	.comm	_P32XS_FULL,4,2                 ## @P32XS_FULL
	.comm	_EL_32X,4,2                     ## @EL_32X
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled sysreg r16 [%02x] @%08x"

	.no_dead_strip	_p32x_sh2reg_read16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p32x_sh2reg_read16
_p32x_sh2reg_read16:                    ; @p32x_sh2reg_read16
	.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	x8, x0
Lloh0:
	adrp	x22, _Pico32x@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Pico32x@GOTPAGEOFF]
	ldr	x21, [x22]
	and	w20, w0, #0x3e
	cmp	w20, #28
	b.hi	LBB0_10
; %bb.1:
	mov	w0, #0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x20]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	lsr	w8, w20, #1
	ldr	w0, [x21, w8, uxtw #2]
LBB0_3:
	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_4:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _P32XS_FM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _P32XS_FM@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldp	x9, x10, [x22, #8]
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19]
	ldr	w9, [x10, x9, lsl #2]
	orr	w0, w8, w9
	b	LBB0_3
LBB0_5:
Lloh7:
	adrp	x8, _SH2_STATE_CPOLL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SH2_STATE_CPOLL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #4
	mov	w3, #3
	bl	_sh2_poll_detect
	mov	x0, x19
	bl	_sh2s_sync_on_read
	ldr	x8, [x22, #8]
	ldr	w0, [x8, #8]
	b	LBB0_3
LBB0_6:
	ldr	w8, [x21, #12]
Lloh10:
	adrp	x9, _P32XS_FULL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _P32XS_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w8, w8, w9
	orr	w0, w8, #0x4000
	b	LBB0_3
LBB0_7:
	ldr	w8, [x22, #24]
	subs	w8, w8, #1
	b.lt	LBB0_9
; %bb.8:
	str	w8, [x22, #24]
	ldr	x0, [x22, #32]
	mov	x1, x0
	ldr	w9, [x1], #4
	str	w9, [x21, #36]
	lsl	w2, w8, #1
	bl	_memmove
LBB0_9:
	ldr	w0, [x21, #36]
	b	LBB0_3
LBB0_10:
	and	w9, w8, #0x30
	cmp	w9, #48
	b.eq	LBB0_14
; %bb.11:
	cmp	w9, #32
	b.ne	LBB0_15
; %bb.12:
	ubfx	w8, w8, #1, #3
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x22, #40]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.13:
	bic	w8, w9, w8
	str	w8, [x22, #40]
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	bl	_sh2_cycles_done_m68k
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	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	_p32x_pwm_read16
LBB0_15:
Lloh13:
	adrp	x8, _EL_32X@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EL_32X@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _EL_ANOMALY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EL_ANOMALY@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x19
	bl	_sh2_pc
	mov	x4, x0
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_elprintf_sh2
	mov	w0, #0
	b	LBB0_3
LBB0_16:
Lloh21:
	adrp	x8, _SH2_STATE_CPOLL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SH2_STATE_CPOLL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #3
	bl	_sh2_poll_detect
LBB0_17:
	mov	x0, x19
	bl	_sh2s_sync_on_read
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_Pico32x,48,3                   ; @Pico32x
	.comm	_P32XS_FM,4,2                   ; @P32XS_FM
	.comm	_SH2_STATE_CPOLL,4,2            ; @SH2_STATE_CPOLL
	.comm	_P32XS_FULL,4,2                 ; @P32XS_FULL
	.comm	_EL_32X,4,2                     ; @EL_32X
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled sysreg r16 [%02x] @%08x"

	.no_dead_strip	_p32x_sh2reg_read16
.subsections_via_symbols
