	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hardware_memlimit_set          ## -- Begin function hardware_memlimit_set
	.p2align	4, 0x90
_hardware_memlimit_set:                 ## @hardware_memlimit_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	setg	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$101, %ebx
	setl	%dil
	callq	_assert
	movq	_total_ram@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_memlimit_compress@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_memlimit_decompress@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_total_ram,4,2                  ## @total_ram
	.comm	_memlimit_compress,4,2          ## @memlimit_compress
	.comm	_memlimit_decompress,4,2        ## @memlimit_decompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hardware_memlimit_set          ; -- Begin function hardware_memlimit_set
	.p2align	2
_hardware_memlimit_set:                 ; @hardware_memlimit_set
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	cbz	w3, LBB0_2
; %bb.1:
	cmp	w20, #0
	cset	w0, gt
	bl	_assert
	cmp	w20, #101
	cset	w0, lt
	bl	_assert
Lloh0:
	adrp	x8, _total_ram@GOTPAGE
Lloh1:
	ldr	x8, [x8, _total_ram@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, w20
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w20, w8, w9
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _memlimit_compress@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memlimit_compress@GOTPAGEOFF]
Lloh5:
	str	w20, [x8]
LBB0_4:
	cbz	w19, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _memlimit_decompress@GOTPAGE
Lloh7:
	ldr	x8, [x8, _memlimit_decompress@GOTPAGEOFF]
Lloh8:
	str	w20, [x8]
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_total_ram,4,2                  ; @total_ram
	.comm	_memlimit_compress,4,2          ; @memlimit_compress
	.comm	_memlimit_decompress,4,2        ; @memlimit_decompress
.subsections_via_symbols
