	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __GX_CleanGPFifo
___GX_CleanGPFifo:                      ## @__GX_CleanGPFifo
	.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
	movq	__gxgpfifoready@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	callq	__CPU_ISR_Disable
	xorl	%eax, %eax
	callq	___GX_FifoReadDisable
	movq	_FALSE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%edi, %esi
	callq	___GX_WriteFifoIntEnable
	movq	__gpfifo@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	__cpReg@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	%eax, 96(%rcx)
	movq	8(%rbx), %rdi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTR
	movq	(%r15), %rcx
	movl	%eax, 100(%rcx)
	movl	4(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%r15), %rcx
	movl	%eax, 104(%rcx)
	movl	4(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%rax, %rdi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTR
	movq	(%r15), %rcx
	movl	%eax, 108(%rcx)
	movl	(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	__SHIFTL
	movq	(%r15), %rcx
	movl	%eax, 112(%rcx)
	movl	(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	%rax, %rdi
	movl	$16, %esi
	movl	$16, %edx
	callq	__SHIFTR
	movq	(%r15), %rcx
	movl	%eax, 116(%rcx)
	xorl	%eax, %eax
	callq	_ppcsync
	movq	__cpgplinked@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	__cpufifo@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	%ecx, (%rax)
	movl	%edx, 4(%rax)
	movq	8(%rbx), %rcx
	movq	%rcx, 8(%rax)
	andl	$536870880, %edx                ## imm = 0x1FFFFFE0
	movq	__piReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, 20(%rax)
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	___GX_WriteFifoIntEnable
	movl	(%rbx), %edi
	callq	___GX_FifoLink
LBB0_3:
	movq	___gx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	andl	$-35, %ecx
	movl	%ecx, (%rax)
	movq	(%r15), %rax
	movl	%ecx, 4(%rax)
	movq	_breakPtCB@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	___GX_WriteFifoIntReset
	xorl	%eax, %eax
	callq	___GX_FifoReadEnable
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__gpfifo,4,2                    ## @_gpfifo
	.comm	__cpufifo,4,2                   ## @_cpufifo
	.comm	__gxgpfifoready,4,2             ## @_gxgpfifoready
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	__cpReg,8,3                     ## @_cpReg
	.comm	__cpgplinked,8,3                ## @_cpgplinked
	.comm	__piReg,8,3                     ## @_piReg
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	___gx,8,3                       ## @__gx
	.comm	_breakPtCB,8,3                  ## @breakPtCB
	.no_dead_strip	___GX_CleanGPFifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __GX_CleanGPFifo
___GX_CleanGPFifo:                      ; @__GX_CleanGPFifo
	.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
Lloh0:
	adrp	x8, __gxgpfifoready@GOTPAGE
Lloh1:
	ldr	x8, [x8, __gxgpfifoready@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	bl	__CPU_ISR_Disable
	bl	___GX_FifoReadDisable
Lloh3:
	adrp	x19, _FALSE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x0
	bl	___GX_WriteFifoIntEnable
Lloh5:
	adrp	x21, __gpfifo@GOTPAGE
Lloh6:
	ldr	x21, [x21, __gpfifo@GOTPAGEOFF]
	ldr	w8, [x21, #4]
	str	w8, [x21]
	str	xzr, [x21, #8]
	mov	x0, #0
	mov	w1, #0
	mov	w2, #16
	bl	__SHIFTL
Lloh7:
	adrp	x20, __cpReg@GOTPAGE
Lloh8:
	ldr	x20, [x20, __cpReg@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w0, [x8, #96]
	ldr	x0, [x21, #8]
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTR
	ldr	x8, [x20]
	str	w0, [x8, #100]
	ldr	w0, [x21, #4]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	w1, #0
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x20]
	str	w0, [x8, #104]
	ldr	w0, [x21, #4]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTR
	ldr	x8, [x20]
	str	w0, [x8, #108]
	ldr	w0, [x21]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	w1, #0
	mov	w2, #16
	bl	__SHIFTL
	ldr	x8, [x20]
	str	w0, [x8, #112]
	ldr	w0, [x21]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	mov	w1, #16
	mov	w2, #16
	bl	__SHIFTR
	ldr	x8, [x20]
	str	w0, [x8, #116]
	bl	_ppcsync
Lloh9:
	adrp	x8, __cpgplinked@GOTPAGE
Lloh10:
	ldr	x8, [x8, __cpgplinked@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x22, _TRUE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, __cpufifo@GOTPAGE
Lloh15:
	ldr	x8, [x8, __cpufifo@GOTPAGEOFF]
	ldp	w9, w10, [x21]
	stp	w9, w10, [x8]
	ldr	x9, [x21, #8]
	str	x9, [x8, #8]
	and	w8, w10, #0x1fffffe0
Lloh16:
	adrp	x9, __piReg@GOTPAGE
Lloh17:
	ldr	x9, [x9, __piReg@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	str	w8, [x9, #20]
	ldr	w0, [x22]
	ldr	w1, [x19]
	bl	___GX_WriteFifoIntEnable
	ldr	w0, [x22]
	bl	___GX_FifoLink
LBB0_3:
Lloh19:
	adrp	x8, ___gx@GOTPAGE
Lloh20:
	ldr	x8, [x8, ___gx@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w9, [x8]
	mov	w10, #-35
	and	w9, w9, w10
	str	w9, [x8]
	ldr	x8, [x20]
	str	w9, [x8, #4]
Lloh22:
	adrp	x8, _breakPtCB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _breakPtCB@GOTPAGEOFF]
Lloh24:
	str	xzr, [x8]
	ldr	w0, [x22]
	mov	x1, x0
	bl	___GX_WriteFifoIntReset
	bl	___GX_FifoReadEnable
	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
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	__gpfifo,4,2                    ; @_gpfifo
	.comm	__cpufifo,4,2                   ; @_cpufifo
	.comm	__gxgpfifoready,4,2             ; @_gxgpfifoready
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	__cpReg,8,3                     ; @_cpReg
	.comm	__cpgplinked,8,3                ; @_cpgplinked
	.comm	__piReg,8,3                     ; @_piReg
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	___gx,8,3                       ; @__gx
	.comm	_breakPtCB,8,3                  ; @breakPtCB
	.no_dead_strip	___GX_CleanGPFifo
.subsections_via_symbols
