	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GX_SaveFifo
___GX_SaveFifo:                         ## @__GX_SaveFifo
	.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
	callq	__CPU_ISR_Disable
	movq	__gxcpufifoready@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	__piReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	20(%rax), %ebx
	movl	%ebx, %edi
	andl	$536870880, %edi                ## imm = 0x1FFFFFE0
	callq	_MEM_PHYSICAL_TO_K0
	movq	__cpufifo@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	shrl	$29, %ebx
	andl	$1, %ebx
	movl	%ebx, 4(%rcx)
LBB0_2:
	movq	__gxgpfifoready@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	__cpReg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	116(%rax), %edi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%rbx), %rcx
	movzwl	112(%rcx), %edi
	orl	%eax, %edi
	callq	_MEM_PHYSICAL_TO_K0
	movq	__gpfifo@GOTPCREL(%rip), %r15
	movl	%eax, 8(%r15)
	movq	(%rbx), %rax
	movl	100(%rax), %edi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%rbx), %rcx
	movzwl	96(%rcx), %ecx
	orl	%eax, %ecx
	movl	%ecx, 12(%r15)
LBB0_4:
	movq	__cpgplinked@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	__gpfifo@GOTPCREL(%rip), %rax
	movq	8(%rax), %rcx
	movq	__cpufifo@GOTPCREL(%rip), %rdx
	movq	%rcx, 8(%rdx)
	movl	(%rdx), %ecx
	movl	%ecx, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.7:
	movq	__cpufifo@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	8(%rax), %ecx
	js	LBB0_8
## %bb.9:
	movl	%ecx, 12(%rax)
	jmp	LBB0_10
LBB0_8:
	movl	16(%rax), %ecx
	addl	%ecx, 12(%rax)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	__cpufifo,4,2                   ## @_cpufifo
	.comm	__gpfifo,4,2                    ## @_gpfifo
	.comm	__gxcpufifoready,8,3            ## @_gxcpufifoready
	.comm	__piReg,8,3                     ## @_piReg
	.comm	__gxgpfifoready,8,3             ## @_gxgpfifoready
	.comm	__cpReg,8,3                     ## @_cpReg
	.comm	__cpgplinked,8,3                ## @_cpgplinked
	.no_dead_strip	___GX_SaveFifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GX_SaveFifo
___GX_SaveFifo:                         ; @__GX_SaveFifo
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x20, __gxcpufifoready@GOTPAGE
Lloh1:
	ldr	x20, [x20, __gxcpufifoready@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x19, __cpufifo@GOTPAGE
Lloh3:
	ldr	x19, [x19, __cpufifo@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, __piReg@GOTPAGE
Lloh5:
	ldr	x8, [x8, __piReg@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w21, [x8, #20]
	and	w0, w21, #0x1fffffe0
	bl	_MEM_PHYSICAL_TO_K0
	ubfx	w8, w21, #29, #1
	stp	w0, w8, [x19]
LBB0_2:
Lloh7:
	adrp	x8, __gxgpfifoready@GOTPAGE
Lloh8:
	ldr	x8, [x8, __gxgpfifoready@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x21, __gpfifo@GOTPAGE
Lloh11:
	ldr	x21, [x21, __gpfifo@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x22, __cpReg@GOTPAGE
Lloh13:
	ldr	x22, [x22, __cpReg@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w0, [x8, #116]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x22]
	ldrh	w8, [x8, #112]
	orr	w0, w8, w0
	bl	_MEM_PHYSICAL_TO_K0
	str	w0, [x21, #8]
	ldr	x8, [x22]
	ldr	w0, [x8, #100]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x22]
	ldrh	w8, [x8, #96]
	orr	w8, w8, w0
	str	w8, [x21, #12]
LBB0_4:
Lloh14:
	adrp	x8, __cpgplinked@GOTPAGE
Lloh15:
	ldr	x8, [x8, __cpgplinked@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	d0, [x21, #8]
	str	d0, [x19, #8]
	ldr	w8, [x19]
	str	w8, [x21]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	subs	w8, w8, w9
	b.pl	LBB0_9
; %bb.8:
	ldp	w8, w9, [x19, #12]
	add	w8, w9, w8
LBB0_9:
	str	w8, [x19, #12]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	__cpufifo,4,2                   ; @_cpufifo
	.comm	__gpfifo,4,2                    ; @_gpfifo
	.comm	__gxcpufifoready,8,3            ; @_gxcpufifoready
	.comm	__piReg,8,3                     ; @_piReg
	.comm	__gxgpfifoready,8,3             ; @_gxgpfifoready
	.comm	__cpReg,8,3                     ; @_cpReg
	.comm	__cpgplinked,8,3                ; @_cpgplinked
	.no_dead_strip	___GX_SaveFifo
.subsections_via_symbols
