	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_cdc_event
_pcd_cdc_event:                         ## @pcd_cdc_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_cdd_update
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testb	$-16, 300(%rax)
	jne	LBB0_3
## %bb.1:
	movl	$240, 300(%rax)
	movq	_PCDS_IEN4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 204(%rax)
	je	LBB0_3
## %bb.2:
	movq	_EL_INTS@GOTPCREL(%rip), %rax
	movq	_EL_CD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elprintf
	movl	$4, %edi
	callq	_SekInterruptS68k
LBB0_3:
	movq	_PCD_EVENT_CDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$166666, %edx                   ## imm = 0x28B0A
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pcd_event_schedule             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_PCDS_IEN4,4,2                  ## @PCDS_IEN4
	.comm	_EL_INTS,4,2                    ## @EL_INTS
	.comm	_EL_CD,4,2                      ## @EL_CD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s68k: cdd irq 4"

	.comm	_PCD_EVENT_CDC,4,2              ## @PCD_EVENT_CDC
	.no_dead_strip	_pcd_cdc_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_cdc_event
_pcd_cdc_event:                         ; @pcd_cdc_event
	.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
	mov	x19, x0
	bl	_cdd_update
Lloh0:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrb	w9, [x8, #300]
	tst	w9, #0xf0
	b.ne	LBB0_3
; %bb.1:
	mov	w9, #240
	str	w9, [x8, #300]
	ldr	w8, [x8, #204]
Lloh3:
	adrp	x9, _PCDS_IEN4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCDS_IEN4@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EL_INTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EL_INTS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EL_CD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EL_CD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w0, #4
	bl	_SekInterruptS68k
LBB0_3:
Lloh14:
	adrp	x8, _PCD_EVENT_CDC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCD_EVENT_CDC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #35594
	movk	w2, #2, lsl #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcd_event_schedule
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_PCDS_IEN4,4,2                  ; @PCDS_IEN4
	.comm	_EL_INTS,4,2                    ; @EL_INTS
	.comm	_EL_CD,4,2                      ; @EL_CD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s68k: cdd irq 4"

	.comm	_PCD_EVENT_CDC,4,2              ; @PCD_EVENT_CDC
	.no_dead_strip	_pcd_cdc_event
.subsections_via_symbols
