	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ghes_estatus_cache_add
_ghes_estatus_cache_add:                ## @ghes_estatus_cache_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_ghes_estatus_cache_alloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	xorl	%eax, %eax
	callq	_sched_clock
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_GHES_ESTATUS_CACHES_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ghes_estatus_caches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %edi
	callq	_rcu_dereference
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	(%r12), %rbx
	movq	_GHES_ESTATUS_IN_CACHE_MAX_NSEC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	12(%r12), %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%rbx, %rdi
	callq	_do_div
	cmpq	%r14, %rbx
	cmovaq	%rbx, %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmoval	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmovaq	%r12, %r15
	incq	%r13
	movq	_GHES_ESTATUS_CACHES_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	%r15, %r12
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$-1, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_7
	jmp	LBB0_11
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%eax, %eax
	callq	_smp_wmb
	movl	%r13d, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movslq	%eax, %rdi
	shlq	$2, %rdi
	movq	_ghes_estatus_caches@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_cmpxchg
	cmpq	%r12, %rax
	jne	LBB0_11
## %bb.8:
	testq	%r12, %r12
	je	LBB0_12
## %bb.9:
	addq	$8, %r12
	movq	_ghes_estatus_cache_rcu_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_call_rcu
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
	callq	_smp_wmb
LBB0_11:
	movq	%rbx, %rdi
	callq	_ghes_estatus_cache_free
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GHES_ESTATUS_CACHES_SIZE,4,2   ## @GHES_ESTATUS_CACHES_SIZE
	.comm	_ghes_estatus_caches,8,3        ## @ghes_estatus_caches
	.comm	_GHES_ESTATUS_IN_CACHE_MAX_NSEC,8,3 ## @GHES_ESTATUS_IN_CACHE_MAX_NSEC
	.comm	_ghes_estatus_cache_rcu_free,4,2 ## @ghes_estatus_cache_rcu_free
	.no_dead_strip	_ghes_estatus_cache_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ghes_estatus_cache_add
_ghes_estatus_cache_add:                ; @ghes_estatus_cache_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_ghes_estatus_cache_alloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_rcu_read_lock
	bl	_sched_clock
Lloh0:
	adrp	x26, _GHES_ESTATUS_CACHES_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GHES_ESTATUS_CACHES_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.2:
	mov	x20, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x25, #0
	mov	x27, #0
	mov	x28, #0
	mov	w24, #-1
Lloh2:
	adrp	x23, _ghes_estatus_caches@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ghes_estatus_caches@GOTPAGEOFF]
Lloh4:
	adrp	x19, _GHES_ESTATUS_IN_CACHE_MAX_NSEC@GOTPAGE
Lloh5:
	ldr	x19, [x19, _GHES_ESTATUS_IN_CACHE_MAX_NSEC@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x25, lsl #2]
	bl	_rcu_dereference
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x19]
	sub	x22, x20, x8
	cmp	x22, x9
	b.hs	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, #12
	bl	_atomic_read
	add	w1, w0, #1
	mov	x0, x22
	bl	_do_div
	cmp	x22, x28
	csel	x28, x22, x28, hi
	csel	w24, w25, w24, hi
	csel	x27, x21, x27, hi
	add	x25, x25, #1
	ldrsw	x8, [x26]
	cmp	x25, x8
	b.lt	LBB0_3
; %bb.6:
	bl	_smp_wmb
	mov	x21, x27
	cmn	w24, #1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_9
	b	LBB0_13
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	_smp_wmb
	mov	x24, x25
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_9:
	ldr	x8, [x23]
	add	x0, x8, w24, sxtw #2
	mov	x1, x21
	mov	x2, x19
	bl	_cmpxchg
	cmp	x0, x21
	b.ne	LBB0_13
; %bb.10:
	cbz	x21, LBB0_14
; %bb.11:
	add	x0, x21, #8
Lloh6:
	adrp	x8, _ghes_estatus_cache_rcu_free@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ghes_estatus_cache_rcu_free@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_call_rcu
	b	LBB0_14
LBB0_12:
	bl	_smp_wmb
LBB0_13:
	mov	x0, x19
	bl	_ghes_estatus_cache_free
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_rcu_read_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GHES_ESTATUS_CACHES_SIZE,4,2   ; @GHES_ESTATUS_CACHES_SIZE
	.comm	_ghes_estatus_caches,8,3        ; @ghes_estatus_caches
	.comm	_GHES_ESTATUS_IN_CACHE_MAX_NSEC,8,3 ; @GHES_ESTATUS_IN_CACHE_MAX_NSEC
	.comm	_ghes_estatus_cache_rcu_free,4,2 ; @ghes_estatus_cache_rcu_free
	.no_dead_strip	_ghes_estatus_cache_add
.subsections_via_symbols
