	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_close                 ## -- Begin function procstat_close
	.p2align	4, 0x90
_procstat_close:                        ## @procstat_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_assert
	movq	(%rbx), %rax
	movq	_PROCSTAT_KVM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	callq	_kvm_close
	jmp	LBB0_4
LBB0_2:
	movq	_PROCSTAT_CORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	callq	_procstat_core_close
LBB0_4:
	movq	%rbx, %rdi
	callq	_procstat_freeargv
	movq	%rbx, %rdi
	callq	_procstat_freeenvv
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PROCSTAT_KVM,8,3               ## @PROCSTAT_KVM
	.comm	_PROCSTAT_CORE,8,3              ## @PROCSTAT_CORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_procstat_close                 ; -- Begin function procstat_close
	.p2align	2
_procstat_close:                        ; @procstat_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_assert
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PROCSTAT_KVM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROCSTAT_KVM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_kvm_close
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _PROCSTAT_CORE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PROCSTAT_CORE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	bl	_procstat_core_close
LBB0_4:
	mov	x0, x19
	bl	_procstat_freeargv
	mov	x0, x19
	bl	_procstat_freeenvv
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PROCSTAT_KVM,8,3               ; @PROCSTAT_KVM
	.comm	_PROCSTAT_CORE,8,3              ; @PROCSTAT_CORE
.subsections_via_symbols
