	.file	"extr_targ-data.c_do_ad_price_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"warning: enabling undefined ad %d\n"
	.text
	.p2align 4
	.globl	do_ad_price_enable
	.type	do_ad_price_enable, @function
do_ad_price_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ad_is_ancient@PLT
	mov	edi, r12d
	mov	esi, eax
	call	get_ad_f@PLT
	test	rax, rax
	je	.L11
	mov	rdi, rax
	mov	rbp, rax
	call	load_ancient_ad@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	xor	r13d, r13d
	test	ebx, ebx
	je	.L4
	cmp	DWORD PTR 0[rbp], ebx
	jne	.L12
.L4:
	mov	eax, DWORD PTR 4[rbp]
	test	DWORD PTR ADF_ON[rip], eax
	je	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	r13d, r13d
	cmp	QWORD PTR verbosity[rip], 0
	jle	.L1
	mov	edi, DWORD PTR stderr[rip]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR LEV_TARG_AD_ON[rip]
	mov	edx, r12d
	mov	esi, 8
	mov	r13d, 1
	call	alloc_log_event@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	ad_enable@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR LEV_TARG_AD_PRICE[rip]
	mov	edx, r12d
	mov	esi, 12
	mov	r13d, 1
	call	alloc_log_event@PLT
	mov	DWORD PTR [rax], ebx
	mov	rdi, rax
	call	set_ad_price@PLT
	mov	eax, DWORD PTR 4[rbp]
	test	DWORD PTR ADF_ON[rip], eax
	jne	.L1
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	do_ad_price_enable, .-do_ad_price_enable
	.comm	verbosity,8,8
	.comm	stderr,4,4
	.comm	LEV_TARG_AD_PRICE,4,4
	.comm	LEV_TARG_AD_ON,4,4
	.comm	ADF_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_targ-data.c_do_ad_price_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"warning: enabling undefined ad %d\012\000"
	.text
	.align	2
	.global	do_ad_price_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_ad_price_enable, %function
do_ad_price_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r4, r1
	bl	ad_is_ancient
	mov	r1, r0
	mov	r0, r6
	bl	get_ad_f
	subs	r5, r0, #0
	beq	.L10
	bl	load_ancient_ad
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	cmp	r4, #0
	bne	.L11
.L7:
	mov	r0, #0
.L4:
	ldr	r2, .L13
	ldr	r3, [r5, #4]
	ldr	r4, [r2]
	ands	r4, r3, r4
	popne	{r4, r5, r6, pc}
	ldr	r3, .L13+4
	mov	r2, r6
	ldr	r0, [r3]
	mov	r1, #8
	bl	alloc_log_event
	mov	r1, r4
	mov	r0, r5
	bl	ad_enable
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, [r5]
	cmp	r3, r4
	beq	.L7
	ldr	r3, .L13+8
	mov	r2, r6
	mov	r1, #12
	ldr	r0, [r3]
	bl	alloc_log_event
	str	r4, [r0]
	bl	set_ad_price
	mov	r0, #1
	b	.L4
.L10:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L12
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+16
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L13+20
	bl	fprintf
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	ADF_ON
	.word	LEV_TARG_AD_ON
	.word	LEV_TARG_AD_PRICE
	.word	verbosity
	.word	stderr
	.word	.LC0
	.size	do_ad_price_enable, .-do_ad_price_enable
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	LEV_TARG_AD_PRICE,4,4
	.comm	LEV_TARG_AD_ON,4,4
	.comm	ADF_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
