	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_update_cch                 ## -- Begin function gru_update_cch
	.p2align	4, 0x90
_gru_update_cch:                        ## @gru_update_cch
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	movl	(%rdi), %esi
	movl	8(%r12), %edi
	callq	_get_cch
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_lock_cch_handle
	movq	(%r14), %rax
	movq	_CCHSTATE_ACTIVE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	(%r12), %rax
	movslq	(%rbx), %rcx
	cmpq	%rbx, (%rax,%rcx,8)
	jne	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_cch_interrupt
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movq	24(%r14), %rax
	movl	24(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 4(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 20(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 24(%rax)
	movl	24(%rbx), %ecx
	movl	%ecx, 28(%rax)
	xorl	%eax, %eax
	callq	_gru_cpu_fault_map_id
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_gru_cpu_fault_map_id
	movq	%rax, 16(%r14)
	movq	8(%rbx), %rax
	movq	_GRU_OPT_MISS_FMM_POLL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_GRU_OPT_MISS_FMM_INTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_cch_start
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:
	movq	%r14, %rdi
	callq	_unlock_cch_handle
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCHSTATE_ACTIVE,8,3            ## @CCHSTATE_ACTIVE
	.comm	_GRU_OPT_MISS_FMM_POLL,8,3      ## @GRU_OPT_MISS_FMM_POLL
	.comm	_GRU_OPT_MISS_FMM_INTR,8,3      ## @GRU_OPT_MISS_FMM_INTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_update_cch                 ; -- Begin function gru_update_cch
	.p2align	2
_gru_update_cch:                        ; @gru_update_cch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #32]
	ldr	w1, [x0]
	ldr	w0, [x21, #8]
	bl	_get_cch
	mov	x19, x0
	bl	_lock_cch_handle
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CCHSTATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCHSTATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x20
	b.eq	LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_unlock_cch_handle
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_cch_interrupt
	cbz	x0, LBB0_6
; %bb.5:
	bl	_BUG
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w9, [x20, #24]
	str	w9, [x8]
	ldr	w9, [x20, #24]
	str	w9, [x8, #4]
	ldr	w9, [x20, #24]
	str	w9, [x8, #8]
	ldr	w9, [x20, #24]
	str	w9, [x8, #12]
	ldr	w9, [x20, #24]
	str	w9, [x8, #16]
	ldr	w9, [x20, #24]
	str	w9, [x8, #20]
	ldr	w9, [x20, #24]
	str	w9, [x8, #24]
	ldr	w9, [x20, #24]
	str	w9, [x8, #28]
	bl	_gru_cpu_fault_map_id
	str	x0, [x20, #16]
	bl	_gru_cpu_fault_map_id
	str	x0, [x19, #16]
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _GRU_OPT_MISS_FMM_POLL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRU_OPT_MISS_FMM_POLL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh6:
	adrp	x9, _GRU_OPT_MISS_FMM_INTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GRU_OPT_MISS_FMM_INTR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_cch_start
	cbz	x0, LBB0_8
; %bb.7:
	bl	_BUG
LBB0_8:
	mov	w20, #1
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CCHSTATE_ACTIVE,8,3            ; @CCHSTATE_ACTIVE
	.comm	_GRU_OPT_MISS_FMM_POLL,8,3      ; @GRU_OPT_MISS_FMM_POLL
	.comm	_GRU_OPT_MISS_FMM_INTR,8,3      ; @GRU_OPT_MISS_FMM_INTR
.subsections_via_symbols
