	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_change_sites
_ad_change_sites:                       ## @ad_change_sites
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	movl	4(%rdi), %r12d
	movq	_LEV_TARG_AD_SETSITEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ad_is_ancient
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_get_ad_f
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r12d, %eax
	andl	$-256, %eax
	cmpl	%r14d, %eax
	movl	$255, %ebx
	movl	$1, %r14d
	cmovnel	%r14d, %ebx
	andl	%r12d, %ebx
	movq	%r15, %rdi
	callq	_load_ancient_ad
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	_ADF_SITES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_ADF_SITES_MASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	andl	(%r15), %eax
	orl	%eax, %ebx
	movl	%ebx, (%r15)
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_TARG_AD_SETSITEMASK,4,2    ## @LEV_TARG_AD_SETSITEMASK
	.comm	_ADF_SITES_MASK,4,2             ## @ADF_SITES_MASK
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ## @ADF_SITES_MASK_SHIFT
	.no_dead_strip	_ad_change_sites
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_change_sites
_ad_change_sites:                       ; @ad_change_sites
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	w19, w20, [x0]
Lloh0:
	adrp	x8, _LEV_TARG_AD_SETSITEMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_TARG_AD_SETSITEMASK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_ad_is_ancient
	mov	x1, x0
	mov	x0, x19
	bl	_get_ad_f
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	and	w8, w20, #0xffffff00
	cmp	w8, w21
	mov	w8, #255
	csinc	w8, w8, wzr, eq
	and	w20, w8, w20
	bl	_load_ancient_ad
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ADF_SITES_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADF_SITES_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ADF_SITES_MASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ADF_SITES_MASK_SHIFT@GOTPAGEOFF]
	bic	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	lsl	w9, w20, w9
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_TARG_AD_SETSITEMASK,4,2    ; @LEV_TARG_AD_SETSITEMASK
	.comm	_ADF_SITES_MASK,4,2             ; @ADF_SITES_MASK
	.comm	_ADF_SITES_MASK_SHIFT,4,2       ; @ADF_SITES_MASK_SHIFT
	.no_dead_strip	_ad_change_sites
.subsections_via_symbols
