	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function fetchpigs
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fetchpigs
	.p2align	4, 0x90
_fetchpigs:                             ## @fetchpigs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_kd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_KERN_PROC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nproc@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	_kvm_getprocs
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	(%r14), %eax
	cmpl	_fetchpigs.lastnproc(%rip), %eax
	jle	LBB0_7
## %bb.4:
	movq	_pt@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_free
	movl	(%r14), %edi
	shll	$2, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	xorl	%edi, %edi
	callq	_die
LBB0_6:
	movl	(%r14), %eax
LBB0_7:
	movl	%eax, _fetchpigs.lastnproc(%rip)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	xorl	%ebx, %ebx
	movq	_pt@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	%xmm1, (%r13,%rbx)
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rbx), %rcx
	movq	(%r12), %rdx
	movq	%rcx, 8(%rdx,%rbx)
	movq	(%r12), %r13
	movss	(%r15,%rbx), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_10
	jnp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_P_INMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r15,%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdq	8(%r15,%rbx), %xmm1
	movq	_fscale@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movq	_lccpu@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	callq	_exp
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsd2ss	%xmm0, %xmm1
	movq	_nproc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_1:
	movl	(%rbx), %edi
	callq	_kvm_geterr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
	movq	_pt@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fetchpigs.lastnproc,4,2 ## @fetchpigs.lastnproc
	.comm	_kd,4,2                         ## @kd
	.comm	_KERN_PROC_ALL,4,2              ## @KERN_PROC_ALL
	.comm	_nproc,4,2                      ## @nproc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_pt,8,3                         ## @pt
L_.str.1:                               ## @.str.1
	.asciz	"Out of memory"

	.comm	_P_INMEM,4,2                    ## @P_INMEM
	.comm	_fscale,8,3                     ## @fscale
	.comm	_lccpu,4,2                      ## @lccpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetchpigs                      ; -- Begin function fetchpigs
	.p2align	2
_fetchpigs:                             ; @fetchpigs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x21, _kd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kd@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _KERN_PROC_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_PROC_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x19, _nproc@GOTPAGE
Lloh6:
	ldr	x19, [x19, _nproc@GOTPAGEOFF]
	mov	w2, #0
	mov	x3, x19
	bl	_kvm_getprocs
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	adrp	x22, _fetchpigs.lastnproc@PAGE
	ldr	w9, [x22, _fetchpigs.lastnproc@PAGEOFF]
Lloh7:
	adrp	x21, _pt@GOTPAGE
Lloh8:
	ldr	x21, [x21, _pt@GOTPAGEOFF]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.2:
	ldr	x0, [x21]
	bl	_free
	ldr	w8, [x19]
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	w0, #0
	bl	_die
LBB0_4:
	ldr	w8, [x19]
LBB0_5:
	str	w8, [x22, _fetchpigs.lastnproc@PAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x22, #0
	mov	x23, #0
Lloh11:
	adrp	x24, _P_INMEM@GOTPAGE
Lloh12:
	ldr	x24, [x24, _P_INMEM@GOTPAGEOFF]
Lloh13:
	adrp	x25, _fscale@GOTPAGE
Lloh14:
	ldr	x25, [x25, _fscale@GOTPAGEOFF]
Lloh15:
	adrp	x26, _lccpu@GOTPAGE
Lloh16:
	ldr	x26, [x26, _lccpu@GOTPAGEOFF]
	fmov	d8, #1.00000000
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	s0, [x27, x22]
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x20, x22
	ldr	x10, [x21]
	add	x10, x10, x22
	str	x9, [x10, #8]
	ldr	x27, [x21]
	ldr	s1, [x9]
	movi	d0, #0000000000000000
	fcmp	s1, #0.0
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x9, #4]
	ldr	w10, [x24]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x20, x22
	ldr	d0, [x8, #8]
	scvtf	d2, d0
	ldr	d3, [x25]
	ldr	s0, [x26]
	fmul	s0, s1, s0
	fdiv	d9, d2, d3
	bl	_exp
	fsub	d0, d8, d0
	fdiv	d0, d9, d0
	fcvt	s0, d0
	ldr	w8, [x19]
	b	LBB0_7
LBB0_11:
	ldr	w0, [x21]
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
Lloh19:
	adrp	x8, _pt@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pt@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_free
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fetchpigs.lastnproc,4,2 ; @fetchpigs.lastnproc
	.comm	_kd,4,2                         ; @kd
	.comm	_KERN_PROC_ALL,4,2              ; @KERN_PROC_ALL
	.comm	_nproc,4,2                      ; @nproc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_pt,8,3                         ; @pt
l_.str.1:                               ; @.str.1
	.asciz	"Out of memory"

	.comm	_P_INMEM,4,2                    ; @P_INMEM
	.comm	_fscale,8,3                     ; @fscale
	.comm	_lccpu,4,2                      ; @lccpu
.subsections_via_symbols
