	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ad_price_enable             ## -- Begin function do_ad_price_enable
	.p2align	4, 0x90
_do_ad_price_enable:                    ## @do_ad_price_enable
	.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	%esi, %r12d
	movl	%edi, %r14d
	callq	_ad_is_ancient
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_get_ad_f
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_load_ancient_ad
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	cmpl	%r12d, (%r15)
	je	LBB0_8
## %bb.7:
	movq	_LEV_TARG_AD_PRICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$12, %esi
	movl	%r14d, %edx
	callq	_alloc_log_event
	movl	%r12d, (%rax)
	movq	%rax, %rdi
	callq	_set_ad_price
	movl	$1, %ebx
LBB0_8:
	movq	_ADF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_10
## %bb.9:
	movq	_LEV_TARG_AD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$8, %esi
	movl	%r14d, %edx
	callq	_alloc_log_event
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ad_enable
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_verbosity@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jle	LBB0_10
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_fprintf
	jmp	LBB0_10
LBB0_4:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: enabling undefined ad %d\n"

	.comm	_LEV_TARG_AD_PRICE,4,2          ## @LEV_TARG_AD_PRICE
	.comm	_ADF_ON,4,2                     ## @ADF_ON
	.comm	_LEV_TARG_AD_ON,4,2             ## @LEV_TARG_AD_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_ad_price_enable             ; -- Begin function do_ad_price_enable
	.p2align	2
_do_ad_price_enable:                    ; @do_ad_price_enable
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_ad_is_ancient
	mov	x1, x0
	mov	x0, x19
	bl	_get_ad_f
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_load_ancient_ad
	tbnz	w0, #31, LBB0_11
; %bb.2:
	cbz	w21, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_8
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _LEV_TARG_AD_PRICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEV_TARG_AD_PRICE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #12
	mov	x2, x19
	bl	_alloc_log_event
	str	w21, [x0]
	bl	_set_ad_price
	mov	w0, #1
LBB0_9:
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _ADF_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADF_ON@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _LEV_TARG_AD_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LEV_TARG_AD_ON@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #8
	mov	x2, x19
	bl	_alloc_log_event
	mov	x0, x20
	mov	w1, #0
	bl	_ad_enable
	mov	w0, #1
LBB0_11:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: enabling undefined ad %d\n"

	.comm	_LEV_TARG_AD_PRICE,4,2          ; @LEV_TARG_AD_PRICE
	.comm	_ADF_ON,4,2                     ; @ADF_ON
	.comm	_LEV_TARG_AD_ON,4,2             ; @LEV_TARG_AD_ON
.subsections_via_symbols
