	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_lru_pack
_find_lru_pack:                         ## @find_lru_pack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rdx)
	je	LBB0_2
LBB0_4:
	movq	8(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_5
## %bb.6:
	xorl	%r8d, %r8d
	movq	%r9, %r11
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r11), %r11
	testq	%r11, %r11
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r11)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %r8d
	cmpl	$0, (%rcx)
	je	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r11), %rax
	cmpq	(%r9), %rax
	cmovgq	%r11, %r9
	movq	(%rdx), %r10
	testq	%r10, %r10
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r8d, (%rcx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r9), %rax
	cmpq	(%r10), %rax
	jle	LBB0_12
LBB0_14:
	popq	%rbp
	retq
LBB0_5:
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
LBB0_13:
	movq	%r9, (%rdx)
	movq	%rdi, (%rsi)
	movl	%r8d, (%rcx)
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 8(%rdi)
	jne	LBB0_14
## %bb.3:
	movq	(%rdi), %rax
	cmpq	(%r8), %rax
	jle	LBB0_4
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_lru_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_lru_pack
_find_lru_pack:                         ; @find_lru_pack
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x2]
	cbz	x9, LBB0_14
LBB0_2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.3:
	mov	w9, #0
	mov	x10, x8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, #8]
	cbz	x11, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x3]
	cbz	w9, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #1
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10]
	ldr	x12, [x8]
	cmp	x11, x12
	csel	x8, x10, x8, gt
	ldr	x11, [x2]
	cbz	x11, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w12, [x3]
	cmp	w12, w9
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x8]
	ldr	x11, [x11]
	cmp	x12, x11
	b.le	LBB0_4
LBB0_11:
	ret
LBB0_12:
	mov	w9, #0
LBB0_13:
	str	x8, [x2]
	str	x0, [x1]
	str	w9, [x3]
	ret
LBB0_14:
	ldr	x9, [x0, #8]
	cbnz	x9, LBB0_11
; %bb.15:
	ldr	x9, [x0]
	ldr	x8, [x8]
	cmp	x9, x8
	b.le	LBB0_2
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_lru_pack
.subsections_via_symbols
