	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_hist_count
_isc_hist_count:                        ## @isc_hist_count
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	24(%rdi), %rax
	movq	(%rdi), %r12
	movq	8(%rdi), %r13
	movq	16(%rdi), %rbx
	movl	$0, (%rsi)
	movq	_HIST_ENTRIES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, (%rdx)
	movq	_ISC_HIS_ENTRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %ecx
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_regmap_bulk_read
	movl	$0, (%r12,%r13,4)
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	(%rbx,%rcx,4), %edx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	imull	%eax, %edx
	addl	%edx, (%r12,%r13,4)
	leal	1(%rax), %ecx
	cmpl	(%r14), %ecx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rcx
	incq	%rax
	cmpl	$0, (%rbx,%rcx,4)
	movl	$0, %edx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r15)
	cmpl	$0, (%rbx,%rcx,4)
	movl	$0, %edx
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, (%r15)
	jne	LBB0_9
## %bb.8:
	movl	$1, (%r15)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HIST_ENTRIES,4,2               ## @HIST_ENTRIES
	.comm	_ISC_HIS_ENTRY,4,2              ## @ISC_HIS_ENTRY
	.no_dead_strip	_isc_hist_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_hist_count
_isc_hist_count:                        ; @isc_hist_count
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x1
	ldp	x22, x24, [x0]
	ldp	x21, x8, [x0, #16]
	str	wzr, [x1]
Lloh0:
	adrp	x23, _HIST_ENTRIES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HIST_ENTRIES@GOTPAGEOFF]
	ldr	w9, [x23]
	str	w9, [x2]
Lloh2:
	adrp	x9, _ISC_HIS_ENTRY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISC_HIS_ENTRY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	ldr	w3, [x23]
	mov	x0, x8
	mov	x2, x21
	bl	_regmap_bulk_read
	str	wzr, [x22, x24, lsl #2]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.1:
	mov	x10, #0
	lsl	x8, x24, #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x22, x8]
	madd	w10, w10, w9, w11
	str	w10, [x22, x8]
	ldr	w11, [x23]
	add	w12, w9, #1
	mov	x10, x9
	cmp	w12, w11
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x10, #1
	ldr	w11, [x21, x10, lsl #2]
	cbz	w11, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x19]
	cbnz	w11, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x19]
	ldr	w11, [x21, x10, lsl #2]
	cbz	w11, LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x20]
	ldr	w10, [x21, x10, lsl #2]
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HIST_ENTRIES,4,2               ; @HIST_ENTRIES
	.comm	_ISC_HIS_ENTRY,4,2              ; @ISC_HIS_ENTRY
	.no_dead_strip	_isc_hist_count
.subsections_via_symbols
