	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_RedirectWriteGatherPipe     ## -- Begin function GX_RedirectWriteGatherPipe
	.p2align	4, 0x90
_GX_RedirectWriteGatherPipe:            ## @GX_RedirectWriteGatherPipe
	.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
	movq	%rdi, %rbx
	callq	__CPU_ISR_Disable
	xorl	%eax, %eax
	callq	_GX_Flush
	.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	__cpgplinked@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_GX_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___GX_FifoLink
	movq	_GX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	___GX_WriteFifoIntEnable
LBB0_4:
	movq	__piReg@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	$-67108865, %edi                ## imm = 0xFBFFFFFF
	andl	20(%rax), %edi
	callq	_MEM_PHYSICAL_TO_K0
	movq	__cpufifo@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
	movabsq	$288230376151711744, %rcx       ## imm = 0x400000000000000
	movq	%rcx, 12(%rax)
	andl	$1006632928, %ebx               ## imm = 0x3BFFFFE0
	movl	%ebx, 20(%rax)
	xorl	%eax, %eax
	callq	__sync
	callq	__CPU_ISR_Restore
	movl	$201359360, %eax                ## imm = 0xC008000
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__cpufifo,4,2                   ## @_cpufifo
	.comm	__cpgplinked,8,3                ## @_cpgplinked
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.comm	_GX_DISABLE,4,2                 ## @GX_DISABLE
	.comm	__piReg,8,3                     ## @_piReg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function GX_RedirectWriteGatherPipe
lCPI0_0:
	.long	0                               ; 0x0
	.long	67108864                        ; 0x4000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_GX_RedirectWriteGatherPipe
	.p2align	2
_GX_RedirectWriteGatherPipe:            ; @GX_RedirectWriteGatherPipe
	.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
	mov	x19, x0
	bl	__CPU_ISR_Disable
	bl	_GX_Flush
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
Lloh0:
	adrp	x8, __cpgplinked@GOTPAGE
Lloh1:
	ldr	x8, [x8, __cpgplinked@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _GX_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___GX_FifoLink
Lloh6:
	adrp	x8, _GX_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GX_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x0
	bl	___GX_WriteFifoIntEnable
LBB0_4:
Lloh9:
	adrp	x20, __piReg@GOTPAGE
Lloh10:
	ldr	x20, [x20, __piReg@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8, #20]
	and	w0, w8, #0xfbffffff
	bl	_MEM_PHYSICAL_TO_K0
Lloh11:
	adrp	x8, __cpufifo@GOTPAGE
Lloh12:
	ldr	x8, [x8, __cpufifo@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
	ldr	x8, [x20]
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [x8, #12]
	and	w9, w19, #0x3fffffe0
	and	w9, w9, #0xfbffffff
	str	w9, [x8, #20]
	bl	__sync
	bl	__CPU_ISR_Restore
	mov	w0, #32768
	movk	w0, #3072, lsl #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__cpufifo,4,2                   ; @_cpufifo
	.comm	__cpgplinked,8,3                ; @_cpgplinked
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.comm	_GX_DISABLE,4,2                 ; @GX_DISABLE
	.comm	__piReg,8,3                     ; @_piReg
.subsections_via_symbols
