	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_hw_params
_set_hw_params:                         ## @set_hw_params
	.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
	movq	__SC_PHYS_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_1
LBB0_2:
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	testq	%rax, %rax
	jle	LBB0_3
LBB0_4:
	imull	%ebx, %eax
	movq	_free_memory@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	$1025, %ecx                     ## imm = 0x401
	movl	$1024, %eax                     ## imm = 0x400
	cmovgel	%ecx, %eax
	movq	_available_free_memory@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movl	$1, %ebx
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	movl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_PHYS_PAGES,4,2             ## @_SC_PHYS_PAGES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysconf pages"

	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
L_.str.1:                               ## @.str.1
	.asciz	"sysconf psize"

	.comm	_free_memory,4,2                ## @free_memory
	.comm	_available_free_memory,4,2      ## @available_free_memory
	.comm	__SC_NPROCESSORS_ONLN,4,2       ## @_SC_NPROCESSORS_ONLN
	.comm	_ncpu,4,2                       ## @ncpu
	.comm	_nthreads,4,2                   ## @nthreads
	.no_dead_strip	_set_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_hw_params
_set_hw_params:                         ; @set_hw_params
	.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
Lloh0:
	adrp	x8, __SC_PHYS_PAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_PHYS_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x19, x0
	cmp	x0, #0
	b.le	LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_sysconf
	cmp	x0, #0
	b.le	LBB0_4
LBB0_2:
	mul	w8, w0, w19
Lloh6:
	adrp	x9, _free_memory@GOTPAGE
Lloh7:
	ldr	x9, [x9, _free_memory@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	mov	w9, #1024
	cmp	w8, #1024
	csel	w8, w8, w9, gt
Lloh9:
	adrp	x9, _available_free_memory@GOTPAGE
Lloh10:
	ldr	x9, [x9, _available_free_memory@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	mov	w19, #1
	b	LBB0_1
LBB0_4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #4096
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_PHYS_PAGES,4,2             ; @_SC_PHYS_PAGES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysconf pages"

	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
l_.str.1:                               ; @.str.1
	.asciz	"sysconf psize"

	.comm	_free_memory,4,2                ; @free_memory
	.comm	_available_free_memory,4,2      ; @available_free_memory
	.comm	__SC_NPROCESSORS_ONLN,4,2       ; @_SC_NPROCESSORS_ONLN
	.comm	_ncpu,4,2                       ; @ncpu
	.comm	_nthreads,4,2                   ; @nthreads
	.no_dead_strip	_set_hw_params
.subsections_via_symbols
