	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_getLoadAverage        ## -- Begin function Platform_getLoadAverage
	.p2align	4, 0x90
_Platform_getLoadAverage:               ## @Platform_getLoadAverage
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CTL_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_VM_LOADAVG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	$16, -48(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	movq	$0, (%r15)
	xorpd	%xmm0, %xmm0
	jmp	LBB0_3
LBB0_2:
	movq	-56(%rbp), %rax
	cvtsi2sdq	(%rax), %xmm0
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rax), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%r15)
	xorps	%xmm0, %xmm0
	cvtsi2sdq	16(%rax), %xmm0
	divsd	%xmm1, %xmm0
LBB0_3:
	movsd	%xmm0, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_VM,4,2                     ## @CTL_VM
	.comm	_VM_LOADAVG,4,2                 ## @VM_LOADAVG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_getLoadAverage        ; -- Begin function Platform_getLoadAverage
	.p2align	2
_Platform_getLoadAverage:               ; @Platform_getLoadAverage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _CTL_VM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_VM@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VM_LOADAVG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VM_LOADAVG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	mov	w8, #16
	str	x8, [sp, #8]
	add	x0, sp, #32
	add	x2, sp, #16
	add	x3, sp, #8
	mov	w1, #2
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cbz	w0, LBB0_2
; %bb.1:
	str	xzr, [x21]
	str	xzr, [x20]
	movi	d0, #0000000000000000
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #24]
	ldr	d0, [x8]
	scvtf	d0, d0
	ldr	d1, [sp, #16]
	fdiv	d0, d0, d1
	str	d0, [x21]
	ldr	d0, [x8, #8]
	scvtf	d0, d0
	fdiv	d0, d0, d1
	str	d0, [x20]
	ldr	d0, [x8, #16]
	scvtf	d0, d0
	fdiv	d0, d0, d1
LBB0_3:
	str	d0, [x19]
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_VM,4,2                     ; @CTL_VM
	.comm	_VM_LOADAVG,4,2                 ; @VM_LOADAVG
.subsections_via_symbols
