	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad_set_domain
_ad_set_domain:                         ## @ad_set_domain
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	testq	%rax, %rax
	setns	%cl
	movq	_MAX_AD_DOMAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	8(%r14), %ebx
	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, %rbx
	movq	%rax, %rdi
	callq	_load_ancient_ad
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AD_DOMAIN,8,3              ## @MAX_AD_DOMAIN
	.no_dead_strip	_ad_set_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad_set_domain
_ad_set_domain:                         ; @ad_set_domain
	.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
	ldr	x8, [x0]
	cmp	x8, #0
Lloh0:
	adrp	x9, _MAX_AD_DOMAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_AD_DOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, ge
	cset	w0, le
	bl	_assert
	ldr	w20, [x19, #8]
	mov	x0, x20
	bl	_ad_is_ancient
	mov	x1, x0
	mov	x0, x20
	bl	_get_ad_f
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_load_ancient_ad
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x19]
	str	x8, [x20]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AD_DOMAIN,8,3              ; @MAX_AD_DOMAIN
	.no_dead_strip	_ad_set_domain
.subsections_via_symbols
