	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_ad_tree                   ## -- Begin function read_ad_tree
	.p2align	4, 0x90
_read_ad_tree:                          ## @read_ad_tree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leal	(,%rbx,8), %r14d
	movl	%r14d, %edi
	callq	_idx_load_next
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setge	%dil
	callq	_assert
	movq	_idx_rptr@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leal	(%rsi,%rbx,8), %ecx
	movl	%ecx, (%rax)
	movq	_targeting_disabled@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_AdSpace@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intree_build_from_list         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_idx_rptr,4,2                   ## @idx_rptr
	.comm	_targeting_disabled,4,2         ## @targeting_disabled
	.comm	_AdSpace,4,2                    ## @AdSpace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_ad_tree                   ; -- Begin function read_ad_tree
	.p2align	2
_read_ad_tree:                          ; @read_ad_tree
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	cbz	w19, LBB0_2
; %bb.1:
	lsl	w20, w19, #3
	mov	x0, x20
	bl	_idx_load_next
	cmp	w0, w20
	cset	w0, ge
	bl	_assert
Lloh0:
	adrp	x8, _idx_rptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _idx_rptr@GOTPAGEOFF]
	ldrsw	x1, [x8]
	add	w9, w1, w20
	str	w9, [x8]
Lloh2:
	adrp	x8, _targeting_disabled@GOTPAGE
Lloh3:
	ldr	x8, [x8, _targeting_disabled@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh5:
	adrp	x8, _AdSpace@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AdSpace@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intree_build_from_list
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_idx_rptr,4,2                   ; @idx_rptr
	.comm	_targeting_disabled,4,2         ; @targeting_disabled
	.comm	_AdSpace,4,2                    ; @AdSpace
.subsections_via_symbols
