	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function process_lru_ads
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_process_lru_ads
	.p2align	4, 0x90
_process_lru_ads:                       ## @process_lru_ads
	.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	_AHd_lru@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	40(%rax), %edx
	movslq	(%rcx), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	(%r12), %rbx
	cmpq	%r12, %rbx
	je	LBB0_6
## %bb.1:
	movq	_AD_ANCIENT_DELAY@GOTPCREL(%rip), %r13
	movq	_ADF_ON@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	movq	(%r12), %rbx
	cmpq	%r12, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r8
	movq	_log_last_ts@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r9, %rax
	subq	(%r13), %rax
	cmpq	%rax, %r8
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%rbx), %edx
	movl	$3, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	%rbx, %rdi
	callq	_remove_queue_ad
	movl	(%r15), %eax
	xorl	%edi, %edi
	andl	8(%rbx), %eax
	sete	%dil
	callq	_assert
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_tot_userlists@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	32(%rbx), %eax
	movq	_tot_userlists_size@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	callq	_free
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process_lru_ads() first=%d last=%d\n"

	.comm	_AHd_lru,16,3                   ## @AHd_lru
	.comm	_log_last_ts,8,3                ## @log_last_ts
	.comm	_AD_ANCIENT_DELAY,8,3           ## @AD_ANCIENT_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"first ad in lru queue: ad #%d (%p), disabled_since=%d, log_last_ts=%d\n"

	.comm	_ADF_ON,4,2                     ## @ADF_ON
	.comm	_tot_userlists,4,2              ## @tot_userlists
	.comm	_tot_userlists_size,4,2         ## @tot_userlists_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_lru_ads                ; -- Begin function process_lru_ads
	.p2align	2
_process_lru_ads:                       ; @process_lru_ads
	.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
Lloh0:
	adrp	x22, _AHd_lru@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AHd_lru@GOTPAGEOFF]
	ldp	x8, x9, [x22]
	ldr	w2, [x8, #40]
	ldrsw	x3, [x9]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	x20, [x22]
	cmp	x20, x22
	b.eq	LBB0_6
; %bb.1:
	mov	w19, #0
Lloh4:
	adrp	x23, _log_last_ts@GOTPAGE
Lloh5:
	ldr	x23, [x23, _log_last_ts@GOTPAGEOFF]
Lloh6:
	adrp	x24, _AD_ANCIENT_DELAY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AD_ANCIENT_DELAY@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x25, _ADF_ON@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ADF_ON@GOTPAGEOFF]
Lloh12:
	adrp	x26, _tot_userlists@GOTPAGE
Lloh13:
	ldr	x26, [x26, _tot_userlists@GOTPAGEOFF]
Lloh14:
	adrp	x27, _tot_userlists_size@GOTPAGE
Lloh15:
	ldr	x27, [x27, _tot_userlists_size@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldr	x20, [x22]
	cmp	x20, x22
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	x10, [x24]
	sub	x10, x9, x10
	cmp	x8, x10
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x20, #40]
	stp	x8, x9, [sp]
	mov	w0, #3
	mov	x1, x21
	mov	x3, x20
	bl	_vkprintf
	mov	x0, x20
	bl	_remove_queue_ad
	ldr	w8, [x20, #8]
	ldr	w9, [x25]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	sub	w8, w8, #1
	str	w8, [x26]
	ldr	w8, [x20, #32]
	ldr	w9, [x27]
	sub	w8, w9, w8
	str	w8, [x27]
	bl	_free
	stp	xzr, xzr, [x20, #16]
	b	LBB0_2
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process_lru_ads() first=%d last=%d\n"

	.comm	_AHd_lru,16,3                   ; @AHd_lru
	.comm	_log_last_ts,8,3                ; @log_last_ts
	.comm	_AD_ANCIENT_DELAY,8,3           ; @AD_ANCIENT_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"first ad in lru queue: ad #%d (%p), disabled_since=%d, log_last_ts=%d\n"

	.comm	_ADF_ON,4,2                     ; @ADF_ON
	.comm	_tot_userlists,4,2              ; @tot_userlists
	.comm	_tot_userlists_size,4,2         ; @tot_userlists_size
.subsections_via_symbols
