	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetCPUFifo                  ## -- Begin function GX_SetCPUFifo
	.p2align	4, 0x90
_GX_SetCPUFifo:                         ## @GX_SetCPUFifo
	.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
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	40(%rbx), %eax
	movq	__cpufifo@GOTPCREL(%rip), %r14
	movl	%eax, 40(%r14)
	movups	24(%rbx), %xmm0
	movups	%xmm0, 24(%r14)
	movups	8(%rbx), %xmm0
	movups	%xmm0, 8(%r14)
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	$1, 4(%r14)
	movq	__gxcpufifoready@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	___GX_CPGPLinkCheck
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	__cpgplinked@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$1, (%r14)
	movl	16(%r14), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	__piReg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	12(%r14), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$536870880, %eax                ## imm = 0x1FFFFFE0
	andl	8(%r14), %eax
	movl	%eax, 20(%rcx)
	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
	jmp	LBB0_7
LBB0_1:
	movq	__gxcpufifoready@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	__cpgplinked@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	__cpufifo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_7
LBB0_4:
	movq	__cpgplinked@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_GX_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___GX_FifoLink
	movl	$0, (%rbx)
LBB0_6:
	movq	_GX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	callq	___GX_WriteFifoIntEnable
	movl	16(%r14), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	__piReg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	12(%r14), %edi
	callq	_MEM_VIRTUAL_TO_PHYSICAL
	movq	(%rbx), %rcx
	movl	%eax, 16(%rcx)
	movl	$536870880, %eax                ## imm = 0x1FFFFFE0
	andl	8(%r14), %eax
	movl	%eax, 20(%rcx)
	xorl	%eax, %eax
	callq	_ppcsync
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__cpufifo,4,2                   ## @_cpufifo
	.comm	__gxcpufifoready,4,2            ## @_gxcpufifoready
	.comm	__cpgplinked,4,2                ## @_cpgplinked
	.comm	__piReg,8,3                     ## @_piReg
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_GX_ENABLE,4,2                  ## @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ## @GX_DISABLE
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetCPUFifo                  ; -- Begin function GX_SetCPUFifo
	.p2align	2
_GX_SetCPUFifo:                         ; @GX_SetCPUFifo
	.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
	cbz	x19, LBB0_3
; %bb.1:
	ldr	w8, [x19, #40]
Lloh0:
	adrp	x20, __cpufifo@GOTPAGE
Lloh1:
	ldr	x20, [x20, __cpufifo@GOTPAGEOFF]
	str	w8, [x20, #40]
	ldur	q0, [x19, #24]
	stur	q0, [x20, #24]
	ldur	q0, [x19, #8]
	stur	q0, [x20, #8]
	ldr	w8, [x19]
	mov	w19, #1
	stp	w8, w19, [x20]
Lloh2:
	adrp	x8, __gxcpufifoready@GOTPAGE
Lloh3:
	ldr	x8, [x8, __gxcpufifoready@GOTPAGEOFF]
Lloh4:
	str	w19, [x8]
	bl	___GX_CPGPLinkCheck
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, __cpgplinked@GOTPAGE
Lloh6:
	ldr	x8, [x8, __cpgplinked@GOTPAGEOFF]
Lloh7:
	str	w19, [x8]
	str	w19, [x20]
	ldr	w0, [x20, #16]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
Lloh8:
	adrp	x19, __piReg@GOTPAGE
Lloh9:
	ldr	x19, [x19, __piReg@GOTPAGEOFF]
	ldr	x8, [x19]
	str	w0, [x8, #12]
	ldr	w0, [x20, #12]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	ldr	x8, [x19]
	ldr	w9, [x20, #8]
	and	w9, w9, #0x1fffffe0
	stp	w0, w9, [x8, #16]
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
	b	LBB0_7
LBB0_3:
Lloh18:
	adrp	x8, __gxcpufifoready@GOTPAGE
Lloh19:
	ldr	x8, [x8, __gxcpufifoready@GOTPAGEOFF]
Lloh20:
	adrp	x9, __cpgplinked@GOTPAGE
Lloh21:
	ldr	x9, [x9, __cpgplinked@GOTPAGEOFF]
Lloh22:
	str	wzr, [x8]
Lloh23:
	str	wzr, [x9]
Lloh24:
	adrp	x8, __cpufifo@GOTPAGE
Lloh25:
	ldr	x8, [x8, __cpufifo@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
	b	LBB0_7
LBB0_4:
Lloh27:
	adrp	x19, __cpgplinked@GOTPAGE
Lloh28:
	ldr	x19, [x19, __cpgplinked@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
Lloh29:
	adrp	x8, _GX_FALSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GX_FALSE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	___GX_FifoLink
	str	wzr, [x19]
LBB0_6:
Lloh32:
	adrp	x8, _GX_DISABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GX_DISABLE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x0
	bl	___GX_WriteFifoIntEnable
	ldr	w0, [x20, #16]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
Lloh35:
	adrp	x19, __piReg@GOTPAGE
Lloh36:
	ldr	x19, [x19, __piReg@GOTPAGEOFF]
	ldr	x8, [x19]
	str	w0, [x8, #12]
	ldr	w0, [x20, #12]
	bl	_MEM_VIRTUAL_TO_PHYSICAL
	ldr	x8, [x19]
	ldr	w9, [x20, #8]
	and	w9, w9, #0x1fffffe0
	stp	w0, w9, [x8, #16]
	bl	_ppcsync
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__CPU_ISR_Restore
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	__cpufifo,4,2                   ; @_cpufifo
	.comm	__gxcpufifoready,4,2            ; @_gxcpufifoready
	.comm	__cpgplinked,4,2                ; @_cpgplinked
	.comm	__piReg,8,3                     ; @_piReg
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_GX_ENABLE,4,2                  ; @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ; @GX_DISABLE
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
.subsections_via_symbols
