	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function procstat_get_socket_info_kvm
_procstat_get_socket_info_kvm:          ## @procstat_get_socket_info_kvm
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_assert
	movq	%r13, %rdi
	callq	_assert
	movq	%rbx, %rdi
	callq	_assert
	movq	%r13, %rdi
	movl	$80, %esi
	callq	_bzero
	movq	72(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rbx, (%r13)
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$64, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	movq	%r15, %rdi
	movl	$64, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-128(%rbp), %rsi
	leaq	-240(%rbp), %rdx
	movq	%r15, %rdi
	movl	$64, %ecx
	callq	_kvm_read_all
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	-200(%rbp), %rsi
	movq	8(%r13), %rdx
	movq	%r15, %rdi
	movl	$7, %ecx
	callq	_kvm_read
	cltq
	movq	8(%r13), %rcx
	movb	$0, (%rcx,%rax)
	movl	-76(%rbp), %eax
	movl	%eax, 68(%r13)
	movl	-144(%rbp), %eax
	movl	%eax, 64(%r13)
	movl	-240(%rbp), %ecx
	movl	%ecx, 16(%r13)
	movq	-88(%rbp), %rsi
	movq	%rsi, 24(%r13)
	xorl	%r14d, %r14d
	leal	-129(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_11
## %bb.15:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.16:
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.17:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_kvm_read
	cmpl	$8, %eax
	jne	LBB0_18
## %bb.19:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r13)
	jmp	LBB0_20
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	jmp	LBB0_7
LBB0_4:
	movq	-56(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	movq	-128(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	callq	_warnx
LBB0_8:
	movl	$1, %r14d
	testq	%r12, %r12
	je	LBB0_23
## %bb.9:
	movq	__POSIX2_LINE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r12, %rdi
	callq	_snprintf
LBB0_23:
	movl	%r14d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$128, %ecx
	jne	LBB0_23
## %bb.12:
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.13:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_kvm_read
	cmpl	$8, %eax
	jne	LBB0_14
## %bb.21:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%rax, 40(%r13)
	movdqu	-108(%rbp), %xmm0
	pshufd	$120, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,3,1]
	movdqu	%xmm0, 48(%r13)
	jmp	LBB0_23
LBB0_18:
	movq	-88(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
LBB0_20:
	movl	-100(%rbp), %eax
	movl	%eax, 52(%r13)
	movl	-108(%rbp), %eax
	movl	%eax, 48(%r13)
	jmp	LBB0_23
LBB0_14:
	movq	-88(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_warnx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't read sock at %p"

L_.str.1:                               ## @.str.1
	.asciz	"can't read protosw at %p"

L_.str.2:                               ## @.str.2
	.asciz	"can't read domain at %p"

	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
L_.str.4:                               ## @.str.4
	.asciz	"can't read inpcb at %p"

L_.str.5:                               ## @.str.5
	.asciz	"can't read unpcb at %p"

	.comm	__POSIX2_LINE_MAX,4,2           ## @_POSIX2_LINE_MAX
L_.str.6:                               ## @.str.6
	.asciz	"error"

	.no_dead_strip	_procstat_get_socket_info_kvm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function procstat_get_socket_info_kvm
_procstat_get_socket_info_kvm:          ; @procstat_get_socket_info_kvm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_assert
	mov	x0, x19
	bl	_assert
	mov	x0, x22
	bl	_assert
	mov	x0, x19
	mov	w1, #80
	bl	_bzero
	ldr	x22, [x22, #72]
	cbz	x22, LBB0_13
; %bb.1:
	str	x22, [x19]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	w3, #64
	bl	_kvm_read_all
	cbz	w0, LBB0_9
; %bb.2:
	ldr	x1, [sp, #64]
	add	x2, sp, #72
	mov	x0, x20
	mov	w3, #64
	bl	_kvm_read_all
	cbz	w0, LBB0_10
; %bb.3:
	ldr	x1, [sp, #120]
	sub	x2, x29, #112
	mov	x0, x20
	mov	w3, #64
	bl	_kvm_read_all
	cbz	w0, LBB0_11
; %bb.4:
	ldur	x1, [x29, #-72]
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	w3, #7
	bl	_kvm_read
	ldr	x8, [x19, #8]
	strb	wzr, [x8, w0, sxtw]
	ldr	w9, [sp, #44]
	ldr	w8, [sp, #104]
	stp	w8, w9, [x19, #64]
	ldur	w9, [x29, #-112]
	str	w9, [x19, #16]
	ldr	x1, [sp, #32]
	str	x1, [x19, #24]
	sub	w10, w9, #129
	cmp	w10, #2
	b.hs	LBB0_17
; %bb.5:
	mov	w0, #0
Lloh0:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.6:
	cbz	x1, LBB0_16
; %bb.7:
	sub	x2, x29, #120
	mov	x0, x20
	mov	w3, #8
	bl	_kvm_read
	cmp	w0, #8
	b.ne	LBB0_22
; %bb.8:
	ldur	x8, [x29, #-120]
	str	x8, [x19, #32]
	b	LBB0_23
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	b	LBB0_12
LBB0_10:
	ldr	x1, [sp, #64]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	x1, [sp, #120]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	bl	_warnx
LBB0_13:
	cbz	x21, LBB0_15
; %bb.14:
Lloh9:
	adrp	x8, __POSIX2_LINE_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, __POSIX2_LINE_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.6@PAGE
Lloh13:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_snprintf
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_17:
	mov	w0, #0
	cmp	w9, #128
	b.ne	LBB0_16
; %bb.18:
	cbz	x1, LBB0_25
; %bb.19:
	sub	x2, x29, #120
	mov	x0, x20
	mov	w3, #8
	bl	_kvm_read
	cmp	w0, #8
	b.ne	LBB0_24
; %bb.20:
	ldur	x8, [x29, #-120]
	cbz	x8, LBB0_25
; %bb.21:
	mov	w0, #0
	str	x8, [x19, #40]
	ldur	q0, [sp, #12]
	ext.16b	v1, v0, v0, #12
	uzp1.4s	v0, v0, v1
	str	q0, [x19, #48]
	b	LBB0_16
LBB0_22:
	ldr	x1, [sp, #32]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
LBB0_23:
	mov	w0, #0
	ldr	w8, [sp, #20]
	ldr	w9, [sp, #12]
	stp	w9, w8, [x19, #48]
	b	LBB0_16
LBB0_24:
	ldr	x1, [sp, #32]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
LBB0_25:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't read sock at %p"

l_.str.1:                               ; @.str.1
	.asciz	"can't read protosw at %p"

l_.str.2:                               ; @.str.2
	.asciz	"can't read domain at %p"

	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
l_.str.4:                               ; @.str.4
	.asciz	"can't read inpcb at %p"

l_.str.5:                               ; @.str.5
	.asciz	"can't read unpcb at %p"

	.comm	__POSIX2_LINE_MAX,4,2           ; @_POSIX2_LINE_MAX
l_.str.6:                               ; @.str.6
	.asciz	"error"

	.no_dead_strip	_procstat_get_socket_info_kvm
.subsections_via_symbols
