	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset                          ## -- Begin function reset
	.p2align	4, 0x90
_reset:                                 ## @reset
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_GMON_PROF_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_setprof
	movq	(%r15), %rbx
	movq	8(%r15), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	16(%r15), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$12, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bzero
	movq	_kflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movl	48(%r15), %edi
	movq	(%r15), %rcx
	movq	40(%r15), %rsi
	movq	%r14, %rdx
	callq	_kvm_write
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.4:
	movl	48(%r15), %edi
	callq	_kvm_geterr
	leaq	L_.str.1(%rip), %rsi
	movl	$13, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_5:
	movl	48(%r15), %edi
	movq	8(%r15), %rcx
	movq	32(%r15), %rsi
	movq	%r14, %rdx
	callq	_kvm_write
	cmpq	8(%r15), %rax
	je	LBB0_7
## %bb.6:
	movl	48(%r15), %edi
	callq	_kvm_geterr
	leaq	L_.str.2(%rip), %rsi
	movl	$14, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_7:
	movl	48(%r15), %edi
	movq	16(%r15), %rcx
	movq	24(%r15), %rsi
	movq	%r14, %rdx
	callq	_kvm_write
	cmpq	16(%r15), %rax
	je	LBB0_9
## %bb.8:
	movl	48(%r15), %edi
	callq	_kvm_geterr
	leaq	L_.str.3(%rip), %rsi
	movl	$15, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_19
## %bb.10:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_11:
	xorl	%edi, %edi
	callq	_seteuid
	movq	_CTL_KERN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_KERN_PROF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_GPROF_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	(%r15), %r9
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movl	$13, %edi
	callq	_err
LBB0_13:
	movq	_GPROF_FROMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	8(%r15), %r9
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movl	$14, %edi
	callq	_err
LBB0_15:
	movq	_GPROF_TOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	16(%r15), %r9
	leaq	-44(%rbp), %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_sysctl
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movl	$15, %edi
	callq	_err
LBB0_17:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_seteuid
	movq	%r14, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GMON_PROF_OFF,4,2              ## @GMON_PROF_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate zbuf space"

	.comm	_kflag,8,3                      ## @kflag
L_.str.1:                               ## @.str.1
	.asciz	"tickbuf zero: %s"

L_.str.2:                               ## @.str.2
	.asciz	"froms zero: %s"

L_.str.3:                               ## @.str.3
	.asciz	"tos zero: %s"

	.comm	_CTL_KERN,4,2                   ## @CTL_KERN
	.comm	_KERN_PROF,4,2                  ## @KERN_PROF
	.comm	_GPROF_COUNT,4,2                ## @GPROF_COUNT
L_.str.4:                               ## @.str.4
	.asciz	"tickbuf zero"

	.comm	_GPROF_FROMS,4,2                ## @GPROF_FROMS
L_.str.5:                               ## @.str.5
	.asciz	"froms zero"

	.comm	_GPROF_TOS,4,2                  ## @GPROF_TOS
L_.str.6:                               ## @.str.6
	.asciz	"tos zero"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset                          ; -- Begin function reset
	.p2align	2
_reset:                                 ; @reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _GMON_PROF_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GMON_PROF_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_setprof
	ldp	x8, x9, [x20]
	cmp	x9, x8
	csel	x8, x9, x8, gt
	ldr	x9, [x20, #16]
	cmp	x9, x8
	csel	x21, x9, x8, gt
	mov	x0, x21
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #12
	bl	_errx
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_bzero
Lloh8:
	adrp	x8, _kflag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _kflag@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	w0, [x20, #48]
	ldr	x1, [x20, #40]
	ldr	x3, [x20]
	mov	x2, x19
	bl	_kvm_write
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20, #48]
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #13
	bl	_errx
LBB0_5:
	ldr	w0, [x20, #48]
	ldr	x1, [x20, #32]
	ldr	x3, [x20, #8]
	mov	x2, x19
	bl	_kvm_write
	ldr	x8, [x20, #8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20, #48]
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #14
	bl	_errx
LBB0_7:
	ldr	w0, [x20, #48]
	ldp	x3, x1, [x20, #16]
	mov	x2, x19
	bl	_kvm_write
	ldr	x8, [x20, #16]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x20, #48]
	bl	_kvm_geterr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #15
	bl	_errx
LBB0_9:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_free
LBB0_11:
	mov	w0, #0
	bl	_seteuid
Lloh20:
	adrp	x8, _CTL_KERN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CTL_KERN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _KERN_PROF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _KERN_PROF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
Lloh26:
	adrp	x8, _GPROF_COUNT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GPROF_COUNT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x5, [x20]
	add	x0, sp, #12
	mov	w1, #3
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_sysctl
	tbz	x0, #63, LBB0_13
; %bb.12:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #13
	bl	_err
LBB0_13:
Lloh31:
	adrp	x8, _GPROF_FROMS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GPROF_FROMS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x5, [x20, #8]
	add	x0, sp, #12
	mov	w1, #3
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_sysctl
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #14
	bl	_err
LBB0_15:
Lloh36:
	adrp	x8, _GPROF_TOS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GPROF_TOS@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	x5, [x20, #16]
	add	x0, sp, #12
	mov	w1, #3
	mov	x2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_sysctl
	tbz	x0, #63, LBB0_17
; %bb.16:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #15
	bl	_err
LBB0_17:
	bl	_getuid
	bl	_seteuid
	mov	x0, x19
	bl	_free
	ldr	x8, [sp, #24]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_GMON_PROF_OFF,4,2              ; @GMON_PROF_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate zbuf space"

	.comm	_kflag,8,3                      ; @kflag
l_.str.1:                               ; @.str.1
	.asciz	"tickbuf zero: %s"

l_.str.2:                               ; @.str.2
	.asciz	"froms zero: %s"

l_.str.3:                               ; @.str.3
	.asciz	"tos zero: %s"

	.comm	_CTL_KERN,4,2                   ; @CTL_KERN
	.comm	_KERN_PROF,4,2                  ; @KERN_PROF
	.comm	_GPROF_COUNT,4,2                ; @GPROF_COUNT
l_.str.4:                               ; @.str.4
	.asciz	"tickbuf zero"

	.comm	_GPROF_FROMS,4,2                ; @GPROF_FROMS
l_.str.5:                               ; @.str.5
	.asciz	"froms zero"

	.comm	_GPROF_TOS,4,2                  ; @GPROF_TOS
l_.str.6:                               ; @.str.6
	.asciz	"tos zero"

.subsections_via_symbols
