	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_pid_info                   ## -- Begin function get_pid_info
	.p2align	4, 0x90
_get_pid_info:                          ## @get_pid_info
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rcx
	leaq	_get_pid_info.mem(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	leaq	_get_pid_info.mem(%rip), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$9999, %edx                     ## imm = 0x270F
	callq	_read
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	cltq
	movb	$0, (%rax,%rbx)
	leaq	4(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %r12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	leal	-12(%r13), %eax
	cmpl	$9, %eax
	ja	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r12,%rax,4), %rax
	addq	%r12, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_sscanf
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movzbl	-1(%rbx), %eax
	testb	%al, %al
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpb	$32, %al
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	cmpl	$22, %r13d
	jne	LBB0_5
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	callq	_dl_assert
LBB0_17:
	movl	$1, %ebx
	jmp	LBB0_18
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_3:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%r15d, %edi
	callq	_close
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_get_pid_info.mem,10000,4 ## @get_pid_info.mem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%lu/stat"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"%llu"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected end of proc file"

	.comm	_TMEM_SIZE,4,2                  ## @TMEM_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_pid_info                   ; -- Begin function get_pid_info
	.p2align	2
_get_pid_info:                          ; @get_pid_info
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x3, x0
Lloh0:
	adrp	x19, _get_pid_info.mem@PAGE
Lloh1:
	add	x19, x19, _get_pid_info.mem@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #10000
	bl	_snprintf
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x21, _get_pid_info.mem@PAGE
Lloh8:
	add	x21, x21, _get_pid_info.mem@PAGEOFF
	mov	x1, x21
	mov	w2, #9999
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.2:
	mov	w27, #0
	strb	wzr, [x21, w0, sxtw]
	add	x22, x20, #4
	add	x23, x20, #8
	add	x24, x20, #12
	add	x25, x20, #16
Lloh9:
	adrp	x28, lJTI0_0@PAGE
Lloh10:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh11:
	adrp	x26, l_.str.1@PAGE
Lloh12:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	sub	w8, w27, #12
	cmp	w8, #9
	b.hi	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x24
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x23
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x22
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x20
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_sscanf
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x21, x21, #1
	ldurb	w8, [x21, #-1]
	cbz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w8, #32
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w27, w27, #1
	cmp	w27, #22
	b.ne	LBB0_3
	b	LBB0_15
LBB0_14:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	bl	_dl_assert
LBB0_15:
	mov	w20, #1
	b	LBB0_18
LBB0_16:
	mov	w20, #0
	b	LBB0_19
LBB0_17:
	mov	w20, #0
LBB0_18:
	mov	x0, x19
	bl	_close
LBB0_19:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_get_pid_info.mem,10000,0 ; @get_pid_info.mem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%lu/stat"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"%llu"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected end of proc file"

	.comm	_TMEM_SIZE,4,2                  ; @TMEM_SIZE
.subsections_via_symbols
