	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retarget_dynamic_ads           ## -- Begin function retarget_dynamic_ads
	.p2align	4, 0x90
_retarget_dynamic_ads:                  ## @retarget_dynamic_ads
	.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
	movq	_binlog_disabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_targeting_disabled@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	orq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	_now@GOTPCREL(%rip), %r15
	movq	(%r15), %r8
	testq	%r8, %r8
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_time
	movq	%rax, %r8
	movq	%rax, (%r15)
LBB0_3:
	movq	_AHd_retarget@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	8(%rax), %edx
	movslq	(%rcx), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	(%r12), %r14
	cmpq	%r12, %r14
	je	LBB0_6
## %bb.4:
	movl	8(%r14), %edx
	movq	(%r14), %r8
	movq	(%r15), %r9
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$3, %edi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	(%r14), %rax
	movq	_log_last_ts@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.5:
	movq	_LEV_TARG_AD_RETARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	movl	$8, %esi
	callq	_alloc_log_event
	movq	%r14, %rdi
	callq	_retarget_ad
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_binlog_disabled,8,3            ## @binlog_disabled
	.comm	_targeting_disabled,8,3         ## @targeting_disabled
	.comm	_now,8,3                        ## @now
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"retarget_dynamic_ads() first=%d last=%d now=%d\n"

	.comm	_AHd_retarget,16,3              ## @AHd_retarget
L_.str.1:                               ## @.str.1
	.asciz	"first ad in retarget queue: ad #%d (%p), retarget_time=%d, now=%d\n"

	.comm	_log_last_ts,8,3                ## @log_last_ts
	.comm	_LEV_TARG_AD_RETARGET,4,2       ## @LEV_TARG_AD_RETARGET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_retarget_dynamic_ads           ; -- Begin function retarget_dynamic_ads
	.p2align	2
_retarget_dynamic_ads:                  ; @retarget_dynamic_ads
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _binlog_disabled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _binlog_disabled@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _targeting_disabled@GOTPAGE
Lloh4:
	ldr	x9, [x9, _targeting_disabled@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_5
; %bb.1:
Lloh6:
	adrp	x20, _now@GOTPAGE
Lloh7:
	ldr	x20, [x20, _now@GOTPAGEOFF]
	ldr	x4, [x20]
	cbnz	x4, LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_time
	mov	x4, x0
	str	x0, [x20]
LBB0_3:
Lloh8:
	adrp	x21, _AHd_retarget@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AHd_retarget@GOTPAGEOFF]
	ldp	x8, x9, [x21]
	ldr	w2, [x8, #8]
	ldrsw	x3, [x9]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	x19, [x21]
	cmp	x19, x21
	b.eq	LBB0_5
; %bb.4:
	ldr	w2, [x19, #8]
	ldr	x4, [x19]
	ldr	x8, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	w0, #3
	mov	x3, x19
	bl	_vkprintf
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _log_last_ts@GOTPAGE
Lloh15:
	ldr	x9, [x9, _log_last_ts@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh17:
	adrp	x8, _LEV_TARG_AD_RETARGET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LEV_TARG_AD_RETARGET@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	mov	w1, #8
	bl	_alloc_log_event
	mov	x0, x19
	bl	_retarget_ad
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_binlog_disabled,8,3            ; @binlog_disabled
	.comm	_targeting_disabled,8,3         ; @targeting_disabled
	.comm	_now,8,3                        ; @now
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"retarget_dynamic_ads() first=%d last=%d now=%d\n"

	.comm	_AHd_retarget,16,3              ; @AHd_retarget
l_.str.1:                               ; @.str.1
	.asciz	"first ad in retarget queue: ad #%d (%p), retarget_time=%d, now=%d\n"

	.comm	_log_last_ts,8,3                ; @log_last_ts
	.comm	_LEV_TARG_AD_RETARGET,4,2       ; @LEV_TARG_AD_RETARGET
.subsections_via_symbols
