	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_EndDispList                 ## -- Begin function GX_EndDispList
	.p2align	4, 0x90
_GX_EndDispList:                        ## @GX_EndDispList
	.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
	movq	__gx_dl_fifoobj@GOTPCREL(%rip), %rdi
	callq	_GX_GetCPUFifo
	movq	__gx_old_cpufifo@GOTPCREL(%rip), %rdi
	callq	_GX_SetCPUFifo
	movq	___gx@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	callq	__CPU_ISR_Disable
	movq	___gxregs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__gx_saved_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STRUCT_REGDEF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	callq	__CPU_ISR_Restore
	movq	(%rbx), %rax
LBB0_2:
	movq	$0, (%rax)
	movq	__gx_dl_fifoobj@GOTPCREL(%rip), %rdi
	callq	_GX_GetFifoWrap
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	__gx_dl_fifoobj@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_GX_GetFifoCount                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__gx_dl_fifoobj,4,2             ## @_gx_dl_fifoobj
	.comm	__gx_old_cpufifo,4,2            ## @_gx_old_cpufifo
	.comm	___gx,8,3                       ## @__gx
	.comm	___gxregs,4,2                   ## @__gxregs
	.comm	__gx_saved_data,4,2             ## @_gx_saved_data
	.comm	_STRUCT_REGDEF_SIZE,4,2         ## @STRUCT_REGDEF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_EndDispList                 ; -- Begin function GX_EndDispList
	.p2align	2
_GX_EndDispList:                        ; @GX_EndDispList
	.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
Lloh0:
	adrp	x0, __gx_dl_fifoobj@GOTPAGE
Lloh1:
	ldr	x0, [x0, __gx_dl_fifoobj@GOTPAGEOFF]
	bl	_GX_GetCPUFifo
Lloh2:
	adrp	x0, __gx_old_cpufifo@GOTPAGE
Lloh3:
	ldr	x0, [x0, __gx_old_cpufifo@GOTPAGEOFF]
	bl	_GX_SetCPUFifo
Lloh4:
	adrp	x19, ___gx@GOTPAGE
Lloh5:
	ldr	x19, [x19, ___gx@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	bl	__CPU_ISR_Disable
Lloh6:
	adrp	x8, ___gxregs@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___gxregs@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, __gx_saved_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, __gx_saved_data@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _STRUCT_REGDEF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STRUCT_REGDEF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_memcpy
	bl	__CPU_ISR_Restore
	ldr	x8, [x19]
LBB0_2:
	str	xzr, [x8]
Lloh15:
	adrp	x0, __gx_dl_fifoobj@GOTPAGE
Lloh16:
	ldr	x0, [x0, __gx_dl_fifoobj@GOTPAGEOFF]
	bl	_GX_GetFifoWrap
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh17:
	adrp	x0, __gx_dl_fifoobj@GOTPAGE
Lloh18:
	ldr	x0, [x0, __gx_dl_fifoobj@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GX_GetFifoCount
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	__gx_dl_fifoobj,4,2             ; @_gx_dl_fifoobj
	.comm	__gx_old_cpufifo,4,2            ; @_gx_old_cpufifo
	.comm	___gx,8,3                       ; @__gx
	.comm	___gxregs,4,2                   ; @__gxregs
	.comm	__gx_saved_data,4,2             ; @_gx_saved_data
	.comm	_STRUCT_REGDEF_SIZE,4,2         ; @STRUCT_REGDEF_SIZE
.subsections_via_symbols
