	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isc_wb_update
_isc_wb_update:                         ## @isc_wb_update
	.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	(%rdi), %r12
	movq	_ISC_HIS_CFG_MODE_GR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ISC_HIS_CFG_MODE_GB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12,%rax,8), %ecx
	addl	(%r12,%rbx,8), %ecx
	cmpl	$2, %ecx
	jb	LBB0_12
## %bb.1:
	movl	%ecx, %eax
	movq	_ISC_HIS_CFG_MODE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	ja	LBB0_12
## %bb.2:
	movq	%rdi, %r15
	andl	$-2, %eax
	shll	$8, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_HIST_MIN_INDEX@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_div_u64
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	imulq	%r13, %rax
	movq	24(%r15), %rcx
	shrq	$9, %rax
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	_ISC_HIS_CFG_MODE_B@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	ja	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	movq	(%rcx,%rbx,8), %rcx
	movq	(%r14), %rdx
	movq	(%rcx,%rdx,8), %rdx
	shlq	$3, %rdx
	addq	$-8, %rdx
	movq	%rdx, (%rax,%rbx,8)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ISC_WB_O_ZERO_VAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax,%rbx,8)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HIST_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$9, %eax
	movq	_HIST_MAX_INDEX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rsi
	movq	(%r14), %rdx
	subq	(%rcx,%rdx,8), %rsi
	movslq	%eax, %rcx
	incq	%rsi
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12,%rbx,8), %rsi
	testq	%rsi, %rsi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$512, %eax                      ## imm = 0x200
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_HIS_CFG_MODE_GR,8,3        ## @ISC_HIS_CFG_MODE_GR
	.comm	_ISC_HIS_CFG_MODE_GB,8,3        ## @ISC_HIS_CFG_MODE_GB
	.comm	_ISC_HIS_CFG_MODE_B,8,3         ## @ISC_HIS_CFG_MODE_B
	.comm	_HIST_MIN_INDEX,8,3             ## @HIST_MIN_INDEX
	.comm	_ISC_WB_O_ZERO_VAL,8,3          ## @ISC_WB_O_ZERO_VAL
	.comm	_HIST_ENTRIES,4,2               ## @HIST_ENTRIES
	.comm	_HIST_MAX_INDEX,8,3             ## @HIST_MAX_INDEX
	.no_dead_strip	_isc_wb_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isc_wb_update
_isc_wb_update:                         ; @isc_wb_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _ISC_HIS_CFG_MODE_GR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_HIS_CFG_MODE_GR@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x8, [x21, x22, lsl #3]
Lloh3:
	adrp	x9, _ISC_HIS_CFG_MODE_GB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ISC_HIS_CFG_MODE_GB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x21, x9, lsl #3]
	add	w8, w9, w8
Lloh6:
	adrp	x23, _ISC_HIS_CFG_MODE_B@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ISC_HIS_CFG_MODE_B@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	w8, #2
	ccmp	x22, x9, #2, hs
	b.ls	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	lsl	w8, w8, #8
	and	w20, w8, #0xfffffe00
Lloh8:
	adrp	x24, _HIST_MIN_INDEX@GOTPAGE
Lloh9:
	ldr	x24, [x24, _HIST_MIN_INDEX@GOTPAGEOFF]
Lloh10:
	adrp	x26, _HIST_ENTRIES@GOTPAGE
Lloh11:
	ldr	x26, [x26, _HIST_ENTRIES@GOTPAGEOFF]
Lloh12:
	adrp	x27, _HIST_MAX_INDEX@GOTPAGE
Lloh13:
	ldr	x27, [x27, _HIST_MAX_INDEX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_div_u64
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w28, #9
	sxtw	x8, w8
	add	x9, x25, #1
	udiv	x8, x8, x9
	mul	x8, x0, x8
	ldr	x9, [x19, #24]
	lsr	x8, x8, #9
	str	x8, [x9, x22, lsl #3]
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.hi	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x22, #3
	ldp	x8, x9, [x19, #8]
	ldr	x8, [x8, x10]
	ldr	x11, [x24]
	ldr	x11, [x8, x11, lsl #3]
	lsl	x11, x11, #3
	subs	x11, x11, #8
	str	x11, [x9, x10]
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x10, _ISC_WB_O_ZERO_VAL@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ISC_WB_O_ZERO_VAL@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	str	x10, [x9, x22, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w28, [x26]
	ldr	x9, [x27]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x10, [x24]
	ldr	x8, [x8, x10, lsl #3]
	sub	x25, x9, x8
	ldr	x1, [x21, x22, lsl #3]
	cbnz	x1, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #512
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_HIS_CFG_MODE_GR,8,3        ; @ISC_HIS_CFG_MODE_GR
	.comm	_ISC_HIS_CFG_MODE_GB,8,3        ; @ISC_HIS_CFG_MODE_GB
	.comm	_ISC_HIS_CFG_MODE_B,8,3         ; @ISC_HIS_CFG_MODE_B
	.comm	_HIST_MIN_INDEX,8,3             ; @HIST_MIN_INDEX
	.comm	_ISC_WB_O_ZERO_VAL,8,3          ; @ISC_WB_O_ZERO_VAL
	.comm	_HIST_ENTRIES,4,2               ; @HIST_ENTRIES
	.comm	_HIST_MAX_INDEX,8,3             ; @HIST_MAX_INDEX
	.no_dead_strip	_isc_wb_update
.subsections_via_symbols
