	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitFifoBase                ## -- Begin function GX_InitFifoBase
	.p2align	4, 0x90
_GX_InitFifoBase:                       ## @GX_InitFifoBase
	.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
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_GX_FIFO_MINSIZE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%r14d, (%rdi)
	leal	(%rdx,%rsi), %eax
	addl	$-4, %eax
	movl	%eax, 4(%rdi)
	movl	%edx, 8(%rdi)
	movq	$0, 16(%rdi)
	movslq	%edx, %rdx
	movq	_GX_FIFO_HIWATERMARK@GOTPCREL(%rip), %rax
	movq	%rdx, %rsi
	subq	(%rax), %rsi
	shrl	%edx
	andl	$-32, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_GX_InitFifoLimits
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_GX_InitFifoPtrs                ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_FIFO_MINSIZE,4,2            ## @GX_FIFO_MINSIZE
	.comm	_GX_FIFO_HIWATERMARK,8,3        ## @GX_FIFO_HIWATERMARK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_InitFifoBase                ; -- Begin function GX_InitFifoBase
	.p2align	2
_GX_InitFifoBase:                       ; @GX_InitFifoBase
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GX_FIFO_MINSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GX_FIFO_MINSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.gt	LBB0_3
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	add	w8, w2, w19
	sub	w8, w8, #4
	stp	w19, w8, [x0]
	str	w2, [x0, #8]
	str	xzr, [x0, #16]
	sxtw	x8, w2
Lloh3:
	adrp	x9, _GX_FIFO_HIWATERMARK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GX_FIFO_HIWATERMARK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x1, x8, x9
	lsr	w8, w2, #1
	and	w2, w8, #0x7fffffe0
	bl	_GX_InitFifoLimits
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_GX_InitFifoPtrs
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_FIFO_MINSIZE,4,2            ; @GX_FIFO_MINSIZE
	.comm	_GX_FIFO_HIWATERMARK,8,3        ; @GX_FIFO_HIWATERMARK
.subsections_via_symbols
