	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __get_memory_limit
___get_memory_limit:                    ## @__get_memory_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_dm_bufio_cache_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACCESS_ONCE
	movq	_dm_bufio_cache_size_latch@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_dm_bufio_clients_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	___cache_size_refresh
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_dm_bufio_cache_size_per_client@GOTPCREL(%rip), %rax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rbx), %ecx
	movq	(%rax), %rax
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rax
	movq	_DM_BUFIO_MIN_BUFFERS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovbeq	%rcx, %rax
	movq	%rax, (%r15)
	movq	_DM_BUFIO_WRITEBACK_PERCENT@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rcx
	shrq	$2, %rdx
	movq	%rdx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dm_bufio_cache_size,4,2        ## @dm_bufio_cache_size
	.comm	_dm_bufio_cache_size_latch,8,3  ## @dm_bufio_cache_size_latch
	.comm	_dm_bufio_clients_lock,4,2      ## @dm_bufio_clients_lock
	.comm	_dm_bufio_cache_size_per_client,8,3 ## @dm_bufio_cache_size_per_client
	.comm	_SECTOR_SHIFT,8,3               ## @SECTOR_SHIFT
	.comm	_DM_BUFIO_MIN_BUFFERS,8,3       ## @DM_BUFIO_MIN_BUFFERS
	.comm	_DM_BUFIO_WRITEBACK_PERCENT,8,3 ## @DM_BUFIO_WRITEBACK_PERCENT
	.no_dead_strip	___get_memory_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __get_memory_limit
___get_memory_limit:                    ; @__get_memory_limit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _dm_bufio_cache_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm_bufio_cache_size@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACCESS_ONCE
Lloh3:
	adrp	x8, _dm_bufio_cache_size_latch@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dm_bufio_cache_size_latch@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x22, _dm_bufio_clients_lock@GOTPAGE
Lloh7:
	ldr	x22, [x22, _dm_bufio_clients_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_mutex_lock
	bl	___cache_size_refresh
	mov	x0, x22
	bl	_mutex_unlock
LBB0_2:
Lloh8:
	adrp	x8, _dm_bufio_cache_size_per_client@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dm_bufio_cache_size_per_client@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x21]
Lloh11:
	adrp	x10, _SECTOR_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x9, x10, x9
	lsr	x8, x8, x9
Lloh14:
	adrp	x9, _DM_BUFIO_MIN_BUFFERS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DM_BUFIO_MIN_BUFFERS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, hi
	str	x8, [x20]
Lloh17:
	adrp	x9, _DM_BUFIO_WRITEBACK_PERCENT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DM_BUFIO_WRITEBACK_PERCENT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	mul	x8, x8, x9
	lsr	x8, x8, #2
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #2
	str	x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_dm_bufio_cache_size,4,2        ; @dm_bufio_cache_size
	.comm	_dm_bufio_cache_size_latch,8,3  ; @dm_bufio_cache_size_latch
	.comm	_dm_bufio_clients_lock,4,2      ; @dm_bufio_clients_lock
	.comm	_dm_bufio_cache_size_per_client,8,3 ; @dm_bufio_cache_size_per_client
	.comm	_SECTOR_SHIFT,8,3               ; @SECTOR_SHIFT
	.comm	_DM_BUFIO_MIN_BUFFERS,8,3       ; @DM_BUFIO_MIN_BUFFERS
	.comm	_DM_BUFIO_WRITEBACK_PERCENT,8,3 ; @DM_BUFIO_WRITEBACK_PERCENT
	.no_dead_strip	___get_memory_limit
.subsections_via_symbols
