	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function DarwinProcess_setFromLibprocPidinfo
LCPI0_0:
	.quad	0x40f86a0000000000              ## double 1.0E+5
LCPI0_1:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_DarwinProcess_setFromLibprocPidinfo
	.p2align	4, 0x90
_DarwinProcess_setFromLibprocPidinfo:   ## @DarwinProcess_setFromLibprocPidinfo
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	56(%rdi), %edi
	movq	_PROC_PIDTASKINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	xorl	%edx, %edx
	movl	$40, %r8d
	callq	_proc_pidinfo
	cmpl	$40, %eax
	jne	LBB0_4
## %bb.1:
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	movl	%eax, %ecx
	orl	%edx, %ecx
	movl	-56(%rbp), %r8d
	movl	-52(%rbp), %r9d
	je	LBB0_3
## %bb.2:
	addl	%edx, %eax
	movl	%r8d, %edx
	subl	%eax, %edx
	addl	%r9d, %edx
	cvtsi2sd	%edx, %xmm0
	cvtsi2sdq	16(%r14), %xmm1
	mulsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	32(%r14), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rbx)
LBB0_3:
	leal	(%r9,%r8), %eax
	cltq
	imulq	$1801439851, %rax, %rax         ## imm = 0x6B5FCA6B
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$54, %rax
	addl	%edx, %eax
	movl	%eax, 16(%rbx)
	movq	-32(%rbp), %rdi
	movq	%rdi, 48(%rbx)
	movl	-48(%rbp), %edx
	leal	1023(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$10, %eax
	movq	_PAGE_SIZE_KB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	cltd
	idivl	%ecx
	movl	%eax, 20(%rbx)
	movl	-44(%rbp), %esi
	leal	1023(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$10, %eax
	cltd
	idivl	%ecx
	movl	%eax, 24(%rbx)
	movl	-24(%rbp), %eax
	movl	%eax, 40(%rbx)
	xorps	%xmm0, %xmm0
	cvtsi2sd	%esi, %xmm0
	mulsd	LCPI0_1(%rip), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sdq	24(%r14), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 32(%rbx)
	movl	%r8d, 4(%rbx)
	movl	%r9d, (%rbx)
	addl	%edi, 8(%r14)
	addl	%edi, 4(%r14)
	movl	-40(%rbp), %eax
	addl	%eax, (%r14)
LBB0_4:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROC_PIDTASKINFO,4,2           ## @PROC_PIDTASKINFO
	.comm	_PAGE_SIZE_KB,4,2               ## @PAGE_SIZE_KB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DarwinProcess_setFromLibprocPidinfo ; -- Begin function DarwinProcess_setFromLibprocPidinfo
	.p2align	2
_DarwinProcess_setFromLibprocPidinfo:   ; @DarwinProcess_setFromLibprocPidinfo
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #56]
Lloh0:
	adrp	x8, _PROC_PIDTASKINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROC_PIDTASKINFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	w2, #0
	mov	w4, #40
	bl	_proc_pidinfo
	cmp	w0, #40
	b.ne	LBB0_4
; %bb.1:
	ldp	w10, w11, [x20]
	ldp	w8, w9, [sp, #8]
	orr	w12, w10, w11
	cbz	w12, LBB0_3
; %bb.2:
	add	w10, w10, w11
	sub	w10, w8, w10
	add	w10, w10, w9
	scvtf	d0, w10
	ldr	d1, [x19, #16]
	scvtf	d1, d1
	fmul	d0, d0, d1
	ldr	d1, [x19, #32]
	scvtf	d1, d1
	mov	x10, #116548232544256
	movk	x10, #16632, lsl #48
	fmov	d2, x10
	fmul	d1, d1, d2
	fdiv	d0, d0, d1
	str	d0, [x20, #8]
LBB0_3:
	add	w10, w9, w8
	mov	w11, #51819
	movk	w11, #27487, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #22
	ldr	x11, [sp, #32]
	str	x11, [x20, #48]
	ldp	w12, w13, [sp, #16]
	add	w14, w12, #1023
	cmp	w12, #0
	csel	w12, w14, w12, lt
	asr	w12, w12, #10
Lloh3:
	adrp	x14, _PAGE_SIZE_KB@GOTPAGE
Lloh4:
	ldr	x14, [x14, _PAGE_SIZE_KB@GOTPAGEOFF]
Lloh5:
	ldr	w14, [x14]
	sdiv	w12, w12, w14
	stp	w10, w12, [x20, #16]
	add	w10, w13, #1023
	cmp	w13, #0
	csel	w10, w10, w13, lt
	asr	w10, w10, #10
	sdiv	w10, w10, w14
	str	w10, [x20, #24]
	ldr	w10, [sp, #40]
	str	w10, [x20, #40]
	scvtf	d0, w13
	mov	x10, #4636737291354636288
	fmov	d1, x10
	fmul	d0, d0, d1
	ldr	d1, [x19, #24]
	scvtf	d1, d1
	fdiv	d0, d0, d1
	str	d0, [x20, #32]
	stp	w9, w8, [x20]
	ldur	d0, [x19, #4]
	dup.2s	v1, w11
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	ldr	w8, [sp, #24]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PROC_PIDTASKINFO,4,2           ; @PROC_PIDTASKINFO
	.comm	_PAGE_SIZE_KB,4,2               ; @PAGE_SIZE_KB
.subsections_via_symbols
