	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_schedule
_gfx_schedule:                          ## @gfx_schedule
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Pico_mcd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	392(%rcx), %edx
	movl	400(%rcx), %eax
	shll	$8, %edx
	orl	396(%rcx), %edx
	shll	$8, %eax
	orl	404(%rcx), %eax
	leal	(%rdx,%rdx,4), %ecx
	movl	%eax, %esi
	imull	%ecx, %esi
	movq	_UPDATE_CYCLES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %esi
	jle	LBB0_2
## %bb.1:
	leal	(%rcx,%rdx), %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %esi
	imull	%ecx, %esi
LBB0_2:
	movq	_gfx@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_PCD_EVENT_GFX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_pcd_event_schedule_s68k        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico_mcd,8,3                   ## @Pico_mcd
	.comm	_UPDATE_CYCLES,4,2              ## @UPDATE_CYCLES
	.comm	_gfx,4,2                        ## @gfx
	.comm	_PCD_EVENT_GFX,4,2              ## @PCD_EVENT_GFX
	.no_dead_strip	_gfx_schedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_schedule
_gfx_schedule:                          ; @gfx_schedule
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Pico_mcd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico_mcd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w9, [x8, #392]
	ldr	w10, [x8, #396]
	orr	w9, w10, w9, lsl #8
	ldr	w10, [x8, #400]
	ldr	w8, [x8, #404]
	orr	w8, w8, w10, lsl #8
	add	w9, w9, w9, lsl #2
	mul	w1, w8, w9
Lloh3:
	adrp	x10, _UPDATE_CYCLES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UPDATE_CYCLES@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w1, w10
	b.le	LBB0_2
; %bb.1:
	add	w8, w9, w10
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	mul	w1, w8, w9
LBB0_2:
Lloh6:
	adrp	x9, _gfx@GOTPAGE
Lloh7:
	ldr	x9, [x9, _gfx@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _PCD_EVENT_GFX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCD_EVENT_GFX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	_pcd_event_schedule_s68k
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico_mcd,8,3                   ; @Pico_mcd
	.comm	_UPDATE_CYCLES,4,2              ; @UPDATE_CYCLES
	.comm	_gfx,4,2                        ; @gfx
	.comm	_PCD_EVENT_GFX,4,2              ; @PCD_EVENT_GFX
	.no_dead_strip	_gfx_schedule
.subsections_via_symbols
