	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_calculate_pages_per_client
_crypt_calculate_pages_per_client:      ## @crypt_calculate_pages_per_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_totalram_pages
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_totalhigh_pages
	movq	_dm_crypt_clients_n@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	subl	%eax, %ebx
	movq	_DM_CRYPT_MEMORY_PERCENT@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	_DM_CRYPT_MIN_PAGES_PER_CLIENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovaq	%rax, %rcx
	movq	_dm_crypt_pages_per_client@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_CRYPT_MEMORY_PERCENT,4,2    ## @DM_CRYPT_MEMORY_PERCENT
	.comm	_dm_crypt_clients_n,8,3         ## @dm_crypt_clients_n
	.comm	_DM_CRYPT_MIN_PAGES_PER_CLIENT,8,3 ## @DM_CRYPT_MIN_PAGES_PER_CLIENT
	.comm	_dm_crypt_pages_per_client,8,3  ## @dm_crypt_pages_per_client
	.no_dead_strip	_crypt_calculate_pages_per_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_calculate_pages_per_client
_crypt_calculate_pages_per_client:      ; @crypt_calculate_pages_per_client
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_totalram_pages
	mov	x19, x0
	bl	_totalhigh_pages
Lloh0:
	adrp	x8, _dm_crypt_clients_n@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm_crypt_clients_n@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _DM_CRYPT_MEMORY_PERCENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_CRYPT_MEMORY_PERCENT@GOTPAGEOFF]
	sub	w10, w19, w0
Lloh5:
	ldr	w9, [x9]
	mul	w9, w9, w10
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	sxtw	x9, w9
	udiv	x8, x9, x8
Lloh6:
	adrp	x9, _DM_CRYPT_MIN_PAGES_PER_CLIENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DM_CRYPT_MIN_PAGES_PER_CLIENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, hi
Lloh9:
	adrp	x9, _dm_crypt_pages_per_client@GOTPAGE
Lloh10:
	ldr	x9, [x9, _dm_crypt_pages_per_client@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_CRYPT_MEMORY_PERCENT,4,2    ; @DM_CRYPT_MEMORY_PERCENT
	.comm	_dm_crypt_clients_n,8,3         ; @dm_crypt_clients_n
	.comm	_DM_CRYPT_MIN_PAGES_PER_CLIENT,8,3 ; @DM_CRYPT_MIN_PAGES_PER_CLIENT
	.comm	_dm_crypt_pages_per_client,8,3  ; @dm_crypt_pages_per_client
	.no_dead_strip	_crypt_calculate_pages_per_client
.subsections_via_symbols
