	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ad_aud
_set_ad_aud:                            ## @set_ad_aud
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_targeting_disabled@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_get_ad_f
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_ADF_ANCIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.3:
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	movq	_MAX_AD_AUD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	setg	%r15b
LBB0_6:
	movl	%r15d, %edi
	callq	_assert
	movq	(%r14), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_compute_estimated_gain
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_targeting_disabled,8,3         ## @targeting_disabled
	.comm	_ADF_ANCIENT,4,2                ## @ADF_ANCIENT
	.comm	_MAX_AD_AUD,8,3                 ## @MAX_AD_AUD
	.no_dead_strip	_set_ad_aud
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ad_aud
_set_ad_aud:                            ; @set_ad_aud
	.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
Lloh0:
	adrp	x8, _targeting_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _targeting_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_get_ad_f
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _ADF_ANCIENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADF_ANCIENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:
Lloh6:
	adrp	x9, _MAX_AD_AUD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_AD_AUD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w0, gt
LBB0_8:
	bl	_assert
	ldr	x8, [x19]
	str	x8, [x20, #16]
	mov	x0, x20
	bl	_compute_estimated_gain
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_targeting_disabled,8,3         ; @targeting_disabled
	.comm	_ADF_ANCIENT,4,2                ; @ADF_ANCIENT
	.comm	_MAX_AD_AUD,8,3                 ; @MAX_AD_AUD
	.no_dead_strip	_set_ad_aud
.subsections_via_symbols
