	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getloadavg                     ## -- Begin function getloadavg
	.p2align	4, 0x90
_getloadavg:                            ## @getloadavg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_CTL_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_VM_LOADAVG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	$16, -40(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	$2, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_MIN
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:
	movq	-48(%rbp), %rcx
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movl	%eax, %r9d
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_5:
	movl	%r9d, %esi
	andl	$-2, %esi
	movddup	%xmm0, %xmm1                    ## xmm1 = xmm0[0,0]
	leaq	-2(%rsi), %rdx
	movq	%rdx, %r8
	shrq	%r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movq	%r8, %rdx
	andq	$-2, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	8(%rcx,%rdi,8), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2sdq	(%rcx,%rdi,8), %xmm3
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	divpd	%xmm1, %xmm3
	movupd	%xmm3, (%rbx,%rdi,8)
	xorps	%xmm2, %xmm2
	cvtsi2sdq	24(%rcx,%rdi,8), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2sdq	16(%rcx,%rdi,8), %xmm3
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	divpd	%xmm1, %xmm3
	movupd	%xmm3, 16(%rbx,%rdi,8)
	addq	$4, %rdi
	addq	$-2, %rdx
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	xorps	%xmm2, %xmm2
	cvtsi2sdq	8(%rcx,%rdi,8), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2sdq	(%rcx,%rdi,8), %xmm3
	unpcklpd	%xmm2, %xmm3                    ## xmm3 = xmm3[0],xmm2[0]
	divpd	%xmm1, %xmm3
	movupd	%xmm3, (%rbx,%rdi,8)
LBB0_11:
	cmpq	%r9, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rcx,%rsi,8), %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rbx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:
	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	_getloadavg                     ; -- Begin function getloadavg
	.p2align	2
_getloadavg:                            ; @getloadavg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
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
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #2
	bl	_MIN
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x9, [sp, #24]
	ldr	d0, [sp, #16]
	mov	w8, w0
	cmp	w0, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #-1
	b	LBB0_10
LBB0_5:
	and	x10, x8, #0xfffffff8
	dup.2d	v1, v0[0]
	add	x11, x9, #32
	add	x12, x19, #32
	mov	x13, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11], #64
	scvtf.2d	v2, v2
	scvtf.2d	v3, v3
	scvtf.2d	v4, v4
	scvtf.2d	v5, v5
	fdiv.2d	v2, v2, v1
	fdiv.2d	v3, v3, v1
	fdiv.2d	v4, v4, v1
	fdiv.2d	v5, v5, v1
	stp	q2, q3, [x12, #-32]
	stp	q4, q5, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	lsl	x12, x10, #3
	add	x11, x19, x12
	add	x9, x9, x12
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9], #8
	scvtf	d1, d1
	fdiv	d1, d1, d0
	str	d1, [x11], #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldur	x8, [x29, #-24]
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_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	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
