	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_reg_w                      ## -- Begin function cdc_reg_w
	.p2align	4, 0x90
_cdc_reg_w:                             ## @cdc_reg_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Pico_mcd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	20(%rax), %ecx
	andl	$15, %ecx
	decl	%ecx
	cmpl	$14, %ecx
	ja	LBB0_43
## %bb.1:
	movl	%edi, %ebx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_BIT_DTEIEN@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movq	_BIT_DTEI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_6
LBB0_4:
	movq	_BIT_DECIEN@GOTPCREL(%rip), %rcx
	testb	%bl, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movq	_BIT_DECI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_6
LBB0_8:
	movl	$5, %edi
	callq	_SekInterruptClearS68k
	jmp	LBB0_9
LBB0_42:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	9(%rcx), %edx
	shll	$8, %edx
	movzbl	%bl, %esi
	orl	%edx, %esi
	movl	%esi, 8(%rcx)
	movl	$3, 20(%rax)
	jmp	LBB0_43
LBB0_12:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	8(%rcx), %edx
	movzbl	%bl, %esi
	shll	$8, %esi
	orl	%edx, %esi
	movl	%esi, 8(%rcx)
	movl	$4, 20(%rax)
	jmp	LBB0_43
LBB0_13:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	13(%rcx), %edx
	shll	$8, %edx
	movzbl	%bl, %esi
	orl	%edx, %esi
	movl	%esi, 12(%rcx)
	movl	$5, 20(%rax)
	jmp	LBB0_43
LBB0_14:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	12(%rcx), %edx
	movzbl	%bl, %esi
	shll	$8, %esi
	orl	%edx, %esi
	movl	%esi, 12(%rcx)
	movl	$6, 20(%rax)
	jmp	LBB0_43
LBB0_15:
	movq	_cdc@GOTPCREL(%rip), %r15
	movq	_BIT_DOUTEN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testb	%cl, 4(%r15)
	je	LBB0_32
## %bb.16:
	movq	_BIT_DTBSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%r15), %ecx
	movl	%ecx, (%r15)
	andl	$4095, 8(%r15)                  ## imm = 0xFFF
	andl	$7, 16(%rax)
	movl	$0, 44(%r15)
	movl	16(%rax), %esi
	movl	%esi, %edx
	andl	$7, %edx
	leal	-2(%rdx), %edi
	cmpl	$5, %edi
	ja	LBB0_28
## %bb.17:
	leaq	LJTI0_1(%rip), %rbx
	movslq	(%rbx,%rdi,4), %rdi
	addq	%rbx, %rdi
	jmpq	*%rdi
LBB0_18:
	movq	_BIT_DTEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r15)
	orl	$64, %esi
	movl	%esi, 16(%rax)
	jmp	LBB0_29
LBB0_33:
	movq	_BIT_DTEI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_cdc@GOTPCREL(%rip), %rdx
	orl	%ecx, (%rdx)
	andl	$4095, 8(%rdx)                  ## imm = 0xFFF
	movl	$8, 20(%rax)
	jmp	LBB0_43
LBB0_34:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	17(%rcx), %edx
	shll	$8, %edx
	movzbl	%bl, %esi
	orl	%edx, %esi
	movl	%esi, 16(%rcx)
	movl	$9, 20(%rax)
	jmp	LBB0_43
LBB0_35:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	16(%rcx), %edx
	movzbl	%bl, %esi
	shll	$8, %esi
	orl	%edx, %esi
	movl	%esi, 16(%rcx)
	movl	$10, 20(%rax)
	jmp	LBB0_43
LBB0_36:
	movq	_BIT_DECEN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	%bl, %al
	movq	_cdc@GOTPCREL(%rip), %rcx
	movq	24(%rcx), %rdx
	movb	%al, (%rdx)
	movq	_BIT_AUTORQ@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	movb	(%rax), %al
	andb	%bl, %al
	movq	24(%rcx), %rax
	movq	32(%rcx), %rsi
	movq	_BIT_MODRQ@GOTPCREL(%rip), %rdi
	movq	_BIT_FORMRQ@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovnel	%r8d, %edx
	orb	(%rdi), %dl
	andb	1(%rsi), %dl
	movb	%dl, 2(%rax)
	movq	32(%rcx), %rax
	movb	%bl, (%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$11, 20(%rax)
	jmp	LBB0_43
LBB0_37:
	movq	_cdc@GOTPCREL(%rip), %rax
	movq	32(%rax), %rcx
	movq	_BIT_AUTORQ@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	xorl	%esi, %esi
	andb	(%rcx), %dl
	movq	_BIT_MODRQ@GOTPCREL(%rip), %rcx
	movq	_BIT_FORMRQ@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovnel	%esi, %edx
	orb	(%rcx), %dl
	movq	24(%rax), %rcx
	andb	%bl, %dl
	movb	%dl, 2(%rcx)
	movq	32(%rax), %rax
	movb	%bl, 1(%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$12, 20(%rax)
	jmp	LBB0_43
LBB0_38:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	41(%rcx), %edx
	shll	$8, %edx
	movzbl	%bl, %esi
	orl	%edx, %esi
	movl	%esi, 40(%rcx)
	movl	$13, 20(%rax)
	jmp	LBB0_43
LBB0_39:
	movq	_cdc@GOTPCREL(%rip), %rcx
	movzbl	40(%rcx), %edx
	movzbl	%bl, %esi
	shll	$8, %esi
	orl	%edx, %esi
	movl	%esi, 40(%rcx)
	movl	$14, 20(%rax)
	jmp	LBB0_43
LBB0_40:
	movl	$15, 20(%rax)
	jmp	LBB0_43
LBB0_41:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cdc_reset                      ## TAILCALL
LBB0_6:
	movq	_PCDS_IEN5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 204(%rax)
	je	LBB0_9
## %bb.7:
	movq	_EL_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
	movl	$5, %edi
	callq	_SekInterruptS68k
LBB0_9:
	movq	_BIT_DOUTEN@GOTPCREL(%rip), %rax
	testb	%bl, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_BIT_DTBSY@GOTPCREL(%rip), %rax
	movq	_BIT_DTEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_cdc@GOTPCREL(%rip), %rax
	orl	%ecx, (%rax)
LBB0_11:
	movq	_cdc@GOTPCREL(%rip), %rax
	movb	%bl, 4(%rax)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$2, 20(%rax)
	jmp	LBB0_43
LBB0_19:
	movq	_pcm_ram_dma_w@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_21:
	movq	_prg_ram_dma_w@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	jmp	LBB0_30
LBB0_28:
	movq	_EL_ANOMALY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_elprintf
LBB0_29:
	movl	44(%r15), %eax
LBB0_30:
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movq	_PCD_EVENT_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	callq	_pcd_event_schedule_s68k
LBB0_32:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	$7, 20(%rax)
LBB0_43:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	12(%rax), %eax
	testb	$4, %al
	jne	LBB0_23
## %bb.26:
	testb	$2, %al
	je	LBB0_29
## %bb.27:
	movq	_word_ram_2M_dma_w@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_23:
	testb	$1, %al
	jne	LBB0_24
## %bb.25:
	movq	_word_ram_1_dma_w@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_24:
	movq	_word_ram_0_dma_w@GOTPCREL(%rip), %rax
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_42
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_33
	.long	L0_0_set_34
	.long	L0_0_set_35
	.long	L0_0_set_36
	.long	L0_0_set_37
	.long	L0_0_set_38
	.long	L0_0_set_39
	.long	L0_0_set_40
	.long	L0_0_set_41
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_22, LBB0_22-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_18
	.long	L0_1_set_19
	.long	L0_1_set_21
	.long	L0_1_set_28
	.long	L0_1_set_22
	.end_data_region
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_BIT_DTEIEN,1,0                 ## @BIT_DTEIEN
	.comm	_cdc,48,3                       ## @cdc
	.comm	_BIT_DTEI,4,2                   ## @BIT_DTEI
	.comm	_BIT_DECIEN,1,0                 ## @BIT_DECIEN
	.comm	_BIT_DECI,4,2                   ## @BIT_DECI
	.comm	_PCDS_IEN5,4,2                  ## @PCDS_IEN5
	.comm	_EL_INTS,4,2                    ## @EL_INTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cdc pending irq 5"

	.comm	_BIT_DOUTEN,1,0                 ## @BIT_DOUTEN
	.comm	_BIT_DTBSY,4,2                  ## @BIT_DTBSY
	.comm	_BIT_DTEN,4,2                   ## @BIT_DTEN
	.comm	_pcm_ram_dma_w,4,2              ## @pcm_ram_dma_w
	.comm	_prg_ram_dma_w,4,2              ## @prg_ram_dma_w
	.comm	_word_ram_0_dma_w,4,2           ## @word_ram_0_dma_w
	.comm	_word_ram_1_dma_w,4,2           ## @word_ram_1_dma_w
	.comm	_word_ram_2M_dma_w,4,2          ## @word_ram_2M_dma_w
	.comm	_EL_ANOMALY,4,2                 ## @EL_ANOMALY
L_.str.1:                               ## @.str.1
	.asciz	"invalid CDC tranfer destination (%d)"

	.comm	_PCD_EVENT_DMA,4,2              ## @PCD_EVENT_DMA
	.comm	_BIT_DECEN,1,0                  ## @BIT_DECEN
	.comm	_BIT_AUTORQ,1,0                 ## @BIT_AUTORQ
	.comm	_BIT_MODRQ,1,0                  ## @BIT_MODRQ
	.comm	_BIT_FORMRQ,1,0                 ## @BIT_FORMRQ
	.comm	_EL_STATUS,4,2                  ## @EL_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_reg_w                      ; -- Begin function cdc_reg_w
	.p2align	2
_cdc_reg_w:                             ; @cdc_reg_w
	.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
Lloh0:
	adrp	x20, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8, #20]
	and	w9, w9, #0xf
	sub	w9, w9, #1
	cmp	w9, #14
	b.hi	LBB0_38
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x9, _BIT_DTEIEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BIT_DTEIEN@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _cdc@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _BIT_DTEI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BIT_DTEI@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_24
LBB0_4:
Lloh12:
	adrp	x9, _BIT_DECIEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BIT_DECIEN@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x9, _cdc@GOTPAGE
Lloh15:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _BIT_DECI@GOTPAGE
Lloh18:
	ldr	x10, [x10, _BIT_DECI@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_24
LBB0_6:
	mov	w0, #5
	bl	_SekInterruptClearS68k
	b	LBB0_26
LBB0_7:
Lloh20:
	adrp	x9, _cdc@GOTPAGE
Lloh21:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #9]
	bfi	w19, w10, #8, #8
	str	w19, [x9, #8]
	mov	w9, #3
	b	LBB0_37
LBB0_8:
Lloh22:
	adrp	x9, _cdc@GOTPAGE
Lloh23:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #8]
	bfi	w10, w19, #8, #8
	str	w10, [x9, #8]
	mov	w9, #4
	b	LBB0_37
LBB0_9:
Lloh24:
	adrp	x9, _cdc@GOTPAGE
Lloh25:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #13]
	bfi	w19, w10, #8, #8
	str	w19, [x9, #12]
	mov	w9, #5
	b	LBB0_37
LBB0_10:
Lloh26:
	adrp	x9, _cdc@GOTPAGE
Lloh27:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #12]
	bfi	w10, w19, #8, #8
	str	w10, [x9, #12]
	mov	w9, #6
	b	LBB0_37
LBB0_11:
Lloh28:
	adrp	x19, _cdc@GOTPAGE
Lloh29:
	ldr	x19, [x19, _cdc@GOTPAGEOFF]
	ldrb	w9, [x19, #4]
Lloh30:
	adrp	x10, _BIT_DOUTEN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _BIT_DOUTEN@GOTPAGEOFF]
	ldrb	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_36
; %bb.12:
Lloh32:
	adrp	x9, _BIT_DTBSY@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BIT_DTBSY@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
	ldr	w10, [x19, #8]
	and	w10, w10, #0xfff
	str	w10, [x19, #8]
	ldr	w10, [x8, #16]
	and	w10, w10, #0x7
	str	w10, [x8, #16]
	str	wzr, [x19, #44]
	ldr	w10, [x8, #16]
	and	w11, w10, #0x7
	sub	w12, w11, #2
	cmp	w12, #5
	b.hi	LBB0_32
; %bb.13:
Lloh35:
	adrp	x13, lJTI0_1@PAGE
Lloh36:
	add	x13, x13, lJTI0_1@PAGEOFF
	adr	x14, LBB0_14
	ldrb	w15, [x13, x12]
	add	x14, x14, x15, lsl #2
	br	x14
LBB0_14:
Lloh37:
	adrp	x11, _BIT_DTEN@GOTPAGE
Lloh38:
	ldr	x11, [x11, _BIT_DTEN@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	bic	w9, w9, w11
	str	w9, [x19]
	orr	w9, w10, #0x40
	str	w9, [x8, #16]
	b	LBB0_33
LBB0_15:
Lloh40:
	adrp	x9, _BIT_DTEI@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BIT_DTEI@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _cdc@GOTPAGE
Lloh44:
	ldr	x10, [x10, _cdc@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
	ldr	w9, [x10, #8]
	and	w9, w9, #0xfff
	str	w9, [x10, #8]
	mov	w9, #8
	b	LBB0_37
LBB0_16:
Lloh45:
	adrp	x9, _cdc@GOTPAGE
Lloh46:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #17]
	bfi	w19, w10, #8, #8
	str	w19, [x9, #16]
	mov	w9, #9
	b	LBB0_37
LBB0_17:
Lloh47:
	adrp	x9, _cdc@GOTPAGE
Lloh48:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #16]
	bfi	w10, w19, #8, #8
	str	w10, [x9, #16]
	mov	w9, #10
	b	LBB0_37
LBB0_18:
Lloh49:
	adrp	x8, _BIT_DECEN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BIT_DECEN@GOTPAGEOFF]
	ldrb	w8, [x8]
	and	w8, w8, w19
Lloh51:
	adrp	x9, _cdc@GOTPAGE
Lloh52:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldr	x10, [x9, #24]
	strb	w8, [x10]
Lloh53:
	adrp	x8, _BIT_AUTORQ@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BIT_AUTORQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldp	x11, x10, [x9, #24]
	ldrb	w10, [x10, #1]
Lloh55:
	adrp	x12, _BIT_MODRQ@GOTPAGE
Lloh56:
	ldr	x12, [x12, _BIT_MODRQ@GOTPAGEOFF]
	tst	w8, w19
Lloh57:
	adrp	x8, _BIT_FORMRQ@GOTPAGE
Lloh58:
	ldr	x8, [x8, _BIT_FORMRQ@GOTPAGEOFF]
	ldrb	w12, [x12]
	ldrb	w8, [x8]
	csel	w8, w8, wzr, eq
	orr	w8, w12, w8
	and	w8, w8, w10
	strb	w8, [x11, #2]
	ldr	x8, [x9, #32]
	strb	w19, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w9, #11
	b	LBB0_37
LBB0_19:
Lloh59:
	adrp	x8, _cdc@GOTPAGE
Lloh60:
	ldr	x8, [x8, _cdc@GOTPAGEOFF]
	ldp	x10, x9, [x8, #24]
	ldrb	w9, [x9]
Lloh61:
	adrp	x11, _BIT_AUTORQ@GOTPAGE
Lloh62:
	ldr	x11, [x11, _BIT_AUTORQ@GOTPAGEOFF]
	ldrb	w11, [x11]
Lloh63:
	adrp	x12, _BIT_MODRQ@GOTPAGE
Lloh64:
	ldr	x12, [x12, _BIT_MODRQ@GOTPAGEOFF]
	tst	w11, w9
Lloh65:
	adrp	x9, _BIT_FORMRQ@GOTPAGE
Lloh66:
	ldr	x9, [x9, _BIT_FORMRQ@GOTPAGEOFF]
	ldrb	w11, [x12]
	ldrb	w9, [x9]
	csel	w9, w9, wzr, eq
	orr	w9, w11, w9
	and	w9, w9, w19
	strb	w9, [x10, #2]
	ldr	x8, [x8, #32]
	strb	w19, [x8, #1]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w9, #12
	b	LBB0_37
LBB0_20:
Lloh67:
	adrp	x9, _cdc@GOTPAGE
Lloh68:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #41]
	bfi	w19, w10, #8, #8
	str	w19, [x9, #40]
	mov	w9, #13
	b	LBB0_37
LBB0_21:
Lloh69:
	adrp	x9, _cdc@GOTPAGE
Lloh70:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldrb	w10, [x9, #40]
	bfi	w10, w19, #8, #8
	str	w10, [x9, #40]
	mov	w9, #14
	b	LBB0_37
LBB0_22:
	mov	w9, #15
	b	LBB0_37
LBB0_23:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_cdc_reset
LBB0_24:
	ldr	w8, [x8, #204]
Lloh71:
	adrp	x9, _PCDS_IEN5@GOTPAGE
Lloh72:
	ldr	x9, [x9, _PCDS_IEN5@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
Lloh74:
	adrp	x8, _EL_INTS@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EL_INTS@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w0, #5
	bl	_SekInterruptS68k
LBB0_26:
Lloh79:
	adrp	x8, _BIT_DOUTEN@GOTPAGE
Lloh80:
	ldr	x8, [x8, _BIT_DOUTEN@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_28
; %bb.27:
Lloh81:
	adrp	x8, _BIT_DTBSY@GOTPAGE
Lloh82:
	ldr	x8, [x8, _BIT_DTBSY@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
Lloh84:
	adrp	x9, _BIT_DTEN@GOTPAGE
Lloh85:
	ldr	x9, [x9, _BIT_DTEN@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh87:
	adrp	x9, _cdc@GOTPAGE
Lloh88:
	ldr	x9, [x9, _cdc@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
LBB0_28:
Lloh89:
	adrp	x8, _cdc@GOTPAGE
Lloh90:
	ldr	x8, [x8, _cdc@GOTPAGEOFF]
Lloh91:
	strb	w19, [x8, #4]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w9, #2
	b	LBB0_37
LBB0_29:
Lloh92:
	adrp	x8, _pcm_ram_dma_w@GOTPAGE
Lloh93:
	ldr	x8, [x8, _pcm_ram_dma_w@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:
Lloh94:
	adrp	x8, _prg_ram_dma_w@GOTPAGE
Lloh95:
	ldr	x8, [x8, _prg_ram_dma_w@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	b	LBB0_34
LBB0_32:
Lloh96:
	adrp	x8, _EL_ANOMALY@GOTPAGE
Lloh97:
	ldr	x8, [x8, _EL_ANOMALY@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	str	x11, [sp]
Lloh99:
	adrp	x1, l_.str.1@PAGE
Lloh100:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elprintf
LBB0_33:
	ldr	w8, [x19, #44]
LBB0_34:
	cbz	w8, LBB0_36
; %bb.35:
Lloh101:
	adrp	x8, _PCD_EVENT_DMA@GOTPAGE
Lloh102:
	ldr	x8, [x8, _PCD_EVENT_DMA@GOTPAGEOFF]
Lloh103:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	bl	_pcd_event_schedule_s68k
LBB0_36:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w9, #7
LBB0_37:
	str	w9, [x8, #20]
LBB0_38:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_39:
	ldr	w8, [x8, #12]
	tbnz	w8, #2, LBB0_42
; %bb.40:
	tbz	w8, #1, LBB0_33
; %bb.41:
Lloh104:
	adrp	x8, _word_ram_2M_dma_w@GOTPAGE
Lloh105:
	ldr	x8, [x8, _word_ram_2M_dma_w@GOTPAGEOFF]
	b	LBB0_31
LBB0_42:
	tbnz	w8, #0, LBB0_44
; %bb.43:
Lloh106:
	adrp	x8, _word_ram_1_dma_w@GOTPAGE
Lloh107:
	ldr	x8, [x8, _word_ram_1_dma_w@GOTPAGEOFF]
	b	LBB0_31
LBB0_44:
Lloh108:
	adrp	x8, _word_ram_0_dma_w@GOTPAGE
Lloh109:
	ldr	x8, [x8, _word_ram_0_dma_w@GOTPAGEOFF]
	b	LBB0_31
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotStr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_29-LBB0_14)>>2
	.byte	(LBB0_30-LBB0_14)>>2
	.byte	(LBB0_32-LBB0_14)>>2
	.byte	(LBB0_39-LBB0_14)>>2
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_BIT_DTEIEN,1,0                 ; @BIT_DTEIEN
	.comm	_cdc,48,3                       ; @cdc
	.comm	_BIT_DTEI,4,2                   ; @BIT_DTEI
	.comm	_BIT_DECIEN,1,0                 ; @BIT_DECIEN
	.comm	_BIT_DECI,4,2                   ; @BIT_DECI
	.comm	_PCDS_IEN5,4,2                  ; @PCDS_IEN5
	.comm	_EL_INTS,4,2                    ; @EL_INTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cdc pending irq 5"

	.comm	_BIT_DOUTEN,1,0                 ; @BIT_DOUTEN
	.comm	_BIT_DTBSY,4,2                  ; @BIT_DTBSY
	.comm	_BIT_DTEN,4,2                   ; @BIT_DTEN
	.comm	_pcm_ram_dma_w,4,2              ; @pcm_ram_dma_w
	.comm	_prg_ram_dma_w,4,2              ; @prg_ram_dma_w
	.comm	_word_ram_0_dma_w,4,2           ; @word_ram_0_dma_w
	.comm	_word_ram_1_dma_w,4,2           ; @word_ram_1_dma_w
	.comm	_word_ram_2M_dma_w,4,2          ; @word_ram_2M_dma_w
	.comm	_EL_ANOMALY,4,2                 ; @EL_ANOMALY
l_.str.1:                               ; @.str.1
	.asciz	"invalid CDC tranfer destination (%d)"

	.comm	_PCD_EVENT_DMA,4,2              ; @PCD_EVENT_DMA
	.comm	_BIT_DECEN,1,0                  ; @BIT_DECEN
	.comm	_BIT_AUTORQ,1,0                 ; @BIT_AUTORQ
	.comm	_BIT_MODRQ,1,0                  ; @BIT_MODRQ
	.comm	_BIT_FORMRQ,1,0                 ; @BIT_FORMRQ
	.comm	_EL_STATUS,4,2                  ; @EL_STATUS
.subsections_via_symbols
