	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function optimimal_allocation_size
_optimimal_allocation_size:             ## @optimimal_allocation_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SVN__STREAM_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rdi, %rcx
	jge	LBB0_5
## %bb.1:
	movq	_APR_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	$-1024, %edx                    ## imm = 0xFC00
	movslq	%edx, %rax
	cmpq	%rdi, %rax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-1024(%rcx), %rax
	addq	%rcx, %rcx
	cmpq	%rdi, %rax
	jl	LBB0_2
## %bb.3:
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN__STREAM_CHUNK_SIZE,8,3     ## @SVN__STREAM_CHUNK_SIZE
	.comm	_APR_SIZE_MAX,4,2               ## @APR_SIZE_MAX
	.no_dead_strip	_optimimal_allocation_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function optimimal_allocation_size
_optimimal_allocation_size:             ; @optimimal_allocation_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SVN__STREAM_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN__STREAM_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ge	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _APR_SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APR_SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	w9, w9, #1024
	sxtw	x9, w9
	cmp	x9, x0
	b.le	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x9, x8, #1024
	lsl	x8, x8, #1
	cmp	x9, x0
	b.lt	LBB0_2
; %bb.3:
	mov	x0, x9
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN__STREAM_CHUNK_SIZE,8,3     ; @SVN__STREAM_CHUNK_SIZE
	.comm	_APR_SIZE_MAX,4,2               ; @APR_SIZE_MAX
	.no_dead_strip	_optimimal_allocation_size
.subsections_via_symbols
