	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_RestoreWriteGatherPipe      ## -- Begin function GX_RestoreWriteGatherPipe
	.p2align	4, 0x90
_GX_RestoreWriteGatherPipe:             ## @GX_RestoreWriteGatherPipe
	.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
	callq	__CPU_ISR_Disable
	movq	_wgPipe@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_ppcsync
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_IsWriteGatherBufferEmpty
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$201359360, %edi                ## imm = 0xC008000
	callq	_mtwpar
	movq	__cpufifo@GOTPCREL(%rip), %rbx
	movl	12(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	__piReg@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, 12(%rcx)
	movl	8(%rbx), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	$1006632928, %eax               ## imm = 0x3BFFFFE0
	andl	(%rbx), %eax
	movl	%eax, 20(%rcx)
	movq	__cpgplinked@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_GX_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%edi, %esi
	callq	___GX_WriteFifoIntReset
	movq	_GX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___GX_WriteFifoIntEnable
	movl	(%rbx), %edi
	callq	___GX_FifoLink
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__cpufifo,4,2                   ## @_cpufifo
	.comm	_wgPipe,8,3                     ## @wgPipe
	.comm	__piReg,8,3                     ## @_piReg
	.comm	__cpgplinked,8,3                ## @_cpgplinked
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_GX_ENABLE,4,2                  ## @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ## @GX_DISABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_RestoreWriteGatherPipe      ; -- Begin function GX_RestoreWriteGatherPipe
	.p2align	2
_GX_RestoreWriteGatherPipe:             ; @GX_RestoreWriteGatherPipe
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, _wgPipe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wgPipe@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	xzr, [x8]
	bl	_ppcsync
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_IsWriteGatherBufferEmpty
	cbz	w0, LBB0_1
; %bb.2:
	mov	w0, #32768
	movk	w0, #3072, lsl #16
	bl	_mtwpar
Lloh3:
	adrp	x19, __cpufifo@GOTPAGE
Lloh4:
	ldr	x19, [x19, __cpufifo@GOTPAGEOFF]
	ldr	w0, [x19, #12]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
Lloh5:
	adrp	x20, __piReg@GOTPAGE
Lloh6:
	ldr	x20, [x20, __piReg@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w0, [x8, #12]
	ldr	w0, [x19, #8]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	ldr	x8, [x20]
	ldr	w9, [x19]
	and	w9, w9, #0x3fffffe0
	and	w9, w9, #0xfbffffff
	stp	w0, w9, [x8, #16]
Lloh7:
	adrp	x8, __cpgplinked@GOTPAGE
Lloh8:
	ldr	x8, [x8, __cpgplinked@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x19, _GX_TRUE@GOTPAGE
Lloh11:
	ldr	x19, [x19, _GX_TRUE@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x0
	bl	___GX_WriteFifoIntReset
Lloh12:
	adrp	x8, _GX_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GX_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _GX_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GX_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	___GX_WriteFifoIntEnable
	ldr	w0, [x19]
	bl	___GX_FifoLink
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__cpufifo,4,2                   ; @_cpufifo
	.comm	_wgPipe,8,3                     ; @wgPipe
	.comm	__piReg,8,3                     ; @_piReg
	.comm	__cpgplinked,8,3                ; @_cpgplinked
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_GX_ENABLE,4,2                  ; @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ; @GX_DISABLE
.subsections_via_symbols
