	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdgecko_initBufferPool         ## -- Begin function sdgecko_initBufferPool
	.p2align	4, 0x90
_sdgecko_initBufferPool:                ## @sdgecko_initBufferPool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BUF_POOL_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpl	$2, %r8d
	jl	LBB0_1
## %bb.2:
	decl	%r8d
	leaq	-1(%r8), %rax
	movl	%r8d, %ecx
	andl	$7, %ecx
	cmpq	$7, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_4:
	movl	%r8d, %r9d
	andl	$-8, %r9d
	xorl	%edi, %edi
	movq	_s_buf@GOTPCREL(%rip), %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rsi
	leaq	(%rsi,%rdi), %rax
	addq	$8, %rax
	movq	%rax, (%rsi,%rdi)
	movq	(%r10), %rax
	leaq	16(%rax,%rdi), %rsi
	movq	%rsi, 8(%rax,%rdi)
	movq	(%r10), %rax
	leaq	24(%rax,%rdi), %rsi
	movq	%rsi, 16(%rax,%rdi)
	movq	(%r10), %rax
	leaq	32(%rax,%rdi), %rsi
	movq	%rsi, 24(%rax,%rdi)
	movq	(%r10), %rax
	leaq	40(%rax,%rdi), %rsi
	movq	%rsi, 32(%rax,%rdi)
	movq	(%r10), %rax
	leaq	48(%rax,%rdi), %rsi
	movq	%rsi, 40(%rax,%rdi)
	movq	(%r10), %rax
	leaq	56(%rax,%rdi), %rsi
	movq	%rsi, 48(%rax,%rdi)
	movq	(%r10), %rax
	leaq	(%rax,%rdi), %rsi
	addq	$64, %rsi
	movq	%rsi, 56(%rax,%rdi)
	addq	$8, %rdx
	addq	$64, %rdi
	cmpq	%rdx, %r9
	jne	LBB0_5
LBB0_6:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	leaq	8(,%rdx,8), %rax
	movq	_s_buf@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	leaq	(%rsi,%rax), %rdi
	movq	%rdi, -8(%rsi,%rax)
	addq	$8, %rax
	decq	%rcx
	jne	LBB0_8
LBB0_9:
	movq	_s_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	$0, (%rcx,%r8,8)
	movq	(%rax), %rax
	movq	_s_freepool@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_POOL_CNT,4,2               ## @BUF_POOL_CNT
	.comm	_s_buf,8,3                      ## @s_buf
	.comm	_s_freepool,8,3                 ## @s_freepool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdgecko_initBufferPool         ; -- Begin function sdgecko_initBufferPool
	.p2align	2
_sdgecko_initBufferPool:                ; @sdgecko_initBufferPool
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BUF_POOL_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUF_POOL_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _s_buf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_buf@GOTPAGEOFF]
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x10, #0
	sub	w9, w9, #1
	lsl	x11, x9, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	add	x12, x12, x10
	add	x13, x12, #8
	str	x13, [x12]
	add	x10, x10, #8
	cmp	x11, x10
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x9, #0
LBB0_4:
	ldr	x10, [x8]
	str	xzr, [x10, x9, lsl #3]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _s_freepool@GOTPAGE
Lloh6:
	ldr	x9, [x9, _s_freepool@GOTPAGEOFF]
Lloh7:
	str	x8, [x9]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_POOL_CNT,4,2               ; @BUF_POOL_CNT
	.comm	_s_buf,8,3                      ; @s_buf
	.comm	_s_freepool,8,3                 ; @s_freepool
.subsections_via_symbols
