	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PicoReadS68k16_pr
_PicoReadS68k16_pr:                     ## @PicoReadS68k16_pr
	.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
	movl	%edi, %eax
	andl	$65024, %eax                    ## imm = 0xFE00
	cmpl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_2
## %bb.1:
	andl	$510, %ebx                      ## imm = 0x1FE
	movl	%ebx, %edi
	callq	_s68k_reg_read16
	movl	%eax, %r14d
	movq	_EL_CDREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SekPcS68k@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_elprintf
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_8
## %bb.3:
	movl	%ebx, %edi
	andl	$32767, %edi                    ## imm = 0x7FFF
	cmpl	$8192, %edi                     ## imm = 0x2000
	jb	LBB0_6
## %bb.4:
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	shrl	%ebx
	andl	$4095, %ebx                     ## imm = 0xFFF
	movl	(%rax,%rbx,4), %r14d
	jmp	LBB0_5
LBB0_8:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s68k_unmapped_read16           ## TAILCALL
LBB0_6:
	xorl	%r14d, %r14d
	cmpl	$32, %edi
	jb	LBB0_5
## %bb.7:
	shrl	%edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pcd_pcm_read                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_CDREGS,4,2                  ## @EL_CDREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s68k_regs r16: [%02x] %04x @%06x"

	.comm	_SekPcS68k,4,2                  ## @SekPcS68k
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.no_dead_strip	_PicoReadS68k16_pr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PicoReadS68k16_pr
_PicoReadS68k16_pr:                     ; @PicoReadS68k16_pr
	.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
	and	w8, w0, #0xfe00
	cmp	w8, #8, lsl #12                 ; =32768
	b.ne	LBB0_3
; %bb.1:
	and	w20, w0, #0x1fe
	mov	x0, x20
	bl	_s68k_reg_read16
	mov	x19, x0
Lloh0:
	adrp	x8, _EL_CDREGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_CDREGS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SekPcS68k@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SekPcS68k@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_elprintf
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	tbnz	w0, #15, LBB0_6
; %bb.4:
	and	w8, w0, #0x7fff
	cmp	w8, #2, lsl #12                 ; =8192
	b.lo	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	x9, x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	ubfx	w9, w0, #1, #12
	ldr	w19, [x8, w9, uxtw #2]
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s68k_unmapped_read16
LBB0_7:
	cmp	w8, #32
	b.lo	LBB0_9
; %bb.8:
	lsr	w0, w8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcd_pcm_read
LBB0_9:
	mov	w19, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_CDREGS,4,2                  ; @EL_CDREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s68k_regs r16: [%02x] %04x @%06x"

	.comm	_SekPcS68k,4,2                  ; @SekPcS68k
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.no_dead_strip	_PicoReadS68k16_pr
.subsections_via_symbols
