	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vita2d_pool_malloc             ## -- Begin function vita2d_pool_malloc
	.p2align	4, 0x90
_vita2d_pool_malloc:                    ## @vita2d_pool_malloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pool_index@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%edi, %esi
	addq	%rdx, %rsi
	movq	_pool_size@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jge	LBB0_1
## %bb.2:
	movq	_pool_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	%rdx, %rax
	movq	%rsi, (%rcx)
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pool_index,8,3                 ## @pool_index
	.comm	_pool_size,8,3                  ## @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_malloc             ; -- Begin function vita2d_pool_malloc
	.p2align	2
_vita2d_pool_malloc:                    ; @vita2d_pool_malloc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pool_index@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pool_index@GOTPAGEOFF]
	ldr	x10, [x8]
	add	x9, x10, w0, uxtw
Lloh2:
	adrp	x11, _pool_size@GOTPAGE
Lloh3:
	ldr	x11, [x11, _pool_size@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x11, _pool_addr@GOTPAGE
Lloh6:
	ldr	x11, [x11, _pool_addr@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	add	x0, x11, x10
	str	x9, [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,8,3                 ; @pool_index
	.comm	_pool_size,8,3                  ; @pool_size
	.comm	_pool_addr,8,3                  ; @pool_addr
.subsections_via_symbols
