	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcd_int3_timer_event
_pcd_int3_timer_event:                  ## @pcd_int3_timer_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_Pico_mcd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_PCDS_IEN3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 204(%rax)
	je	LBB0_2
## %bb.1:
	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	$3, %edi
	callq	_SekInterruptS68k
	movq	(%rbx), %rax
	movq	(%rax), %rax
LBB0_2:
	movl	196(%rax), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_PCD_EVENT_TIMER3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	shll	$7, %eax
	leal	(%rax,%rax,2), %edx
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pcd_event_schedule             ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_PCDS_IEN3,4,2                  ## @PCDS_IEN3
	.comm	_EL_INTS,4,2                    ## @EL_INTS
	.comm	_EL_CD,4,2                      ## @EL_CD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s68k: timer irq 3"

	.comm	_PCD_EVENT_TIMER3,4,2           ## @PCD_EVENT_TIMER3
	.no_dead_strip	_pcd_int3_timer_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcd_int3_timer_event
_pcd_int3_timer_event:                  ; @pcd_int3_timer_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
Lloh0:
	adrp	x20, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Pico_mcd@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8, #204]
Lloh2:
	adrp	x10, _PCDS_IEN3@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PCDS_IEN3@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EL_INTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EL_INTS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EL_CD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EL_CD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elprintf
	mov	w0, #3
	bl	_SekInterruptS68k
	ldr	x8, [x20]
	ldr	x8, [x8]
LBB0_2:
	ldr	w8, [x8, #196]
	cbz	w8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x9, _PCD_EVENT_TIMER3@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PCD_EVENT_TIMER3@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #7
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcd_event_schedule
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_PCDS_IEN3,4,2                  ; @PCDS_IEN3
	.comm	_EL_INTS,4,2                    ; @EL_INTS
	.comm	_EL_CD,4,2                      ; @EL_CD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s68k: timer irq 3"

	.comm	_PCD_EVENT_TIMER3,4,2           ; @PCD_EVENT_TIMER3
	.no_dead_strip	_pcd_int3_timer_event
.subsections_via_symbols
