	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_new_stale_ads_directory   ## -- Begin function init_new_stale_ads_directory
	.p2align	4, 0x90
_init_new_stale_ads_directory:          ## @init_new_stale_ads_directory
	.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	_new_stale_ads@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	8(,%rax,8), %edi
	movq	_new_stale_addir_size@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	callq	_malloc
	movq	%rax, %r14
	movq	_NewStaleAdsDir@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_MAX_ADS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_ADF_NEWANCIENT@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rax
	movq	_NewStaleAdsDir@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	sarq	$3, %rax
	movq	_new_stale_ads@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setl	%dil
	callq	_assert
	movl	4(%r15), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, (%r14)
	movl	$-1, 4(%r14)
	addq	$8, %r14
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_get_ad
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	movq	_ADF_ANCIENT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, (%r15)
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_ad_is_ancient
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
	jmp	LBB0_8
LBB0_10:
	movq	_NewStaleAdsDir@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_1:
	movq	%r14, %rax
LBB0_11:
	movq	%r14, %rcx
	subq	%rax, %rcx
	sarq	$3, %rcx
	movq	_new_stale_ads@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	sete	%dil
	callq	_assert
	movabsq	$-2147483649, %rax              ## imm = 0xFFFFFFFF7FFFFFFF
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_new_stale_ads,4,2              ## @new_stale_ads
	.comm	_new_stale_addir_size,4,2       ## @new_stale_addir_size
	.comm	_NewStaleAdsDir,8,3             ## @NewStaleAdsDir
	.comm	_MAX_ADS,4,2                    ## @MAX_ADS
	.comm	_ADF_ANCIENT,4,2                ## @ADF_ANCIENT
	.comm	_ADF_NEWANCIENT,4,2             ## @ADF_NEWANCIENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function init_new_stale_ads_directory
lCPI0_0:
	.long	2147483647                      ; 0x7fffffff
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_init_new_stale_ads_directory
	.p2align	2
_init_new_stale_ads_directory:          ; @init_new_stale_ads_directory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, _new_stale_ads@GOTPAGE
Lloh1:
	ldr	x22, [x22, _new_stale_ads@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	w0, w8, #8
Lloh2:
	adrp	x8, _new_stale_addir_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _new_stale_addir_size@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
	bl	_malloc
	mov	x19, x0
Lloh5:
	adrp	x23, _NewStaleAdsDir@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NewStaleAdsDir@GOTPAGEOFF]
	str	x0, [x23]
Lloh7:
	adrp	x24, _MAX_ADS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MAX_ADS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w20, #0
	mov	w25, #-1
Lloh9:
	adrp	x26, _ADF_ANCIENT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ADF_ANCIENT@GOTPAGEOFF]
Lloh11:
	adrp	x27, _ADF_NEWANCIENT@GOTPAGE
Lloh12:
	ldr	x27, [x27, _ADF_NEWANCIENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	sub	x8, x19, x8
	ldrsw	x9, [x22]
	cmp	x9, x8, asr #3
	cset	w0, gt
	bl	_assert
	ldr	w8, [x21, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	w8, w25, [x19], #8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_ad
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x26]
	ldr	w10, [x27]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_ad_is_ancient
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, #0
	cset	w0, eq
	bl	_assert
	mov	x8, x20
	b	LBB0_3
LBB0_9:
	ldr	x8, [x23]
	b	LBB0_11
LBB0_10:
	mov	x8, x19
LBB0_11:
	sub	x8, x19, x8
	ldrsw	x9, [x22]
	cmp	x9, x8, asr #3
	cset	w0, eq
	bl	_assert
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_new_stale_ads,4,2              ; @new_stale_ads
	.comm	_new_stale_addir_size,4,2       ; @new_stale_addir_size
	.comm	_NewStaleAdsDir,8,3             ; @NewStaleAdsDir
	.comm	_MAX_ADS,4,2                    ; @MAX_ADS
	.comm	_ADF_ANCIENT,4,2                ; @ADF_ANCIENT
	.comm	_ADF_NEWANCIENT,4,2             ; @ADF_NEWANCIENT
.subsections_via_symbols
