	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kinfo_getfile                  ## -- Begin function kinfo_getfile
	.p2align	4, 0x90
_kinfo_getfile:                         ## @kinfo_getfile
	.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	$56, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, (%rsi)
	movq	$0, -72(%rbp)
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_KERN_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_KERN_PROC_FILEDESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%edi, -52(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nitems
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movq	-72(%rbp), %rax
	shlq	$2, %rax
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	movq	%rdx, %rdi
	shrq	%rdi
	movq	%rdi, -72(%rbp)
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_nitems
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
LBB0_4:
	callq	_free
LBB0_5:
	xorl	%r12d, %r12d
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.19:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jle	LBB0_16
## %bb.7:
	movq	%rbx, %r15
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	%rax, %r15
	xorl	%r13d, %r13d
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	%rcx, %rax
	incl	%r13d
	cmpq	%r15, %rax
	jb	LBB0_8
LBB0_10:
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	%rax, %r12
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_17
## %bb.12:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	addq	(%r14), %r14
	movq	$8, (%rbx)
	addq	$8, %rbx
	cmpq	%r15, %r14
	jb	LBB0_13
LBB0_15:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_20
LBB0_17:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movl	%r13d, (%r14)
	jmp	LBB0_18
LBB0_20:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROC,4,2                  ## @KERN_PROC
	.comm	_KERN_PROC_FILEDESC,4,2         ## @KERN_PROC_FILEDESC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kinfo_getfile                  ; -- Begin function kinfo_getfile
	.p2align	2
_kinfo_getfile:                         ; @kinfo_getfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [x1]
Lloh3:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
	str	xzr, [sp]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KERN_PROC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KERN_PROC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _KERN_PROC_FILEDESC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KERN_PROC_FILEDESC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
	add	x0, sp, #8
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #8
	mov	x3, sp
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	mov	x22, #0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp]
	lsl	x8, x8, #2
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	lsr	x0, x8, #1
	str	x0, [sp]
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	bl	_nitems
	mov	x1, x0
	add	x0, sp, #8
	mov	x3, sp
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cbz	w0, LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_free
LBB0_4:
	mov	x22, #0
LBB0_5:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.6:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	x23, [sp]
	cmp	x23, #1
	b.lt	LBB0_16
; %bb.8:
	mov	w21, #0
	add	x25, x20, x23
	mov	x8, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w21, w21, #1
	add	x8, x8, x9
	cmp	x8, x25
	b.lo	LBB0_9
LBB0_11:
	mov	x0, x21
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.12:
	mov	x22, x0
	cmp	x23, #1
	b.lt	LBB0_18
; %bb.13:
	mov	w26, #8
	mov	x23, x22
	mov	x24, x20
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x24]
	cbz	x2, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	ldr	x8, [x24]
	str	x26, [x23], #8
	add	x24, x24, x8
	cmp	x24, x25
	b.lo	LBB0_14
	b	LBB0_18
LBB0_16:
	mov	w0, #0
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_3
; %bb.17:
	mov	x22, x0
	mov	w21, #0
LBB0_18:
	mov	x0, x20
	bl	_free
	str	w21, [x19]
	b	LBB0_5
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROC,4,2                  ; @KERN_PROC
	.comm	_KERN_PROC_FILEDESC,4,2         ; @KERN_PROC_FILEDESC
.subsections_via_symbols
