	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_ancient_ad              ## -- Begin function lookup_ancient_ad
	.p2align	4, 0x90
_lookup_ancient_ad:                     ## @lookup_ancient_ad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_idx_stale_ads@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.1:
	movq	_idx_stale_ad_dir@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	movl	$-1, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rcx), %eax
	sarl	%eax
	movslq	%eax, %rsi
	cmpl	%edi, (%r9,%rsi,4)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	jmp	LBB0_5
LBB0_6:
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.7:
	movq	(%r8), %rax
	movl	%ecx, %ecx
	cmpl	%edi, (%rax,%rcx,4)
	jne	LBB0_9
## %bb.8:
	leaq	(%rax,%rcx,4), %rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_stale_ads,4,2              ## @idx_stale_ads
	.comm	_idx_stale_ad_dir,8,3           ## @idx_stale_ad_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_ancient_ad              ; -- Begin function lookup_ancient_ad
	.p2align	2
_lookup_ancient_ad:                     ; @lookup_ancient_ad
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _idx_stale_ads@GOTPAGE
Lloh1:
	ldr	x8, [x8, _idx_stale_ads@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _idx_stale_ad_dir@GOTPAGE
Lloh4:
	ldr	x9, [x9, _idx_stale_ad_dir@GOTPAGEOFF]
	ldr	x11, [x9]
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w8, w10
	asr	w12, w12, #1
	ldr	w13, [x11, w12, sxtw #2]
	cmp	w13, w0
	csel	w10, w10, w12, gt
	csel	w8, w12, w8, gt
	sub	w12, w8, w10
	cmp	w12, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w10, #31, LBB0_5
; %bb.4:
	ldr	x8, [x9]
	add	x8, x8, w10, uxtw #2
	ldr	w9, [x8]
	cmp	w9, w0
	b.eq	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_stale_ads,4,2              ; @idx_stale_ads
	.comm	_idx_stale_ad_dir,8,3           ; @idx_stale_ad_dir
.subsections_via_symbols
