	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_intrcnts
_read_intrcnts:                         ## @read_intrcnts
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_kd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_X_SINTRCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_kread
	movq	-40(%rbp), %rdi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	_namelist@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_X_NINTRCNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	_X_INTRCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	je	LBB0_4
## %bb.10:
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	xorl	%eax, %eax
	callq	_kread
	movq	-48(%rbp), %rdi
	movq	(%rbx), %rsi
	movq	-40(%rbp), %rdx
	callq	_kreadptr
	jmp	LBB0_11
LBB0_5:
	movq	$0, (%rbx)
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str.2(%rip), %r15
	leaq	-40(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -40(%rbp)
	callq	_reallocf
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_err
	movq	(%rbx), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_mysysctl
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-40(%rbp), %rsi
	addq	%rsi, %rsi
	movq	(%rbx), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rsi
	movq	-40(%rbp), %rdx
	xorl	%eax, %eax
	callq	_kread
LBB0_11:
	movq	-40(%rbp), %rax
	shrq	$3, %rax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kd,8,3                         ## @kd
	.comm	_X_SINTRCNT,4,2                 ## @X_SINTRCNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc()"

	.comm	_namelist,8,3                   ## @namelist
	.comm	_X_NINTRCNT,8,3                 ## @X_NINTRCNT
	.comm	_X_INTRCNT,4,2                  ## @X_INTRCNT
L_.str.1:                               ## @.str.1
	.asciz	"reallocf()"

L_.str.2:                               ## @.str.2
	.asciz	"hw.intrcnt"

	.no_dead_strip	_read_intrcnts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_intrcnts
_read_intrcnts:                         ; @read_intrcnts
	.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	x19, x0
Lloh0:
	adrp	x8, _kd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kd@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _X_SINTRCNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X_SINTRCNT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w8, #8
	add	x9, sp, #24
	stp	x9, x8, [sp]
	bl	_kread
	ldr	x0, [sp, #24]
	bl	_malloc
	str	x0, [x19]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
Lloh8:
	adrp	x8, _namelist@GOTPAGE
Lloh9:
	ldr	x8, [x8, _namelist@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _X_NINTRCNT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _X_NINTRCNT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh14:
	adrp	x9, _X_INTRCNT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _X_INTRCNT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	cbz	x8, LBB0_10
; %bb.4:
	mov	w8, #8
	add	x9, sp, #16
	stp	x9, x8, [sp]
	bl	_kread
	ldp	x0, x2, [sp, #16]
	ldr	x1, [x19]
	bl	_kreadptr
	b	LBB0_11
LBB0_5:
	mov	x0, #0
	str	xzr, [x19]
	mov	w1, #1024
Lloh17:
	adrp	x20, l_.str.1@PAGE
Lloh18:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh19:
	adrp	x21, l_.str.2@PAGE
Lloh20:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x1, [sp, #24]
	bl	_reallocf
	mov	x1, x0
	str	x0, [x19]
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_err
	ldr	x1, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #24
	mov	x0, x21
	bl	_mysysctl
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #24]
	lsl	x1, x8, #1
	ldr	x0, [x19]
	b	LBB0_6
LBB0_10:
	ldr	x8, [x19]
	ldr	x9, [sp, #24]
	stp	x8, x9, [sp]
	bl	_kread
LBB0_11:
	ldr	x8, [sp, #24]
	lsr	x0, x8, #3
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_kd,8,3                         ; @kd
	.comm	_X_SINTRCNT,4,2                 ; @X_SINTRCNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc()"

	.comm	_namelist,8,3                   ; @namelist
	.comm	_X_NINTRCNT,8,3                 ; @X_NINTRCNT
	.comm	_X_INTRCNT,4,2                  ; @X_INTRCNT
l_.str.1:                               ; @.str.1
	.asciz	"reallocf()"

l_.str.2:                               ; @.str.2
	.asciz	"hw.intrcnt"

	.no_dead_strip	_read_intrcnts
.subsections_via_symbols
