	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vita2d_pool_memalign           ## -- Begin function vita2d_pool_memalign
	.p2align	4, 0x90
_vita2d_pool_memalign:                  ## @vita2d_pool_memalign
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_pool_index@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%eax, %edx
	decl	%edx
	negl	%eax
	andl	%edx, %eax
	addl	%eax, %edi
	movq	_pool_size@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jae	LBB0_1
## %bb.2:
	movq	_pool_addr@GOTPCREL(%rip), %rdx
	addl	(%rdx), %eax
	movl	%edi, (%rcx)
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pool_index,4,2                 ## @pool_index
	.comm	_pool_size,4,2                  ## @pool_size
	.comm	_pool_addr,8,3                  ## @pool_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vita2d_pool_memalign           ; -- Begin function vita2d_pool_memalign
	.p2align	2
_vita2d_pool_memalign:                  ; @vita2d_pool_memalign
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pool_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pool_index@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w1, w9
	sub	w9, w9, #1
	neg	w10, w1
	and	w9, w9, w10
Lloh2:
	adrp	x10, _pool_size@GOTPAGE
Lloh3:
	ldr	x10, [x10, _pool_size@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x10]
	add	w10, w9, w0
	cmp	w10, w11
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x11, _pool_addr@GOTPAGE
Lloh6:
	ldr	x11, [x11, _pool_addr@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	add	w0, w9, w11
	str	w10, [x8]
	ret
LBB0_2:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pool_index,4,2                 ; @pool_index
	.comm	_pool_size,4,2                  ; @pool_size
	.comm	_pool_addr,8,3                  ; @pool_addr
.subsections_via_symbols
