	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_views
_flush_views:                           ## @flush_views
	.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	_MAX_AD_ID@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jbe	LBB0_3
## %bb.1:
	movl	%edi, %ebx
	movq	_Views@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%edi, %r14d
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_3
## %bb.2:
	movl	$12, %edi
	callq	_write_alloc
	movq	_LEV_TARG_VIEWS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	%ebx, (%rax)
	movq	(%r15), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	%rdx, 8(%rax)
	movq	$0, (%rcx,%r14,8)
	movq	_wr_views_rec@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_wr_rec@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_wr_bytes@GOTPCREL(%rip), %rax
	addl	$12, (%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AD_ID,4,2                  ## @MAX_AD_ID
	.comm	_Views,8,3                      ## @Views
	.comm	_LEV_TARG_VIEWS,4,2             ## @LEV_TARG_VIEWS
	.comm	_wr_views_rec,4,2               ## @wr_views_rec
	.comm	_wr_rec,4,2                     ## @wr_rec
	.comm	_wr_bytes,4,2                   ## @wr_bytes
	.no_dead_strip	_flush_views
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_views
_flush_views:                           ; @flush_views
	.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
Lloh0:
	adrp	x8, _MAX_AD_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_AD_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _Views@GOTPAGE
Lloh4:
	ldr	x20, [x20, _Views@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w21, w19
	mov	w0, #12
	bl	_write_alloc
Lloh5:
	adrp	x8, _LEV_TARG_VIEWS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LEV_TARG_VIEWS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	w19, [x0]
	ldr	x8, [x20]
	lsl	x9, x21, #3
	ldr	x10, [x8, x9]
	str	x10, [x0, #8]
	str	xzr, [x8, x9]
Lloh8:
	adrp	x8, _wr_views_rec@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wr_views_rec@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh10:
	adrp	x8, _wr_rec@GOTPAGE
Lloh11:
	ldr	x8, [x8, _wr_rec@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh12:
	adrp	x8, _wr_bytes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wr_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #12
	str	w9, [x8]
LBB0_3:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AD_ID,4,2                  ; @MAX_AD_ID
	.comm	_Views,8,3                      ; @Views
	.comm	_LEV_TARG_VIEWS,4,2             ; @LEV_TARG_VIEWS
	.comm	_wr_views_rec,4,2               ; @wr_views_rec
	.comm	_wr_rec,4,2                     ; @wr_rec
	.comm	_wr_bytes,4,2                   ; @wr_bytes
	.no_dead_strip	_flush_views
.subsections_via_symbols
