	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt_iscache_lru_resize
_pt_iscache_lru_resize:                 ## @pt_iscache_lru_resize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_pt_iscache_lru_add
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.6:
	cmpq	%r15, 8(%rcx)
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	cmpq	%r14, (%rbx)
	jge	LBB0_1
	jmp	LBB0_10
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
LBB0_1:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%rcx), %rdx
	movq	%r14, (%rcx)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	(%rbx), %rcx
	movq	8(%rbx), %rsi
	subq	%rdx, %rsi
	addq	%r14, %rsi
	movq	%rsi, 8(%rbx)
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	setl	%al
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.no_dead_strip	_pt_iscache_lru_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt_iscache_lru_resize
_pt_iscache_lru_resize:                 ; @pt_iscache_lru_resize
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_pt_iscache_lru_add
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x8, #8]
	cmp	x9, x21
	b.eq	LBB0_9
; %bb.4:
	ldr	x8, [x20]
	cmp	x8, x19
	b.ge	LBB0_7
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	cbz	w0, LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _pte_internal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	x9, [x8]
	str	x19, [x8]
	cbnz	w0, LBB0_8
; %bb.10:
	ldp	x10, x8, [x20]
	sub	x8, x8, x9
	add	x8, x8, x19
	str	x8, [x20, #8]
	cmp	x10, x8
	cset	w0, lt
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.no_dead_strip	_pt_iscache_lru_resize
.subsections_via_symbols
