	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ad_disable                  ## -- Begin function do_ad_disable
	.p2align	4, 0x90
_do_ad_disable:                         ## @do_ad_disable
	.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
	movl	%edi, %r15d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_get_ad_f
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movl	%r15d, %edi
	callq	_ad_is_ancient
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_5:
	movq	_ADF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	_LEV_TARG_AD_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	movl	%r15d, %edx
	callq	_alloc_log_event
	movq	%rbx, %rdi
	callq	_ad_disable
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_fprintf
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: disabling undefined ad %d\n"

	.comm	_ADF_ON,4,2                     ## @ADF_ON
	.comm	_LEV_TARG_AD_OFF,4,2            ## @LEV_TARG_AD_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ad_disable                  ; -- Begin function do_ad_disable
	.p2align	2
_do_ad_disable:                         ; @do_ad_disable
	.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
	mov	w1, #0
	bl	_get_ad_f
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ad_is_ancient
	cbz	w0, LBB0_6
LBB0_3:
	cbz	x20, LBB0_7
LBB0_4:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _ADF_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADF_ON@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _LEV_TARG_AD_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LEV_TARG_AD_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #8
	mov	x2, x19
	bl	_alloc_log_event
	mov	x0, x20
	bl	_ad_disable
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	cbnz	x20, LBB0_4
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: disabling undefined ad %d\n"

	.comm	_ADF_ON,4,2                     ; @ADF_ON
	.comm	_LEV_TARG_AD_OFF,4,2            ; @LEV_TARG_AD_OFF
.subsections_via_symbols
